Commit 096ac992 authored by mengcuiguang's avatar mengcuiguang

添加ios支付

parent edeedb99
......@@ -121,7 +121,8 @@
vipList: [],
selectedIndex: 0,
agreeFlag: false,
userBean: {},
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,
......@@ -219,22 +225,42 @@
},
});
},
ttPay(largeType, oid, ttData) {
if (!tt.canIUse('getOrderPayment')) {
message.notify('请升级抖音APP版本');
return
}
ttPay(largeType, oid, ttData) {
if (!tt.canIUse('getOrderPayment')) {
message.notify('请升级抖音APP版本');
return
}
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) {
that.queryOrderStatus(largeType, ttData.tidStr)
},
fail(res) {
// message.notify(res.errMsg);
},
});
}
let that = this;
tt.getOrderPayment({
orderId: oid,
success(res) {
that.queryOrderStatus(largeType, ttData.tidStr)
},
fail(res) {
// 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