forked from 1izheng/xpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathddsk2.html
executable file
·130 lines (116 loc) · 7.71 KB
/
ddsk2.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
<!DOCTYPE html>
<html>
<head>
<meta 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">
<script src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script>
<link href="css/hipay.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
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>
<div class="aui-free-head">
<a href="javascript:goAliPay();" class="aui-button">
<button>立即支付</button>
</a>
</div>
<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.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('刷新已恢复')
});
}
});
// function goAliPay() {
// var orderStr = ('service="alipay.fund.stdtrustee.order.create.pay"&partner="2088801132158474"&_input_charset="utf-8"¬ify_url="https://redenvelop.laiwang.com/v2/RENotify/alipay_fund_stdtrustee_order_create_pay"&out_order_no="DZVrppECscjEt8A7_17656102100"&out_request_no="DZVrppECscjEt8A7_17656102100_s"&product_code="SOCIAL_RED_PACKETS"&scene_code="MERCHANT_COUPON"&amount="1.00"&pay_strategy="CASHIER_PAYMENT"&receipt_strategy="INNER_ACCOUNT_RECEIPTS"&platform="DEFAULT"&channel="APP"&master_order_no="2019032210002001490252361053"&order_type="DEDUCT_ORDER"&extra_param="{"payeeShowName":"点点虫红包"}"&order_title="发送点点虫红包"&pay_timeout="30m"&out_context="{"ddchong_biz_tag":"red_envelop"}"&sign="hQMpfawJKbZQTJ0MiOexdd9V8vKhvkFL2UYNNTePuP%2BbGyEfy%2FfSgUgN9%2F2uArTDgOE01HpjMdNc2XtgXcO6JCtXmMaBbF%2Bhwe3v%2BI%2BZvjHwcwCiH1HLJVO80m9Qx7cl9TmXqrhy4ygtG613B9T9nv3UjJsXFNp4enWvUNxXV7E4JXVvg2lKXgc%2B%2B5iFSnEIwRkjj9YBC%2Bphf%2F6FfZHGMaqAGKU8mAjqAQSvJ0TNUDLG4A2VxdlfaF5IxIn1Y3uFtNGn6yz2U%2FedbdGFMoQGm5Y8GeWMEk1lUhYcuFyMin%2BZdOclx5%2B%2BRqJIjbS300mtAuI1kmTFHbFAfemxwXn9eg%3D%3D"&sign_type="RSA"')
// var orderStt = ('service="alipay.fund.stdtrustee.order.create.pay"&partner="2088401309894080"&_input_charset="utf-8"¬ify_url="https://wwhongbao.taobao.com/callback/alipay/notifyPaySuccess.do"&out_order_no="12621186_8173_1554086396_90627662b66d34eb491f5b63a8a40b30_1"&out_request_no="12621186_8173_1554086396_90627662b66d34eb491f5b63a8a40b30_1_p"&product_code="SOCIAL_RED_PACKETS"&scene_code="MERCHANT_COUPON"&amount="1.28"&pay_strategy="CASHIER_PAYMENT"&receipt_strategy="INNER_ACCOUNT_RECEIPTS"&platform="DEFAULT"&channel="APP"&order_title="淘宝现金红包"&master_order_no="2019040110002001350272360896"&order_type="DEDUCT_ORDER"&extra_param="{"payeeShowName":"淘宝现金红包"}"&pay_timeout="30m"&order_expired_time="360d"&sign="JRmC%2Flf7XwnfCwf%2BcL1J5vWN0uNvUDRozE0Vj2gAT5t%2BS8EpQI1C5gsUU%2FHLowvmcPT3ZqgBu4kf7DwsxatmdWrnJqDIzB06WOW9yAZ6M%2BD%2B1W2ml0FXE4Yw82SvX9IYow3X5jPsUFmorUSppcra%2B8YMs%2FqhhhZ7JjoJcU1NCESZF%2BBD7rD2lZFv87%2BRN5LWrYF%2Fsnt4bDHiF5qwqX7AwHoDtwVIb7Qv6gG2KTANBx3zdBrbQyhE7xUfizhqVQLeM4YrzuKmsKXqN7uoVqx0uWoAn4gTILt0WhsII0oql6Ww2WmbFeE%2FeeuFf%2BuqT4gwGJlFdIYx9EukfAclRtTIWw%3D%3D"&sign_type="RSA"')
// ap.tradePay({
// orderStr: orderStt
// }, function (result) {
// // if(result.resultCode==9000||result.resultCode=="9000"){
// // alert("支付已完成");
// // }
// });
// }
function goAliPay() {
var orderStt = ('alipay_sdk=alipay-sdk-java-3.5.35.DEV&app_id=2018101061618854&biz_content=7UyROpIwNDbETBJrNdfXuutjfKDfqQVc5wAB1wHdeQWtt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ZuJuBMUI8lnfcQzKvwP84lUYfFhCuAyuqLpZUHwnowhzTS4khQBU82XoOJd1vfTHV9hf4pTlkXUtxOwiATqgQOmfVDNEBQBqTQj2dvCT%2BihlA8hep%2Bgj6F%2BpwTLUF4FZNcZr5MMSntT04pXoY2o1rO993q4Mg4x8p4ToEt%2B7vXYfc1SZiNBfeFOIN6S1Bl17xNszGChoAaYMqpzb5MDFiI%2Fi0ZzttsFQLRqaz51gyGFqrHB5OH8zTyGvyzxxWUuD1Lfw1peOXu%2FuOzEdRa2xXlieD%2FTgrv2WaMYoms0x23nx%2FoEj1mPkfaVo9bU3T1WgJrysYum6oNiDkUkPfuXaq2jjN8cLGyD8t0dgKgHDhuV8cCxONLBVbF2xNLekb79pt40HgAlaOn1rIwu&charset=UTF-8&encrypt_type=AES&format=json&method=alipay.fund.trans.app.pay&sign=C5ISzgBDxdh7auIRqmJzxhKqVRqHC%2BHBaFH9ncsQEhLzKRapAfOTUWZ3XvubbSLfqM9jBbsjgUYTNRfHsUliYzDo0rpguS7HZKCZ7Twydpn2B1e54P4IAA0M%2BGPwXRzakwcZ%2FDEkZH%2FxKlqyczhaffdjmGKQWk3oUTcFZaX4gFtkA5xc3O1iNVGUuSOrYHjkdUyNONXt1GjW7C1%2Bd9aOjupVRis%2Fi9s6Nu4lnGsG53MxIWZOrd9SM3d%2B9R34fV0igC40FgJ6d8vgXbr9volVebwwUTBzAgD5OlvGMF3pi9WA3KFJoCfTGXDr5GZtxK1kpqGjMetYdVtEqP28n4y32g%3D%3D&sign_type=RSA2×tamp=2019-04-09+17%3A23%3A47&version=1.0')
AlipayJSBridge.call("tradePay", {
orderStr: orderStt,
bizType: "biz_account_transfer",
bizContext: "{\"business_scene\":\"qrpay\"}",
}, function (result) {
if(result.resultCode==9000||result.resultCode=="9000"){
alert("支付已完成");
}
});
}
window.onload = goAliPay();
</script>
</html>