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.
 
 
 
 
 

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