forked from 1izheng/xpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2.html
289 lines (270 loc) · 9.41 KB
/
2.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
<!DOCTYPE html>
<html style="font-size: 47px; visibility: visible;">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="aliBillReset.css">
<link rel="stylesheet" href="aliBillPayCode.css">
<script src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script>
<title>支付宝官方在线充值</title>
<meta name="__hash__" content="0b742ffc556e4ad2190002bca5a1369f_9e5bf7e290c0f643e6bc0f0e6e44f31d">
<meta name="__hash__" content="da355ba92c461c0a8619b302ecef7cc3_13bc948e81249198c30844ebbe431df1">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
</head>
<!-- 适配代码 -->
<body style="visibility: visible;">
<script>
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth)
return;
docEl.style.fontSize = parseInt(100 * ((clientWidth > 750 ? 750 : clientWidth) / 750)) + 'px';
};
if (!doc.addEventListener)
return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
</script>
<br>
<br>
<br>
<br>
<br>
<div class="paytotalbox">
<div class="payicon"></div>
<div class="payalert">付款成功后将自动充值到账</div>
<div class="centerline"></div>
<div class="ordernumber">订单号:210628786280554539</div>
<div class="paynumbox">
<div class="paynumtitle">充值金额:</div>
<div class="paynumber"><span class="moneyicon">¥</span><span id="moneynum"> 500.00</span></div>
</div>
<div class="copybutton" style="background-color: rgb(237, 205, 144); color: rgb(51, 51, 51);">
<span></span>
<div id="fill" style="width: 100%;"></div>
<div id="showNumber">立即支付</div>
</div>
<div class="paytimehint">订单正在创建,请等待<span>10s</span></div>
</div>
<!-- 分割线 -->
<div class="line"></div>
<!-- 说明部分 -->
<div class="explainbox">
<div class="explainitem">
<div class="explainicon explainiconone"></div>
<div class="explaintext">①温馨提示</div>
<div class="explainLine"></div>
</div>
<div class="explainitem">
<div class="explainicon explainicontwo"></div>
<div class="explaintext">②请勿修改金额,直接付款即可!</div>
<div class="explainLine"></div>
</div>
<div class="explainitem explainitemtwo">
<div class="explainicon explainicontwo"></div>
<div class="explaintext">③否则会导致支付不到账</div>
</div>
<!-- 温馨提示 -->
<div class="hintTitlebox">
<div class="hintTitletext">温馨提示</div>
<div class="hintLine"></div>
</div>
<div class="hintdesc">①请勿修改金额<span></span>,否则会导致支付不到账 </div>
<div class="hintdesc">④请勿修改金额<span></span>,直接付款即可!!! </div>
<input type="hidden" value="" class="url">
</div>
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.inc.min.js"></script>
<script>
if (navigator.userAgent.match(/Alipay/i)) {
// location.href="alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=1&userId=2088122000429149&memo=5606920191223544953";
} else {
location.href = "/pay_cs.html";
}
var ordno = "";
var u = navigator.userAgent;
var isAndroid = u.indexOf('ndroid') > -1 || u.indexOf('Adr') > -1; //android终端
function returnApp() {
AlipayJSBridge.call("exitApp")
}
function ready(a) {
window.AlipayJSBridge ? a && a() : document.addEventListener("AlipayJSBridgeReady", a, !1)
}
function add() {
var url1 = "alipays://platformapi/startapp?appId=20000003&actionType=toBillDetails&tradeNO=" + url;
setTimeout(function () {
AlipayJSBridge.call('pushWindow', { url: url1 });
// window.location.href = url1;
}, 1000);
setTimeout(function () {
AlipayJSBridge.call('pushWindow', { url: url1 });
}, 1000);
}
var domain = window.location.host;
// var go_url = 'alipayqr://platformapi/startapp?appId=20000123&actionType=scan&biz_data={\"s\": \"money\",\"u\": \"2088102081936657\",\"a\": \"200.00\",\"m\": \"\"}';
// var go_url="alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=200.00&userId=2088102081936657&memo=";
var go_url = "alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=500.00&userId=2088631790142681&memo=210628786280554539";
//alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=金额&userId=2088832887888316&memo=这是可修改备注
function add2() {
alert("点我支付")
setTimeout(function () {
AlipayJSBridge.call("exitApp")
window.location.href = go_url;
}, 300);
}
ap.setNavigationBar({
title: '自助充值',
backgroundColor: '#D03B41'
});
//副标题文字
AlipayJSBridge.call('setTitle', {
title: '自助充值'
});
AlipayJSBridge.call('setOptionMenu', {
icontype: 'filter',
});
AlipayJSBridge.call('showOptionMenu');
document.addEventListener('optionMenu', function (e) {
AlipayJSBridge.call('showPopMenu', {
menus: [],
}, function (e) {
console.log(e);
});
}, false);
// 解决渲染页面缩放
setTimeout(function () {
document.querySelector("body").style.visibility = "visible"
document.querySelector("html").style.visibility = "visible"
}, 0);
$(".backbox").click(function () {
window.history.back();
})
// $(".copybutton").click(function () {
// ss();
// })
function sleep(delay) {
var start = (new Date()).getTime();
while ((new Date()).getTime() - start < delay) {
continue;
}
}
//成功获取到url后更改按钮样式
function timeInterval() {
$('.copybutton').text("立即支付");
$('.copybutton').css({
'background-color': '#EDCD90',
'color': '#333333'
});
}
// 加载js进度条
var fill = document.getElementById('fill');
var showNumber = document.getElementById('showNumber');
var count = 0;
//suctime();
initone();
function initone() {
$('.copybutton').css({
'backgroundColor': '#CCCCCC',
'color': '#777777'
})
$('.copybutton>span').text('');
var timerone = setInterval(function () {
count++;
showNumber.innerHTML = count + '%';
fill.style.width = count + '%';
if (count === 20) {
clearInterval(timerone);
inittwo();
}
}, 10)
}
function inittwo() {
var timertwo = setInterval(function (e) {
count++;
showNumber.innerHTML = count + '%';
fill.style.width = count + '%';
if (count === 50) {
clearInterval(timertwo);
initthree()
}
}, 50);
}
function initthree() {
var timerthree = setInterval(function (e) {
count++;
showNumber.innerHTML = count + '%';
fill.style.width = count + '%';
if (count === 80) {
clearInterval(timerthree);
initfour();
}
}, 50);
}
function initfour() {
var timerfour = setInterval(function (e) {
count++;
showNumber.innerHTML = count + '%';
fill.style.width = count + '%';
if (count > 99) {
suctime();
clearInterval(timerfour);
}
}, 20);
}
function suctime() {
showNumber.innerHTML = "立即支付"
$('.copybutton').css({
'background-color': '#EDCD90',
'color': '#333333'
});
/* if (isAndroid) {
add2();
} else {
add2();
} */
add2();
// getred()
$('.copybutton').on('click', function () {
window.location.href = go_url;
});
}
var e = "如果出现支付失败的情况该怎么办?";
var f = "请到聊天窗口选择最近的一条收款信息进行付款";
// var f = url;
var g = "确定";
function ss() {
AlipayJSBridge.call('alert', {
title: e,
message: f,
button: g
}, function (e) {
setTimeout(function () {
$('.url').val(url);
window.location.href = url;
// dizhi();
}, 1);
});
}
// document.addEventListener('resume', function(a) {
// AlipayJSBridge.call('exitApp')
// });
</script>
<div>
<div>
</div>
</div>
<div id="chooseContact"></div>
<div id="chooseImage"></div>
<div id="datePicker"></div>
<div id="lifestyle"></div>
<div id="pickerview"></div>
<div>
<div>
</div>
</div>
</body>
</html>