Commit 884994bb authored by mengcuiguang's avatar mengcuiguang

代码优化

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