Commit 884994bb authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 096ac992
...@@ -232,8 +232,7 @@ ...@@ -232,8 +232,7 @@
} }
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
...@@ -241,26 +240,25 @@ ...@@ -241,26 +240,25 @@
tt.getOrderPayment({ tt.getOrderPayment({
orderId: oid, orderId: oid,
imId: ttData.params.imId imId: ttData.imId,
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{ } else {
tt.getOrderPayment({ tt.getOrderPayment({
orderId: oid, 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);
}, },
}); });
} }
}, },
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 购买看点
if(wx.getSystemInfoSync().platform=='ios'){
message.notify('支付成功'); message.notify('支付成功');
}
this.post({ this.post({
url: '/user/baseMsg', url: '/user/baseMsg',
......
...@@ -224,7 +224,10 @@ ...@@ -224,7 +224,10 @@
paySuccess(largeType) { paySuccess(largeType) {
// largeType=vip 开通vip // largeType=vip 开通vip
// largeType=point 购买看点 // largeType=point 购买看点
if(wx.getSystemInfoSync().platform=='ios'){
message.notify('支付成功'); 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