| @@ -206,15 +206,9 @@ Page({ | |||||
| } | } | ||||
| }) | }) | ||||
| .then(res => { | .then(res => { | ||||
| if(res.code=200){ | |||||
| wx.reLaunch({ | |||||
| url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.data.couponId}&orderGroupId=${res.data.orderGroupId}` | |||||
| }); | |||||
| } else if (res.code == 28001){ | |||||
| _this.setData({ | |||||
| showErr:true | |||||
| }) | |||||
| } | |||||
| wx.reLaunch({ | |||||
| url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.data.couponId}&orderGroupId=${res.data.orderGroupId}` | |||||
| }); | |||||
| }) | }) | ||||
| .catch(err => { | .catch(err => { | ||||
| console.log(err); | console.log(err); | ||||
| @@ -238,6 +232,12 @@ Page({ | |||||
| }) | }) | ||||
| .then(res => { | .then(res => { | ||||
| wx.hideLoading() | wx.hideLoading() | ||||
| if (res.data.orderStatus==14){ | |||||
| _this.setData({ | |||||
| showErr:true | |||||
| }) | |||||
| return; | |||||
| } | |||||
| if (orderGroupId==undefined) { | if (orderGroupId==undefined) { | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/order/detail/index?orderId=' + res.data.id, | url: '/pages/order/detail/index?orderId=' + res.data.id, | ||||