forked from 1izheng/xpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzz.html
308 lines (257 loc) · 7.71 KB
/
zz.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>支付订单</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
font-style: normal;
}
a {
text-decoration: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
outline: none;
color: inherit
}
a:hover {
opacity: 1
}
fieldset, img {
border: 0;
}
textarea {
resize: none;
padding: 3%;
line-height: 2.2;
width: 100%;
box-sizing: border-box;
}
button:active, a:active {
opacity: 0.8
}
input, textarea, select, button {
font-size: 100%;
outline: none;
border: none;
color: inherit;
line-height: inherit;
font-family: inherit;
background: rgba(255, 255, 255, 0)
}
input {
width: 80px
}
button {
color: #FFFFFF;
letter-spacing: 3px;
border-radius: 5px;
font-size: 110%;
line-height: 2.5;
}
html, body {
-ms-touch-action: none;
height: 100%;
position: relative
}
body {
min-height: 100%;
background: #EFEFEF;
text-align: center;
line-height: 1.6;
color: #000;
font-size: 12px
}
.m-head {
height: 45px
}
.m-head h1 {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 45px;
line-height: 45px;
background: #0be;
font-size: 120%;
color: #FFFFFF;
z-index: 10
}
.m-zfb .logo {
height: 50px;
text-align: center;
background: #FFFFFF;
padding: 10px 0;
box-sizing: border-box
}
.m-zfb .logo img {
display: block;
height: 100%;
margin: 0 auto
}
.m-zfb dl h1 {
color: #000000;
font-size: 250%;
line-height: 2
}
.m-zfb dl img {
margin: auto auto auto auto;
display: block
}
.m-zfb dl dd p span {
color: #019fe8;
}
.m-zfb dl dd p i {
color: #ff0000;
font-size: 120%;
font-weight: bolder
}
.m-zfb dt p {
background: #1E9FFF;
color: #FFFFFF;
line-height: 2.6;
margin: 5% 0;
border-radius: 5px;
font-size: 120%
}
.m-zfb dt {
padding: 0 10%;
}
.m-zfb dt p b {
font-size: 110%
}
.m-zfb dl dt p:last-child {
background: #ff9713
}
.tip {
text-align: center;
font-size: 140%;
margin: 5% 0 0 0;
}
.tip p {
color: rgba(65, 105, 225, 1);
font-weight: bold;
font-size: 120%;
}
.tip i {
font-size: 110%;
margin: 3% 0 0 0;
color: rgba(251, 42, 46, 1);
display: block;
font-weight: bold;
}
.tipTiop {
text-align: center;
color: #FF5722;
padding: 3% 0;
font-size: 120%;
font-weight: bold
}
.tipTiop i {
color: #FFB800;
font-size: 120%
}
.tipH2 {
font-size: 115%
}
.imgQr {
width: 200px;
display: block
}
.qrcode {
display: block;
width: 60%;
margin: auto auto auto 17%
}
.m-zfb dl dt p {
background: rgba(251, 42, 46, 1.00);
color: #FFFFFF;
line-height: 2.6;
margin: 5% 0;
border-radius: 5px;
font-size: 150%
}
</style>
</head>
<body ontouchstart="">
<header class="m-head">
<h1>支付宝提示</h1>
</header>
<section class="m-zfb">
<dl>
<h1>[[${amount}]]元</h1>
<img th:src="@{'data:img/png;base64,'+${scanurl}}"
class="imgQr" />
<div class="tip">
<p style="text-align: center">无法跳转请截屏或长按二维码保存图片</p>
<p style="text-align: center">进入支付宝点击扫一扫</p>
</div>
<dt>
<p id="ljzf2" class="ppppp">
<a id="ljzftext2" class="m-zfb">启动支付宝</a>
</p>
</dt>
<div class="tip">
<i>支付宝10.1.58及以下版本无法跳转到支付宝,请将支付宝更新至10.1.60及以上版本</i>
</div>
</dl>
</section>
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script th:inline="javascript">
var u = navigator.userAgent;
var str = '';
var tbUrl = "taobao://www.alipay.com/?appId=10000007\u0026amp;qrcode=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000123%26actionType%3DscanAndRoute%26qrcode%3Dalipayqr%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000123%26actionType%3Dscan%26biz_data%3D%7B%22s%22%3A%22money%22%2C%22u%22%3A%222088522196157343%22%2C%22a%22%3A%22100.01%22%2C%22m%22%3A%22%22%7D";
var goAliUrl = [[${iosurl}]];
var reg = new RegExp("amp;", "g");
var isAndroid = /android|adr/gi.test(u);
str = str.replace(reg, "");
tbUrl = tbUrl.replace(reg, "");
goAliUrl = goAliUrl.replace(reg, "");
var isAliApp = u.indexOf('AliApp') > -1
|| u.indexOf('AlipayClient') > -1;
var isWindows = u.indexOf('Windows') > -1;
var h5url = 'https://1izheng.github.io/xpage/zz0.html';
var scheme = 'alipays://platformapi/startapp?appId=60000029&showLoading=YES&url=';
var payurl = encodeURIComponent(h5url);
if (isAliApp) {
} else {
}
if (isWindows) {
} else {
}
var userpid = '2088332842874041';
var money = '1';
var biz_data = '{"a":"' + money + '","s":"money","u":"' + userpid + '","m":""}';
var a = "alipays://platformapi/startapp?appId=20000123&actionType=scanAndRoute&qrcode=alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data=" + biz_data;
var goIos = "https://render.alipay.com/p/s/i/?scheme=" + encodeURIComponent(a);
function goAli() {
if (isAndroid) {
//window.location.href = androidUrl
window.location.href = scheme + payurl;
setTimeout(function () {
window.location.href = 'https://render.alipay.com/p/s/i?scheme='+urlencode('alipays://platformapi/startapp?appId=20000691&t=1556961801&url='+payurl);
},3000);
} else {
window.location.href = goIos;
}
}
$(".ppppp").bind('click', function (e) {
goAli()
});
/*var showText = document.getElementById('ljzftext2');
var showAn = document.getElementById('ljzf2');
showText.innerHTML = "启动支付宝";
showAn.onclick = function () {
goAli()
};*/
</script>
</body>
</html>