No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

88 líneas
2.9 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>费用说明</title>
  7. <!-- 百度统计star -->
  8. <script>
  9. var _hmt = _hmt || [];
  10. (function() {
  11. var hm = document.createElement("script");
  12. hm.src = "//hm.baidu.com/hm.js?3d4ede42cef05a99fcd8bda849831ada";
  13. var s = document.getElementsByTagName("script")[0];
  14. s.parentNode.insertBefore(hm, s);
  15. })();
  16. </script>
  17. <!-- 百度统计end -->
  18. </head>
  19. <body style="font-family: '黑体';color:#8d8d8d;padding-left:10px;">
  20. <div id="container" class="container">
  21. <!--<h3 style="color:#FF8800; font-size:16px;">费用包含</h3>
  22. <div style="margin-bottom: 20px; font-size: 14px;">1、交通:国产空调旅游车(保证一人一正座位,车型大小根据游客实际人数安排)注:0.8(含)米以上儿童必须占座位;</div>
  23. <h3 style="color:#FF8800;font-size:16px;">费用不包含</h3>
  24. <div style="margin-bottom: 20px;font-size: 14px;">1、单人房差(房差说明详见:重要提示——行前须知第1条):180元/人;<br /></div> -->
  25. </div>
  26. </body>
  27. <script type="text/javascript">
  28. var httpData;
  29. if (window.ActiveXObject) {
  30. var myreq = new ActiveXObject("Microsoft.XMLHTTP");
  31. } else {
  32. var myreq = new XMLHttpRequest();
  33. }
  34. var m_prodcode='';
  35. window.onload=function (){
  36. m_prodcode = getPar('prodcode');
  37. var myURL = 'http://wx.zhizhuchuxing.com/core/detail.asp?prodcode=' + m_prodcode;
  38. // alert(m_prodcode)
  39. myreq.open("get",myURL,true);
  40. myreq.onreadystatechange = show_date;
  41. myreq.send(null);
  42. }
  43. function show_date(){
  44. if (myreq.readyState == 4){
  45. var newstr = myreq.responseText;
  46. // alert(newstr)
  47. var cshow ='';
  48. httpData = JSON.parse(newstr);
  49. var c_code = httpData.code;
  50. if (c_code == '0'){
  51. var station_intro = httpData.station_intro;
  52. if(station_intro){
  53. station_intro = station_intro.replace(/\[Y\]/g,'<h3 style="color:#FF8800; font-size:16px;">费用包含</h3><div style="margin-bottom: 20px; font-size: 14px;">');
  54. station_intro = station_intro.replace(/\[\/Y\]/g,'</div>');
  55. station_intro = station_intro.replace(/\[N\]/g,'<h3 style="color:#FF8800;font-size:16px;">费用不包含</h3><div style="margin-bottom: 20px;font-size: 14px;">');
  56. station_intro = station_intro.replace(/\[\/N\]/g,'</div>');
  57. var xcontainer=document.getElementById("container");
  58. xcontainer.innerHTML = station_intro;
  59. }
  60. }else{
  61. alert(httpData.info);
  62. }
  63. }
  64. }
  65. function getPar(par){
  66. //获取当前URL
  67. var local_url = document.location.href;
  68. local_url = decodeURI(local_url);
  69. //获取要取得的get参数位置
  70. var get = local_url.indexOf(par +"=");
  71. if(get == -1){
  72. return false;
  73. }
  74. //截取字符串
  75. var get_par = local_url.slice(par.length + get + 1);
  76. //判断截取后的字符串是否还有其他get参数
  77. var nextPar = get_par.indexOf("&");
  78. if(nextPar != -1){
  79. get_par = get_par.slice(0, nextPar);
  80. }
  81. return get_par;
  82. }
  83. </script>
  84. </html>