Commit 884994bb authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 096ac992
...@@ -231,36 +231,34 @@ ...@@ -231,36 +231,34 @@
return return
} }
let that = this; let that = this;
if (this.os == 'ios') {
if(this.os == 'ios'){ if (!tt.canIUse('getOrderPayment.object.imId')) {
if (!tt.canIUse('getOrderPayment.object.imId')) { message.notify('请升级抖音APP版本');
message.notify('请升级抖音APP版本'); return
return
} }
tt.getOrderPayment({ tt.getOrderPayment({
orderId: oid, orderId: oid,
imId: ttData.params.imId imId: ttData.imId,
success(res) {
that.queryOrderStatus(largeType, ttData.tidStr)
},
fail(res) {
// message.notify(res.errMsg);
},
});
}else{
tt.getOrderPayment({
orderId: oid,
success(res) { success(res) {
that.queryOrderStatus(largeType, ttData.tidStr) that.queryOrderStatus(largeType, ttData.tidStr);
}, },
fail(res) { fail(res) {
// message.notify(res.errMsg); message.notify(res.errMsg);
}, },
}); });
} else {
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;
......
...@@ -224,7 +224,9 @@ ...@@ -224,7 +224,9 @@
paySuccess(largeType) { paySuccess(largeType) {
// largeType=vip 开通vip // largeType=vip 开通vip
// largeType=point 购买看点 // largeType=point 购买看点
message.notify('支付成功'); if(wx.getSystemInfoSync().platform=='ios'){
message.notify('支付成功');
}
this.post({ this.post({
url: '/user/baseMsg', url: '/user/baseMsg',
......
...@@ -223,8 +223,11 @@ ...@@ -223,8 +223,11 @@
}, },
paySuccess(largeType) { paySuccess(largeType) {
// largeType=vip 开通vip // largeType=vip 开通vip
// largeType=point 购买看点 // largeType=point 购买看点
message.notify('支付成功'); if(wx.getSystemInfoSync().platform=='ios'){
message.notify('支付成功');
}
this.post({ this.post({
url: '/user/baseMsg', url: '/user/baseMsg',
......
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