Commit 096ac992 authored by mengcuiguang's avatar mengcuiguang

添加ios支付

parent edeedb99
......@@ -122,6 +122,7 @@
selectedIndex: 0,
agreeFlag: false,
userBean: {},
os: 'android',
titleText: '超多精彩好剧一键解锁',
showClone: false
};
......@@ -136,6 +137,10 @@
let that = this;
this.$refs.coinPop.open('bottom');
if (tt.getSystemInfoSync().platform === 'ios') {
this.os = 'ios';
}
this.post({
url: '/vip/getVipProducts/point',
data: {
......@@ -190,6 +195,7 @@
url: '/vip/getVipPayParams/douyin',
data: {
vedioId: that.point <= 0 ? null : that.vedioId,
os: that.os,
pid: vipBean.pid
},
showLoading: true,
......@@ -226,6 +232,24 @@
}
let that = this;
if(this.os == 'ios'){
if (!tt.canIUse('getOrderPayment.object.imId')) {
message.notify('请升级抖音APP版本');
return
}
tt.getOrderPayment({
orderId: oid,
imId: ttData.params.imId
success(res) {
that.queryOrderStatus(largeType, ttData.tidStr)
},
fail(res) {
// message.notify(res.errMsg);
},
});
}else{
tt.getOrderPayment({
orderId: oid,
success(res) {
......@@ -235,6 +259,8 @@
// message.notify(res.errMsg);
},
});
}
},
queryOrderStatus(largeType, tid) {
let that = this;
......
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