Commit 1d7db962 authored by mengcuiguang's avatar mengcuiguang

添加快手支付

parent 361662c2
...@@ -157,7 +157,19 @@ ...@@ -157,7 +157,19 @@
// 快手支付 // 快手支付
// #ifdef MP-KUAISHOU // #ifdef MP-KUAISHOU
this.post({
url: '/vip/getVipPayParams/kuaishou',
data: {
vedioId: that.point <= 0 ? null : that.vedioId,
pid: vipBean.pid
},
showLoading: true,
success: ({
data
}) => {
that.ksPay(data, vipBean.largeType);
}
});
// #endif // #endif
// 抖音支付 // 抖音支付
...@@ -195,6 +207,20 @@ ...@@ -195,6 +207,20 @@
// #endif // #endif
},
ksPay(ksData, largeType) {
let that = this;
ks.pay({
serviceId: ksData.params.serviceId,
orderInfo: ksData.params.orderInfo,
paymentChannel: ksData.params.paymentChannel,
success() {
that.queryOrderStatus(largeType, ksData.tidStr)
},
fail() {
message.notify('支付失败');
},
})
}, },
ttPay(ttData, largeType) { ttPay(ttData, largeType) {
let that = this; let that = this;
...@@ -211,7 +237,6 @@ ...@@ -211,7 +237,6 @@
} }
}, },
fail(res) { fail(res) {
message.notify(res.errMsg); message.notify(res.errMsg);
}, },
}); });
......
...@@ -193,7 +193,8 @@ ...@@ -193,7 +193,8 @@
"mp-kuaishou" : { "mp-kuaishou" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
} },
"appid" : "ks702843017315155644"
}, },
"mp-lark" : { "mp-lark" : {
"uniStatistics" : { "uniStatistics" : {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment