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.
 
 
 
 
 
 

307 lines
14 KiB

  1. <html>
  2. <head>
  3. <title>选择日期班次</title>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <link rel="stylesheet" type="text/css" href="../css/home.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/reserve_one.css" />
  9. <style>
  10. #div_date_run {position:absolute;top:0px;left:0px;width:100%;background:#ffffff;z-index:999;}
  11. #div_date_run_title {position:relative;float:left;width:100%;height:30px;text-align:center;line-height:30px;}
  12. #div_date_run_date {position:relative;float:left;width:100%;height:30px;text-align:center;line-height:30px;}
  13. #div_date_run_date span {display:block;}
  14. .span_move_month {position:relative;float:left;width:20%;cursor:pointer;}
  15. #span_now_month {position:relative;float:left;width:60%;cursor:default;}
  16. #div_date_calendar {position:relative;float:left;margin:0px 0px 0px 0px;text-align:center;overflow:hidden;width:100%;height:200px;}
  17. #div_date_calendar1 {position:absolute;left:50%;top:0px;width:393px;margin-left:-196px;background:#000000;overflow:hidden;padding:0px 0px 1px 0px;}
  18. #div_date_calendar1 span {display:block;}
  19. .span_calendar_title {position:relative;float:left;width:55px;height:25px;line-height:25px;margin:1px 0px 0px 1px;background:#ffffff;}
  20. .span_calendar_blank {position:relative;float:left;width:55px;height:25px;line-height:25px;margin:1px 0px 0px 1px;background:#ffffff;}
  21. .span_calendar_disable {position:relative;float:left;width:55px;height:25px;line-height:25px;margin:1px 0px 0px 1px;background:#cccccc;color:#aaaaaa;line-height:25px;text-align:center;}
  22. .span_calendar_enable {position:relative;float:left;width:55px;height:25px;line-height:25px;margin:1px 0px 0px 1px;background:#cccccc;color:#000000;font-weight:600;line-height:25px;text-align:center;}
  23. </style>
  24. <!-- 百度统计star -->
  25. <script>
  26. var _hmt = _hmt || [];
  27. (function() {
  28. var hm = document.createElement("script");
  29. hm.src = "//hm.baidu.com/hm.js?3d4ede42cef05a99fcd8bda849831ada";
  30. var s = document.getElementsByTagName("script")[0];
  31. s.parentNode.insertBefore(hm, s);
  32. })();
  33. </script>
  34. <!-- 百度统计end -->
  35. </head>
  36. <body>
  37. <div id="book_one" class="wrapper" style="display: block;">
  38. <div class="header">
  39. <img class="left_img" src="../img/back.png" ></img>
  40. <a href="javascript:window.opener=null;window.open('','_self');window.close();" >返回</a>
  41. 蜘蛛出行
  42. <img class="right_img" src="../img/more.png" ></img>
  43. </div>
  44. <div class="content" style="padding-top: 2%;">
  45. <div class="go_back_layout">
  46. <div class="left_layout">
  47. <div style="position: relative; width: 100%;">
  48. <img class="start_img", src="../img/start.png" ></img>
  49. <p class="reserve_float" style=" font-size: 15px;">上海</p>
  50. <p class="reserve_float" style="margin-left: 30%; font-size: 15px;">4.15</p>
  51. <p class="reserve_float" style="margin-left: 1%; font-size: 15px;">07:30</p>
  52. <p class="reserve_float" style="margin-left: 1%; font-size: 15px;">出发</p>
  53. <br />
  54. </div>
  55. <div style="position: relative; margin-top: 15px; margin-bottom: 10px;">
  56. <hr class="reserve_hr" />
  57. </div>
  58. <div style="position: relative;">
  59. <img class="end_img", src="../img/end.png"></img>
  60. <p class="reserve_float" style="font-size: 15px;">上海</p>
  61. <p class="reserve_float" style="margin-left: 30%; font-size: 15px;">4.15</p>
  62. <p class="reserve_float" style="margin-left: 1%; font-size: 15px;">07:30</p>
  63. <p class="reserve_float" style="margin-left: 1%; font-size: 15px;">返回</p>
  64. <br />
  65. </div>
  66. </div>
  67. <div class="right_layout" style="margin-top: 10px;">
  68. <img src="../img/go_back.png" ></img>
  69. </div>
  70. </div>
  71. <div style="position: relative; width: 100%; margin-top: 15px; padding-left: 1%;">
  72. <p style="float: left; margin-left 1%; font-size: 15px;">佛教圣地祈福休闲二日游两天一晚 景区住宿</p>
  73. <a style="float: left; margin-left: 1%;" class="button green">2日</a>
  74. <br />
  75. <br />
  76. </div>
  77. <div style="position: relative; width: 100%; margin-top: 10px; padding-left: 1%;">
  78. <img style="float: left;" src="../img/car.png"/>
  79. <img style="float: left; margin-left: 1%;" src="../img/phone.png"/>
  80. <a style="float: right; margin-top: 8px; margin-right: 1%; color: #FE7966;">购票须知</a>
  81. <img style="float: right; margin-right: 1%;" src="../img/book.png"/>
  82. <br />
  83. <br />
  84. </div>
  85. <div style="position: relative; width: 100%;">
  86. <hr class="reserve_hr_2" />
  87. <hr class="reserve_hr_2" />
  88. </div>
  89. <div style="position: relative; width: 100%; height: 60px; text-align: center; line-height: 60px;">
  90. <p style="float: left; margin-left: 1%; font-size: 20px;">出行时间:</p>
  91. <img style="float: right; margin-right: 1%; margin-top: 15px;" src="../img/right_arrow.png"/>
  92. <a onclick="go_date()" style="float: right; font-size: 20px;">选择时间</a>
  93. </div>
  94. <div style="position: relative; width: 100%;">
  95. <hr class="reserve_hr_2" />
  96. <hr id="back_line1" class="reserve_hr_2" style="display: none;"/>
  97. </div>
  98. <div id="back_ticket" style="position: relative; width: 100%; height: auto; display: none;">
  99. <div style="position: relative; width: 100%;">
  100. <p style="float: left; margin-top: 20px; margin-left: 1%; font-size: 20px;">数量:</p>
  101. <p style="float: left; margin-top: 20px; margin-left: 10%; font-size: 20px;">二日往返车票(成人)</p>
  102. <br />
  103. </div>
  104. <div style="position: relative; width: 100%; margin-top: 40px;" >
  105. <p style=" float: left; margin-left: 15%; font-size: 20px;">¥ 500</p>
  106. <p style=" float: left; margin-left: 20%; font-size: 20px;">充足</p>
  107. <a style="float: right; padding: 5px 10px 5px 10px; border: 1px solid #EBEBEB; margin-right: 1%;">-</a>
  108. <a style="float: right; padding: 5px 10px 5px 10px; border-bottom: 1px solid #EBEBEB; border-top: 1px solid #EBEBEB;">0</a>
  109. <a style="float: right; padding: 5px 10px 5px 10px; border: 1px solid #EBEBEB;">+</a>
  110. </div>
  111. <div style="position: relative; width: 100%; margin-top: 70px;">
  112. <p style="float: left; margin-top: 20px; margin-left: 15%; font-size: 20px;">二日往返车票(儿童)</p>
  113. <br />
  114. </div>
  115. <div style="position: relative; width: 100%; margin-top: 40px;" >
  116. <p style=" float: left; margin-left: 15%; font-size: 20px;">¥ 500</p>
  117. <p style=" float: left; margin-left: 20%; font-size: 20px;">充足</p>
  118. <a style="float: right; padding: 5px 10px 5px 10px; border: 1px solid #EBEBEB; margin-right: 1%;">-</a>
  119. <a style="float: right; padding: 5px 10px 5px 10px; border-bottom: 1px solid #EBEBEB; border-top: 1px solid #EBEBEB;">0</a>
  120. <a style="float: right; padding: 5px 10px 5px 10px; border: 1px solid #EBEBEB;">+</a>
  121. </div>
  122. </div>
  123. <div id="back_line2" style="position: relative; width: 100%; display: none;">
  124. <hr class="reserve_hr_2" style="margin-top: 100px;"/>
  125. <hr id="back_line3_ex" class="reserve_hr_2" />
  126. </div>
  127. <div id="linkman1" style="position: relative; width: 100%; height: 60px; text-align: center; line-height: 60px;">
  128. <p style="float: left; margin-left: 1%; font-size: 20px;">联系人:</p>
  129. <img style="float: right; margin-right: 1%; margin-top: 15px;" src="../img/add.png"/>
  130. <a onclick="go_linkman()" style="float: right; font-size: 20px;">添加联系人</a>
  131. </div>
  132. <div style="position: relative; width: 100%;">
  133. <hr id="back_line3" class="reserve_hr_2" />
  134. <hr id="back_line4" class="reserve_hr_2" style="display: none;"/>
  135. </div>
  136. <div id="linkman2" style="position: relative; width: 100%; height: auto; display: none;">
  137. <div style="position: relative; width: 100%;">
  138. <p style="float: left; margin-top: 20px; margin-left: 1%; font-size: 20px;">联系人:</p>
  139. <p style="float: left; margin-top: 20px; margin-left: 8%; font-size: 20px;">小凳子</p>
  140. <a style="float: right; margin-top: 10px; margin-right 5%; padding: 5px 10px 5px 10px; border: 1px solid #EBEBEB;">修改</a>
  141. <br />
  142. </div>
  143. <div style="position: relative; width: 100%; margin-top: 30px;">
  144. <p style="float: left; margin-left: 15%; font-size: 20px;">13068856687</p>
  145. </div>
  146. <div style="position: relative; width: 100%; margin-top: 60px;">
  147. <p style="float: left; margin-left: 15%; font-size: 20px;">43022319891007321X</p>
  148. <br />
  149. </div>
  150. </div>
  151. <div id="back_line5" style="position: relative; width: 100%; display: none;">
  152. <hr class="reserve_hr_2" style="margin-top: 20px;"/>
  153. </div>
  154. </div>
  155. <div class="reserver_bottom">
  156. <a class="bottom_amount">金额</a>
  157. <a class="bottom_amount_price">¥ 500</a>
  158. <a class="bottom_place_order">提交订单</a>
  159. </div>
  160. </div>
  161. <div id="book_date" class="wrapper" style="display: none;">
  162. <div class="header">
  163. <img class="left_img" src="../img/back.png" ></img>
  164. <a onclick="back_date()" >返回</a>
  165. 出行时间选择
  166. <img class="right_img" src="../img/more.png" ></img>
  167. </div>
  168. <div class="content">
  169. <div id="step_2_a" style="display: block;">
  170. <div id="step_2_a1" style="float:left;width:100%;background:#aaaaaa">
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <div id="linkman_view" class="wrapper" style="display: none;">
  176. <div class="header">
  177. <img class="left_img" src="../img/back.png" ></img>
  178. <a onclick="back_linkman()" >返回</a>
  179. 联系人
  180. <img class="right_img" src="../img/more.png" ></img>
  181. </div>
  182. </div>
  183. <div id="div_date_run">
  184. <div id="div_date_run_title">请选择出行日期</div>
  185. <div id="div_date_run_date">
  186. <span class="span_move_month" id="span_last_month" onclick="show_next_calendar('2016-04-01',-1)" ><<</span>
  187. <span id="span_now_month" >2016-04</span>
  188. <span class="span_move_month" id="span_next_month" onclick="show_next_calendar('2016-04-01',1)" >>></span>
  189. </div>
  190. <div id="div_date_calendar">
  191. <div id="div_date_calendar1" ></div>
  192. </div>
  193. </div>
  194. </body>
  195. <script type="text/javascript" src="../js/zepto.min.js"></script>
  196. <script type="text/javascript">
  197. function go_date(){
  198. $('#book_one').css('display', 'none');
  199. $('#book_date').css('display', 'block');
  200. show_calendar()
  201. }
  202. function back_date(){
  203. $('#book_date').css('display', 'none');
  204. $('#book_one').css('display', 'block');
  205. $('#back_line1').css('display', 'block');
  206. $('#back_ticket').css('display', 'block');
  207. $('#back_line2').css('display', 'block');
  208. }
  209. function go_linkman(){
  210. $('#book_one').css('display', 'none');
  211. $('#linkman_view').css('display', 'block');
  212. show_calendar()
  213. }
  214. function back_linkman(){
  215. $('#linkman_view').css('display', 'none');
  216. $('#book_one').css('display', 'block');
  217. $('#back_line3_ex').css('display', 'none');
  218. $('#back_line3').css('display', 'none');
  219. $('#linkman1').css('display', 'none');
  220. $('#back_line4').css('display', 'block');
  221. $('#linkman2').css('display', 'block');
  222. $('#back_line5').css('display', 'block');
  223. }
  224. function show_next_calendar(cshowdate,dealflag)
  225. {
  226. var cnowdate = str2date(cshowdate);
  227. var cnowyear = cnowdate.getYear();
  228. var cnowfullyear = cnowdate.getFullYear();
  229. var cnowmonth = cnowdate.getMonth();
  230. var ddate1 = new Date(cnowfullyear,cnowmonth+dealflag,1);
  231. var cnextfullyear = ddate1.getFullYear();
  232. var cnextmonth = ddate1.getMonth();
  233. var cnextdate = parseInt(cnextmonth)+1;
  234. cnextdate = cnextfullyear + '-' + cnextdate + '-1';
  235. show_calendar(cnextdate);
  236. }
  237. function show_calendar(cshowdate)
  238. {
  239. var cnowdate = str2date(cshowdate);
  240. var cnowyear = cnowdate.getYear();
  241. var cnowfullyear = cnowdate.getFullYear();
  242. var cnowmonth = cnowdate.getMonth();
  243. var ddate1 = new Date(cnowfullyear,cnowmonth+1,1);
  244. var denddate = new Date(ddate1-86400000);
  245. var cendday = denddate.getDate();
  246. var clistdateweek = 0;
  247. var cnowdate2 = parseInt(cnowmonth)+1;
  248. cnowdate2 = cnowfullyear + '年' + cnowdate2 + '月';
  249. var cnowdate3 = cnowfullyear + '-' + cnowmonth + '-1';
  250. var cshow1 = '<span class="span_move_month" id="span_last_month" onclick="show_next_calendar(\'' + cnowdate3 + '\',0)" ><<</span>';
  251. cshow1 += '<span id="span_now_month" >' + cnowdate2 + '</span>';
  252. cshow1 += '<span class="span_move_month" id="span_next_month" onclick="show_next_calendar(\'' + cnowdate3 + '\',2)" >>></span>';
  253. document.getElementById('div_date_run_date').innerHTML = cshow1;
  254. var cshow = '<span class="span_calendar_title" >星期一</span><span class="span_calendar_title" >星期二</span><span class="span_calendar_title" >星期三</span><span class="span_calendar_title" >星期四</span><span class="span_calendar_title" >星期五</span><span class="span_calendar_title" >星期六</span><span class="span_calendar_title" >星期日</span>';
  255. for (var i=1;i<=cendday;i++)
  256. {
  257. var clistdate = new Date(cnowfullyear,cnowmonth,i);
  258. clistdateweek = clistdate.getDay();
  259. if (i==1)
  260. {
  261. if (clistdateweek == 0) clistdateweek = 7;
  262. for (var j=1;j<clistdateweek;j++)
  263. {
  264. cshow += '<span class="span_calendar_blank" >&nbsp;</span>';
  265. }
  266. }
  267. cshow += '<span class="span_calendar_enable" >' + i + '</span>';
  268. }
  269. if (clistdateweek>0)
  270. {
  271. for (var i=clistdateweek;i<7;i++)
  272. {
  273. cshow += '<span class="span_calendar_blank" >&nbsp;</span>';
  274. }
  275. }
  276. document.getElementById('div_date_calendar1').innerHTML = cshow;
  277. }
  278. function str2date(DateStr){
  279. if(typeof DateStr=="undefined")return new Date();
  280. if(typeof DateStr=="date")return DateStr;
  281. var converted = Date.parse(DateStr);
  282. var myDate = new Date(converted);
  283. if(isNaN(myDate)){
  284. DateStr=DateStr.replace(/:/g,"-");
  285. DateStr=DateStr.replace(" ","-");
  286. DateStr=DateStr.replace(".","-");
  287. var arys= DateStr.split('-');
  288. switch(arys.length){
  289. case 7 : myDate = new Date(arys[0],--arys[1],arys[2],arys[3],arys[4],arys[5],arys[6]);
  290. break;
  291. case 6 : myDate = new Date(arys[0],--arys[1],arys[2],arys[3],arys[4],arys[5]);
  292. break;
  293. default: myDate = new Date(arys[0],--arys[1],arys[2]);
  294. break;
  295. };
  296. };
  297. return myDate;
  298. }
  299. show_calendar('2016-12-01');
  300. </script>
  301. </html>