|
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <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">
- <title>检票成功</title>
- <link rel="stylesheet" type="text/css" href="css/ui-base.css">
- <link rel="stylesheet" type="text/css" href="css/ui-box.css">
- <link rel="stylesheet" type="text/css" href="css/ui-color.css">
- <link rel="stylesheet" type="text/css" href="css/check_ticket.css">
- </head>
- <body class="bc-bg">
- <div class="sc-bg ub uinn9 ub-ver ticket_font" id="user">
- <!-- <div class="ticket_li">线 路:<span class="ticket_col">上海-乌镇</span></div>
- <div class="ticket_li">出发时间:<span class="ticket_col">2016年6月30日 07:30</span></div>
- <div class="ticket_li">数 量:<span class="ticket_col">四张</span></div>
- <div>座 号:<span class="ticket_col">08、09、10、11</span></div> -->
- </div>
- <div class="ub ub-ver ub-ac">
- <img class="tcket_img" src="img/check_succss.png">
- <div class="tcket_suc">验票成功!</div>
- <div>
- </body>
- <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script>
-
-
- <script>
-
- createHtml_user();
- function createHtml_user(){
- var temp = '<div class="ticket_li">线 路:<span class="ticket_col">'+getPar("line")+'</span></div>'
- + '<div class="ticket_li">出发时间:<span class="ticket_col">'+getPar("time").substring(0,10) +' '+ getPar("time").substring(11,18)+'</span></div>'
- + '<div class="ticket_li">数 量:<span class="ticket_col">'+getPar("num")+'张</span></div>'
-
- $("#user").html(temp);
-
- }
- function getPar(par){
- //获取当前URL
- var local_url = document.location.href;
- // 接收的时候将URL 解码
- local_url = decodeURI(local_url);
- //获取要取得的get参数位置
- var get = local_url.indexOf(par +"=");
- if(get == -1){
- return '';
- }
- //截取字符串
- var get_par = local_url.slice(par.length + get + 1);
- //判断截取后的字符串是否还有其他get参数
- var nextPar = get_par.indexOf("&");
- if(nextPar != -1){
- get_par = get_par.slice(0, nextPar);
- }
- return get_par;
- }
-
-
- </script>
- </html>
|