index.html
3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta name="google" value="notranslate">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<meta http-equiv="Expires" content="0">
<script src="js/common.js"></script>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>扫码页面</title>
</head>
<body style="background-color: #f0f4f5;">
<!--<noscript>-->
<!--You need to enable JavaScript to run this app.-->
<!--</noscript>-->
<header id="header" style="margin-top:25%; display: flex; justify-content: center; align-items: center; flex-direction: column; ">
<div id="stateLable" style="font-size: 16px; color: #777; margin-top: 20px;">页面跳转,请稍后...</div>
</header>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script type="text/javascript">
window.onload = function () {
var tmpParams = getQueryString(window.location);
if (tmpParams != null) {
console.log(JSON.stringify(tmpParams));
getResponse(tmpParams);
} else {
getObjectByID("stateLable").innerHTML = "没有接收到页面设置参数";
console.log("页面设置参数" + tmpParams);
alertMsg("没有接收到页面设置参数");
}
}
//type[fail、sucesss]
function getResponse(params) {
//debugger;
var direction = params.direction;//direction=0 [通行方向 入:0,1:出 必填]
var queryParams = parseParams(params);
//小票二维码特殊处理[不带codeType]
if (typeof(params.lotId) != "undefined") {
window.location.href = "billCodePay.html?" + queryParams;
} else {
//跳转标识codeType[0静态码、1小票二维码、2动态二维码]
if (params.codeType == 2) {
window.location.href = "dynCodePay.html?" + queryParams;
} else {
if (direction == 0) {//入口
window.location.href = "page/in.html?" + queryParams;
} else {//出口
window.location.href = "page/out.html?" + queryParams;
}
}
}
}
</script>
</body>
</html>