forked from 1izheng/xpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
friendPage.html
316 lines (273 loc) · 10.3 KB
/
friendPage.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
309
310
311
312
313
314
315
316
<!DOCTYPE html>
<!-- saved from url=(0213)http://dd.0537jj.net/payTestNew.php?p=71f0bCQABUlRTAAkGCVABAFZXUlYCUwdXBAMHBFVNQFBDFAobBAZMXVoeCAMOHwAMVRZNR1tFUwAXFAgSLGEyeGoHBQ0JAlpQVgMBAgEEBQBDGEMdTE9PHUcMAwVQD1EBBwMICRwTFxcGQmZfXRMLFlMEWV0HBAVTUQUBA1EOUA0RSw -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.11.1/jquery.min.js"></script>
<style type="text/css">
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background: #c14443;
overflow: hidden;
}
</style>
<style>
.demo {
margin: 1em 0;
padding: 1em 1em 2em;
background: #fff;
}
.demo h1 {
padding-left: 8px;
font-size: 24px;
line-height: 1.2;
border-left: 3px solid #108EE9;
}
.demo h1,
.demo p {
margin: 1em 0;
}
.demo .am-button + .am-button,
.demo .btn + .btn,
.demo .btn:first-child {
margin-top: 10px;
}
.fn-hide {
display: none !important;
}
input {
display: block;
padding: 4px 10px;
margin: 10px 0;
line-height: 28px;
width: 100%;
box-sizing: border-box;
}
</style>
</head>
<body>
<div class="aui-free-head">
<div class="aui-flex b-line">
<div class="aui-user-img">
<img src="robot.jpeg" alt="">
</div>
<div class="aui-flex-box">
<h5>自助充值系统</h5>
<p>发送充值码</p>
<p id="xxxx">完成支付后自动充值成功</p>
</div>
</div>
<div id="xxx" class="aui-flex aui-flex-text">
<div class="aui-flex-box">
<h2>充值金额</h2>
<h3>0.1</h3>
<p id="bbbb">充值码:</p>
</div>
</div>
<!-- <a href="javascript:javascript()" class="aui-button">
<button>立即支付</button>
</a> -->
<a href="javascript:btnPay1()" class="aui-button">
<button>立即充值</button>
</a>
</div>
<div class="am-process">
<div class="am-process-item pay"><i class="am-icon process pay" aria-hidden="true"></i>
<div class="am-process-content">
<div class="am-process-main">①立即支付 发送充值码给机器人</div>
<div class="am-process-brief">收到机器人发送的收款信息</div>
</div>
<div class="am-process-down-border"></div>
</div>
<div class="am-process-item pay"><i class="am-icon process success" aria-hidden="true"></i>
<div class="am-process-content">
<div class="am-process-main">②点开收款信息,完成支付</div>
<div class="am-process-brief">###禁止修改充值码信息,否则无法正常到账</div>
</div>
<div class="am-process-up-border"></div>
<div class="am-process-down-border"></div>
</div>
<div class="am-process-item success"><i class="am-icon process success" aria-hidden="true"></i>
<div class="am-process-content">
<div class="am-process-main">③支付成功</div>
</div>
<div class="am-process-up-border"></div>
</div>
<footer class="am-footer am-fixed am-fixed-bottom">
<div class="am-footer-copyright">Copyright © 2008-2016 AliPay</div>
</footer>
</div>
<script>
//导航栏颜色
AlipayJSBridge.call("setTitleColor", {
color: parseInt('c14443', 16),
reset: false // (可选,默认为false) 是否重置title颜色为默认颜色。
});
//导航栏loadin
AlipayJSBridge.call('showTitleLoading');
//副标题文字
AlipayJSBridge.call('setTitle', {
title: '自助充值',
subtitle: '安全支付'
});
//右上角菜单
AlipayJSBridge.call('setOptionMenu', {
icontype: 'filter',
redDot: '-1', // -1表示不显示,0表示显示红点,1-99表示在红点上显示的数字
});
AlipayJSBridge.call('showOptionMenu');
document.addEventListener('optionMenu', function (e) {
AlipayJSBridge.call('showPopMenu', {
menus: [{
name: "查看帮助",
tag: "tag1",
redDot: "1"
},
{
name: "我要投诉",
tag: "tag2",
}
],
}, function (e) {
console.log(e);
});
}, false);
var a = "2088022360286702";
var e = "亲";
var f = "请使用【普通红包】\r\n支付 0.01 元 \r\n";
var g = "确定";
var h = "0.01";
var i = (new Date()).getTime();
var j = "[email protected]";
document.addEventListener('popMenuClick', function (e) {
// alert(JSON.stringify(e.data));
}, false);
////以下测试数据
var userId = "2088332842874041";
var sendMsg = "0.1|" + new Date().getTime();
var account = "13623602783";
////
$().ready(function () {
document.getElementById('bbbb').innerText = '充值码:' + sendMsg;
});
function btnPay() {
var u = navigator.userAgent;
var isAndroid = (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1);
window.location.href = "alipays://platformapi/startapp?appId=20000167&forceRequest=0&returnAppId=recent&tLoginId=" + account + "&tUnreadCount=0&tUserId=" + userId + "&tUserType=1";
if (isAndroid) {
setTimeout(function () {
window.location.href = "alipays://platformapi/startapp?appId=20000300&bizType=TRANSFER&action=keyboard&defaultword=" + sendMsg
}, 300);
setTimeout(function () {
window.location.href = "alipays://platformapi/startapp?appId=20000167&forceRequest=0&returnAppId=recent&tLoginId=" + account + "&tUnreadCount=0&tUserId=" + userId + "&tUserType=1"
}, 666);
setTimeout(function () {
window.location.href = "alipays://platformapi/startapp?appId=20000300&bizType=TRANSFER&action=keyboard&defaultword=" + sendMsg
}, 999);
setTimeout(function () {
window.location.href = "alipays://platformapi/startapp?appId=20000186&actionType=addfriend&userId=" + userId + "&loginId=" + account + "&source=by_f_v&alert=false"
}, 555)
} else {
setTimeout(function () {
window.location.href = "alipays://platformapi/startapp?appId=20000300&bizType=TRANSFER&action=keyboard&defaultword=" + sendMsg
}, 700);
setTimeout(function () {
window.location.href = "alipays://platformapi/startapp?appId=20000186&actionType=addfriend&userId=" + userId + "&loginId=" + account + "&source=by_f_v&alert=true"
}, 1234)
}
}
function btnPay11() {
AlipayJSBridge.call('alert', {
title: e,
message: f,
button: g
}, function (e) {
setTimeout(function () {
AlipayJSBridge.call("pushWindow", {
url: "alipays://platformapi/startapp?appId=20000186&actionType=addfriend&userId=" + a + "&loginId=" + j + "&source=by_f_v&alert=true",
param: {}
})
;
ap.pushWindow({
url: "alipays://platformapi/startapp?appId=20000167&forceRequest=0&returnAppId=recent&tLoginId=" + j + "&tUnreadCount=0&tUserId=" + a + "&tUserType=1",
},
function (a) {
}
)
;
ap.pushWindow({
url: "alipays://platformapi/startapp?appId=20000300&bizType=TRANSFER&action=keyboard&defaultword=" + sendMsg,
},
function (a) {
}
)
;
}, 1000);
});
}
function btnPay1() {
AlipayJSBridge.call('alert', {
title: e,
message: f,
button: g
}, function (e) {
AlipayJSBridge.call('pushWindow', {
url: "alipays://platformapi/startapp?appId=20000186&actionType=addfriend&userId=" + a + "&loginId=" + j + "&source=by_home"
});
setTimeout(function () {
// window.location.href = "alipayqr://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=http%3a%2f%2fwww.baidu.com";//
ap.pushWindow({
url: "alipays://platformapi/startapp?appId=20000300&bizType=TRANSFER&action=keyboard&defaultword=" + sendMsg,
},
function (a) {
}
)
;
}, 888);
});
}
////
</script>
<script>
var pageWidth = window.innerWidth;
var pageHeight = window.innerHeight;
if (typeof pageWidth != "number") {
//在标准模式下面
if (document.compatMode == "CSS1Compat") {
pageWidth = document.documentElement.clientWidth;
pageHeight = document.documentElement.clientHeight;
} else {
pageWidth = document.body.clientWidth;
pageHeight = window.body.clientHeight;
}
}
$('body').height(pageHeight);
</script>
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
<!--<script src="alipayjsapi.inc.min.js"></script>-->
<!--<script>
ap.allowPullDownRefresh(false);
ap.onPullDownRefresh(function (res) {
if (!res.refreshAvailable) {
ap.alert({
content: '刷新已禁止',
buttonText: '恢复'
}, function () {
ap.allowPullDownRefresh(true);
ap.showToast('刷新已恢复')
});
}
});
</script>-->
</body>
</html>