Commit 884994bb authored by mengcuiguang's avatar mengcuiguang

代码优化

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