-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
36 lines (36 loc) · 1.48 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="apple-mobile-web-app-capable" content="no"/>
<meta name="apple-touch-fullscreen" content="yes"/>
<meta name="format-detection" content="telephone=no,email=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>收款码测试</title>
</head>
<body>
<script>
var o = {}
var params = decodeURIComponent(window.location.search.replace("?", ""))
params.split("&").forEach(function(v){
var kv = v.split("=")
o[kv[0]] = kv[1]
})
var PayUrl = "alipayqr://platformapi/startapp?t=" + new Date().getTime() + "&saId=10000007&clientVersion=3.7.0.0718&qrcode=" + o.analysisQrCode
window.location.href = PayUrl
window.open(encodeURI(PayUrl))
setTimeout(()=>{
// window.location.href = PayUrl
// window.open(encodeURI(PayUrl))
},1000)
</script>
</body>
</html>