forked from 1izheng/xpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
friendStart.html
93 lines (73 loc) · 3.34 KB
/
friendStart.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
<!DOCTYPE html>
<html>
<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>
<link href="/css/pay1.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.11.1/jquery.min.js"></script>
</head>
<body>
<div class="body">
<h1 class="mod-title">
<span class="ico_log ico-1"></span>
</h1>
<div class="mod-ct">
<div class="order">
</div>
<div class="amount" id="money"></div>
<div class ="paybtn" style = "display: none;">
<a href="alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=https%3a%2f%2f1izheng.github.io%2fXpage%2findex0.html" id="alipaybtn" class="btn btn-primary" target="_blank">启动支付宝App支付</a>
</div>
<!--其他手机浏览器+支付宝支付-->
<div class ="paybtn" style="padding-top: 10px;"><a href="alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=https%3a%2f%2f1izheng.github.io%2fXpage%2ffriendPage.html" id="alipaybtn" class="btn btn-primary" style="font-size: 26px;">立即支付</a></div>
<div class="tip">
<div class="ico-scan"></div>
</div>
<div class="tip-text">
</div>
</div>
<div class="foot">
<div class="inner" style="display:none;">
<p>手机用户可保存上方二维码到手机中</p>
<p>在微信扫一扫中选择“相册”即可</p>
<p></p>
</div>
</div>
</div>
<script type="text/javascript">
var open_alipay_url = "alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode=https%3a%2f%2f1izheng.github.io%2fXpage%2ffriendPage.html"
$().ready(function(){
if(open_alipay_url!=""){
window.location = open_alipay_url;
}else{
alert("111111");
var goPay = '<span id="goPay"> <span>';
//给A标签中的文字添加一个能被jQuery捕获的元素
$('#alipaybtn').append(goPay);
//模拟点击A标签中的文字
$('#goPay').click();
}
});
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ca69aec66f867486468c7731605b365d";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
//
</script>
</body>
</html>