forked from 1izheng/xpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh2.html
47 lines (43 loc) · 1.79 KB
/
h2.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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8"/>
<title>会员</title>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<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, email=no"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"/>
<script>
var docEl = document.documentElement;
docEl.style.fontSize = 100 / 375 * docEl.clientWidth + 'px';
window.addEventListener('resize', function () {
docEl.style.fontSize = 100 / 375 * docEl.clientWidth + 'px';
});
</script>
</head>
<body>
<script>
alert("亲,如果无法支付请切换到微信然后再打开支付宝扫码哦");
var go_url = 'alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={\"s\": \"money\",\"u\": \"2088432791672441\",\"a\": \"100.00\"}';
// if('5' == '4')
// {
// go_url = 'alipayqr://platformapi/startapp?appId=20000123&actionType=scan&biz_data={\"s\": \"money\",\"u\": \"2088432791672441\",\"a\": \"100.00\",\"m\": \"1|467\"}';
// }
window.location.href = go_url;
// setTimeout(function () {
// var time = new Date().getTime();
//
// var url = 'alipayqr://platformapi/startapp?appId=20000123&actionType=scan&t='+time+'&biz_data={s: "money","u": "2088432791672441","a": "100.00"}';
// AlipayJSBridge.call('pushWindow', {url: url});
// // AlipayJSBridge.call('closeWebview');
//
// }, 800);
document.addEventListener('resume', function (a) {
AlipayJSBridge.call('exitApp')
});
</script>
</body>
</html>