You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

260 lines
14 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  6. <title>出行线路详情</title>
  7. <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
  8. <style>
  9. html,body {width:100%;font-family:黑体,Courier New,Courier, monospace;}
  10. body {margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;background:#f0f0f0;}
  11. #div_main {position:relative;float:left;width:100%;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;background:#f0f0f0;height:100%;padding-bottom:-52px;overflow-y:auto;overflow-x:hidden;width:100%;}
  12. #div_bottom {position:fixed;bottom:0px;width:100%;height:52px;line-height:52px;font-size:18px;font-weight:600;text-align:center;margin:0px 0px 0px 0px;background:#ff8800;color:#ffffff;}
  13. #div_main1 {position:relative;float:left;width:100%;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;background:#f0f0f0;overflow:hidden;}
  14. /*#div_bottom1 {position:fixed;top:100%;left:0px;width:100%;height:52px;line-height:52px;font-size:18px;font-weight:600;text-align:center;margin:-50px 0px 0px 0px;background:#ff8800;color:#ffffff;}*/
  15. #div_top {position:relative;float:left;width:100%;margin:10px 0px 0px 0px;border-top:1px solid #e5e5e5;background:#ffffff;}
  16. #div_top_1 {position:relative;float:center;width:98%;margin-left:auto;margin-right:auto;margin-top:10px;margin-bottom:0px;overflow:hidden;}
  17. #div_top_1_1 {position:relative;float:left;width:6%;height:71px;overflow:hidden;background:url(img/smalllogo.png);background-size:9px 39px;background-repeat:no-repeat ; background-position: 30% 15px;}
  18. #div_top_1_2 {position:relative;float:left;width:86%;height:71px;overflow:hidden;}
  19. #div_top_1_3 {position:relative;float:left;width:8%;height:71px;overflow:hidden;}
  20. #div_top_1_2_1_1 {position:relative;float:left;width:54%;height:35px;line-height:35px;overflow:hidden;color:#343434;font-size:16px;text-align:left;border-bottom:1px solid #dddddd;overflow:hidden;}
  21. #div_top_1_2_1_2 {position:relative;float:left;width:46%;height:35px;line-height:35px;overflow:hidden;color:#808080;font-size:14px;font-family:"黑体";text-align:right;border-bottom:1px solid #dddddd;overflow:hidden;}
  22. #div_top_1_2_2_1 {position:relative;float:left;width:54%;height:35px;line-height:35px;overflow:hidden;color:#343434;font-size:16px;text-align:left;overflow:hidden;}
  23. #div_top_1_2_2_2 {position:relative;float:left;width:46%;height:35px;line-height:35px;overflow:hidden;color:#808080;font-size:14px;font-family:"黑体";text-align:right;overflow:hidden;}
  24. #div_top_1_4 {position:relative;float:left;width:100%;height:40px;line-height:40px;overflow:hidden;color:#808080;font-size:13px;text-align:left;border-bottom:1px solid #dddddd;overflow:hidden;}
  25. #div_top_1_5 {position:relative;float:left;width:65%;height:40px;line-height:40px;overflow:hidden;color:#ff8800;font-size:16px;text-align:left;verflow:hidden;}
  26. #div_top_1_5 .xprice {font-size:16px;font-weight:600;letter-spacing:2px;margin-left:3px;font-family:"黑体";}
  27. #div_top_1_6 {position:relative;float:left;width:20%;height:40px;line-height:43px;margin-left:52px;overflow:hidden;color:#585858;font-size:13px;background:url(img/detailbg.png) no-repeat; background-size: 8px 12px;background-position: 60px 14px;}
  28. #div_title_1 {position:relative;float:left;width:100%;height:45px;line-height:50px;border-top:1px solid #dddddd;border-bottom:1px solid #dddddd;font-size:17px;color:#303030;letter-spacing:2px;padding-left:15px;}
  29. #div_detail {position:relative;float:left;width:100%;border-bottom:1px solid #dddddd;background:#ffffff;overflow:auto;}
  30. #div_detail_1 {position:relative;float:left;width:100%;height:40px;line-height:40px;overflow:hidden;background:#ffffff;text-align:center;margin-bottom:50px;}
  31. #div_detail_1 span {position:relative;float:center;margin-left:auto;margin-right:auto;display:block;width:120px;line-height:43px;background:url(img/detailbg.png) no-repeat; background-size: 8px 12px;background-position: 100px 14px;}
  32. ul {position:relative;float:center;width:98%;margin-left:auto;margin-right:auto;padding:0px 0px 0px 0px;margin-top:10px;margin-bottom:10px;overflow:hidden;}
  33. ul li {list-style:none;position:relative;float:left;width:100%;line-height:30px;overflow:hidden;}
  34. .li_11 {font-family:黑体;color:#ffa033;font-size:24px;line-height:46px;font-weight:600;letter-spacing:2px;}
  35. .li_12 {font-family:黑体;color:#ffa033;font-size:24px;line-height:46px;font-weight:600;letter-spacing:2px;border-top:1px dotted #666666;margin-top:10px;}
  36. .li_21 {background-image:url(img/getin.jpg);background-repeat: no-repeat;background-size: 21px 38px;background-position:12.3px 10px;font-family:黑体;color:#0b0b0b;font-size:16px;letter-spacing:2px;}
  37. .li_22 {background-image:url(img/xroad.jpg);background-repeat: no-repeat;background-size: 21px 51px;background-position:12.3px 0px;font-family:黑体;color:#0b0b0b;font-size:16px;letter-spacing:2px;}
  38. .li_23 {background-image:url(img/getoff.jpg);background-repeat: no-repeat;background-size: 21px 58px;background-position:12.31px -5px;font-family:黑体;color:#0b0b0b;font-size:16px;letter-spacing:2px;}
  39. .li_24 {background-image:url(img/jiebo.jpg);background-repeat: no-repeat;background-size: 21px 58px;background-position:12.31px -5px;font-family:黑体;color:#0b0b0b;font-size:16px;letter-spacing:2px;}
  40. .span_1 {position:relative;float:right;width:85%;line-height:46px;height:46px;text-align:left;}
  41. .li_3 {background-image:url(img/xstop.jpg);background-repeat: no-repeat;background-size:8px 500px;background-position:19px -50px;font-family:黑体;color:#585858;font-size:14px;font-weight:400;letter-spacing:1px;}
  42. .span_2 {position:relative;float:right;width:85%;line-height:25px;text-align:left;}
  43. #div_qc_fc_all {position:relative;float:center;width:100%;margin-left:auto;margin-right:auto;margin-top:10px;margin-bottom:10px;overflow:hidden;}
  44. #div_qc_fc {position:relative;float:left;width:100%;margin:0px 0px 0px 0px;overflow:hidden;overflow:hidden;}
  45. #div_qc {position:relative;float:left;width:100%;margin:0px 0px 0px 0px;overflow:hidden;display:block;}
  46. #div_fc {position:relative;float:left;width:100%;margin:0px 0px 0px 0px;overflow:hidden;display:none;}
  47. .span_select {display:block;position:relative;float:left;width:100px;height:30px;margin:5px 10px 5px 2%;line-height:28px;font-size:16px;border-radius:5px;background:#ffa033;text-align:center;font-family:黑体;color:#ffffff;}
  48. .span_unselect {display:block;position:relative;float:left;width:100px;height:28px;margin:5px 10px 5px 2%;line-height:28px;font-size:16px;border-radius:5px;background:#ffffff;text-align:center;font-family:黑体;border:1px solid #ffa033;}
  49. </style>
  50. <script type="text/javascript" src="../js/public.js"></script>
  51. <script language=javascript>
  52. if (window.ActiveXObject){
  53. var myreq = new ActiveXObject("Microsoft.XMLHTTP");
  54. }else{
  55. var myreq = new XMLHttpRequest();
  56. }
  57. var m_prodcode = '';
  58. var m_prodintro = '';
  59. var m_iffc = 0;
  60. function order_product()
  61. {
  62. location.href = 'reserve.html?prodcode=' + m_prodcode;
  63. }
  64. function explain_fee()
  65. {
  66. location.href = 'bookingHomePage/spend.html?prodcode='+ m_prodcode;
  67. }
  68. function show_product_detail()
  69. {
  70. location.href = 'details1.html?prodcode=' + m_prodcode;
  71. }
  72. window.onload = function ()
  73. {
  74. m_prodcode = getPar('prod_code');
  75. var tt= getDateTime(4);
  76. var myURL = '/core/detail.asp?prodcode=' + m_prodcode;
  77. myreq.open("get",myURL,true);
  78. myreq.onreadystatechange = show_detail;
  79. myreq.send(null);
  80. }
  81. function show_detail()
  82. {
  83. if (myreq.readyState == 4)
  84. {
  85. var newstr = myreq.responseText;
  86. var myJason = JSON.parse(newstr);
  87. var c_errcode = myJason.code;
  88. if (c_errcode == '0')
  89. {
  90. document.getElementById('div_top_1_2_1_1').innerHTML = myJason.start_area;
  91. document.getElementById('div_top_1_2_1_2').innerHTML = myJason.run_info;
  92. document.getElementById('div_top_1_2_2_1').innerHTML = myJason.end_area;
  93. document.getElementById('div_top_1_2_2_2').innerHTML = myJason.run_count + '&nbsp;班/天';
  94. document.getElementById('div_top_1_5').innerHTML = '<span style="margin-left:10px;font-weight:bold;">¥</span><span class="xprice">' + myJason.price + '</span>';
  95. var c_ifbus = myJason.if_bus;
  96. var c_ifhotel = myJason.if_hotel;
  97. var c_ifsightspot = myJason.if_sightspot;
  98. var c_direction = myJason.direction;
  99. var c_prodname = myJason.prod_name;
  100. if (c_ifbus - 1 == 0) c_prodname += '<img id="if_bus" style="width:13px; height:14px;margin-left:5px;" src="img/car2.png" alt="">';
  101. if (c_ifhotel - 1 == 0) c_prodname += '<img id="if_hotel" style="width:15px; height:14px;margin-left:5px;" src="../img/hotel2.png" alt="">';
  102. if (c_ifsightspot - 1 == 0) c_prodname += '<img id="if_sightspot" style="width:15px; height:15px;margin-left:5px;" src="../img/ticket.png" alt="">';
  103. document.getElementById('div_top_1_4').innerHTML = c_prodname;
  104. var obj1 = document.getElementById('div_top_1_3');
  105. if (c_direction - 1 == 0)
  106. {
  107. obj1.style.background = 'url(img/detailbg.jpg) no-repeat -60px -234px';
  108. }else{
  109. obj1.style.background = 'url(img/go_back.png) no-repeat';
  110. obj1.style.backgroundSize="13px 13px"
  111. obj1.style.backgroundPosition="10px 28px"
  112. }
  113. m_prodintro = myJason.circuitry_intro;
  114. show_info1(m_prodintro);
  115. }else{
  116. var c_errinfo = myJason.info;
  117. alert(c_errinfo);
  118. }
  119. }
  120. }
  121. function show_info3(cstr1,cstr3)
  122. {
  123. var num3 = cstr1.indexOf('\[' + cstr3 + '\]');
  124. var num4 = cstr1.indexOf('\[\/' + cstr3 + '\]');
  125. var cstr2 = '';
  126. var num1 = cstr3.length;
  127. while (num4-num3>0 && num3>0)
  128. {
  129. cstr2 += cstr1.substr(0,num3);
  130. cstr1 = cstr1.substring(num4-0+3+num1);
  131. num3 = cstr1.indexOf('\[' + cstr3 + '\]');
  132. num4 = cstr1.indexOf('\[\/' + cstr3 + '\]');
  133. }
  134. cstr1 = cstr2 + cstr1;
  135. return cstr1;
  136. }
  137. function show_info1(cstr1)
  138. {
  139. cstr1 = show_info3(cstr1,'J');
  140. cstr1 = show_info3(cstr1,'R');
  141. cstr1 = cstr1.replace(/\[T\]\[S\]/g,'\[\/T\]\[S\]');
  142. cstr1 = cstr1.replace(/\[SC\]/g,'<li class="li_21"><span class="span_1">上车</span></li>\n');
  143. cstr1 = cstr1.replace(/\[\/SC\]/g,'\n');
  144. cstr1 = cstr1.replace(/\[T\]/g,'<li class="li_3"><span class="span_2">\n');
  145. cstr1 = cstr1.replace(/\[\/T\]\[S\]/g,'&nbsp;');
  146. cstr1 = cstr1.replace(/\[\/S\]\[A\]/g,'<br/>');
  147. cstr1 = cstr1.replace(/\[\/A\]/g,'</li>\n');
  148. cstr1 = cstr1.replace(/\[X\]/g,'<li class="li_22"><span class="span_1">路程</span></li>\n<li class="li_3"><span class="span_2">');
  149. cstr1 = cstr1.replace(/\[\/X\]/g,'</span></li>\n');
  150. cstr1 = cstr1.replace(/\[J\]/g,'<li class="li_24"><span class="span_1">接驳</span></li>\n<li class="li_3"><span class="span_2">');
  151. cstr1 = cstr1.replace(/\[\/J\]/g,'</span></li>\n');
  152. cstr1 = cstr1.replace(/\[XC\]/g,'<li class="li_23"><span class="span_1">下车</span></li>\n');
  153. cstr1 = cstr1.replace(/\[\/XC\]/g,'\n');
  154. cstr1 = cstr1.replace(/\[\/S\]\[T\]/g,'</span></li>\n<li class="li_3"><span class="span_2">');
  155. cstr1 = cstr1.replace(/\[S\]/g,'<li class="li_3"><span class="span_2">\n');
  156. cstr1 = cstr1.replace(/\[\/S\]/g,'</span></li>\n');
  157. cstr1 = cstr1.replace(/\[D1\]/g,'');
  158. cstr1 = cstr1.replace(/\[\/D1\]/g,'');
  159. cstr1 = cstr1.replace(/\[D2\]/g,'');
  160. cstr1 = cstr1.replace(/\[\/D2\]/g,'');
  161. cstr1 = cstr1.replace(/\[D3\]/g,'');
  162. cstr1 = cstr1.replace(/\[\/D3\]/g,'');
  163. var num1 = cstr1.indexOf('\[QC\]');
  164. var num2 = cstr1.indexOf('\[\/QC\]');
  165. var cstr21 = '';
  166. var cstr31 = '<div id="div_qc_fc_all"><div id="div_qc_fc">';
  167. var cstr32 = '';
  168. if (num2-num1>0 && num1-0>=0)
  169. {
  170. cstr21 = cstr1.substring(num1-0+4,num2);
  171. cstr21 = '<ul>' + cstr21 + '</ul>';
  172. cstr31 += '<span id="span_qc" class="span_select" onclick="show_info2(0)">去&nbsp;程</span>';
  173. cstr32 += '<div id="div_qc">' + cstr21 + '</div>';
  174. }
  175. num1 = cstr1.indexOf('\[FC\]');
  176. num2 = cstr1.indexOf('\[\/FC\]');
  177. if (num2-num1>0 && num1-0>=0)
  178. {
  179. cstr21 = cstr1.substring(num1-0+4,num2);
  180. cstr21 = '<ul>' + cstr21 + '</ul>';
  181. cstr31 += '<span id="span_fc" class="span_unselect" onclick="show_info2(1)">返&nbsp;程</span>';
  182. cstr32 += '<div id="div_fc">' + cstr21 + '</div>';
  183. m_iffc = 1;
  184. }else{
  185. cstr32 += '<div id="div_fc"></div>';
  186. }
  187. var cstr3 = cstr31 + '</div>' + cstr32 + '</div>';
  188. var obj1 = document.getElementById('div_detail');
  189. obj1.innerHTML = cstr3;
  190. }
  191. function show_info2(myflag)
  192. {
  193. if (m_iffc - 0 == 0)
  194. {
  195. return;
  196. }else{
  197. var obj11 = document.getElementById('span_qc');
  198. var obj12 = document.getElementById('div_qc');
  199. var obj21 = document.getElementById('span_fc');
  200. var obj22 = document.getElementById('div_fc');
  201. if (myflag - 1 == 0)
  202. {
  203. obj11.className = 'span_unselect';
  204. obj21.className = 'span_select';
  205. obj12.style.display = 'none';
  206. obj22.style.display = 'block';
  207. }else{
  208. obj11.className = 'span_select';
  209. obj21.className = 'span_unselect';
  210. obj12.style.display = 'block';
  211. obj22.style.display = 'none';
  212. }
  213. }
  214. }
  215. </script>
  216. <!-- 百度统计star -->
  217. <script>
  218. var _hmt = _hmt || [];
  219. (function() {
  220. var hm = document.createElement("script");
  221. hm.src = "//hm.baidu.com/hm.js?3d4ede42cef05a99fcd8bda849831ada";
  222. var s = document.getElementsByTagName("script")[0];
  223. s.parentNode.insertBefore(hm, s);
  224. })();
  225. </script>
  226. <!-- 百度统计end -->
  227. </head>
  228. <body>
  229. <div id="div_main">
  230. <div id="div_top">
  231. <div id="div_top_1">
  232. <div id="div_top_1_1"></div>
  233. <div id="div_top_1_2">
  234. <div id="div_top_1_2_1_1"></div>
  235. <div id="div_top_1_2_1_2"></div>
  236. <div id="div_top_1_2_2_1"></div>
  237. <div id="div_top_1_2_2_2"></div>
  238. </div>
  239. <div id="div_top_1_3"></div>
  240. <div id="div_top_1_4"></div>
  241. <div id="div_top_1_5"></div>
  242. <div id="div_top_1_6" onclick="explain_fee()">费用说明</div>
  243. </div>
  244. </div>
  245. <div id="div_title_1">线路介绍</div>
  246. <div id="div_detail"></div>
  247. <div id="div_detail_1" onclick="show_product_detail()"><span>查看详情</span></div>
  248. </div>
  249. <div id="div_bottom" onclick="order_product()">立即预订</div>
  250. </body>
  251. </html>