Commit 096ac992 authored by mengcuiguang's avatar mengcuiguang

添加ios支付

parent edeedb99
...@@ -121,7 +121,8 @@ ...@@ -121,7 +121,8 @@
vipList: [], vipList: [],
selectedIndex: 0, selectedIndex: 0,
agreeFlag: false, agreeFlag: false,
userBean: {}, userBean: {},
os: 'android',
titleText: '超多精彩好剧一键解锁', titleText: '超多精彩好剧一键解锁',
showClone: false showClone: false
}; };
...@@ -136,6 +137,10 @@ ...@@ -136,6 +137,10 @@
let that = this; let that = this;
this.$refs.coinPop.open('bottom'); this.$refs.coinPop.open('bottom');
if (tt.getSystemInfoSync().platform === 'ios') {
this.os = 'ios';
}
this.post({ this.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts/point',
data: { data: {
...@@ -190,6 +195,7 @@ ...@@ -190,6 +195,7 @@
url: '/vip/getVipPayParams/douyin', url: '/vip/getVipPayParams/douyin',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId, vedioId: that.point <= 0 ? null : that.vedioId,
os: that.os,
pid: vipBean.pid pid: vipBean.pid
}, },
showLoading: true, showLoading: true,
...@@ -219,22 +225,42 @@ ...@@ -219,22 +225,42 @@
}, },
}); });
}, },
ttPay(largeType, oid, ttData) { ttPay(largeType, oid, ttData) {
if (!tt.canIUse('getOrderPayment')) { if (!tt.canIUse('getOrderPayment')) {
message.notify('请升级抖音APP版本'); message.notify('请升级抖音APP版本');
return 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) { queryOrderStatus(largeType, tid) {
let that = this; 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