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.
 
 
 
 
 
 

60 lines
2.3 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  6. <title>检票成功</title>
  7. <link rel="stylesheet" type="text/css" href="css/ui-base.css">
  8. <link rel="stylesheet" type="text/css" href="css/ui-box.css">
  9. <link rel="stylesheet" type="text/css" href="css/ui-color.css">
  10. <link rel="stylesheet" type="text/css" href="css/check_ticket.css">
  11. </head>
  12. <body class="bc-bg">
  13. <div class="sc-bg ub uinn9 ub-ver ticket_font" id="user">
  14. <!-- <div class="ticket_li">线&nbsp;&nbsp;路:<span class="ticket_col">上海-乌镇</span></div>
  15. <div class="ticket_li">出发时间:<span class="ticket_col">2016年6月30日 07:30</span></div>
  16. <div class="ticket_li">数&nbsp;&nbsp;量:<span class="ticket_col">四张</span></div>
  17. <div>座&nbsp;&nbsp;号:<span class="ticket_col">08、09、10、11</span></div> -->
  18. </div>
  19. <div class="ub ub-ver ub-ac">
  20. <img class="tcket_img" src="img/check_succss.png">
  21. <div class="tcket_suc">验票成功!</div>
  22. <div>
  23. </body>
  24. <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script>
  25. <script>
  26. createHtml_user();
  27. function createHtml_user(){
  28. var temp = '<div class="ticket_li">线&nbsp;&nbsp;路:<span class="ticket_col">'+getPar("line")+'</span></div>'
  29. + '<div class="ticket_li">出发时间:<span class="ticket_col">'+getPar("time").substring(0,10) +'&nbsp;'+ getPar("time").substring(11,18)+'</span></div>'
  30. + '<div class="ticket_li">数&nbsp;&nbsp;量:<span class="ticket_col">'+getPar("num")+'张</span></div>'
  31. $("#user").html(temp);
  32. }
  33. function getPar(par){
  34. //获取当前URL
  35. var local_url = document.location.href;
  36. // 接收的时候将URL 解码
  37. local_url = decodeURI(local_url);
  38. //获取要取得的get参数位置
  39. var get = local_url.indexOf(par +"=");
  40. if(get == -1){
  41. return '';
  42. }
  43. //截取字符串
  44. var get_par = local_url.slice(par.length + get + 1);
  45. //判断截取后的字符串是否还有其他get参数
  46. var nextPar = get_par.indexOf("&");
  47. if(nextPar != -1){
  48. get_par = get_par.slice(0, nextPar);
  49. }
  50. return get_par;
  51. }
  52. </script>
  53. </html>