diff --git a/pages/joinFrDpell/index.js b/pages/joinFrDpell/index.js index 75fb674..34fd949 100644 --- a/pages/joinFrDpell/index.js +++ b/pages/joinFrDpell/index.js @@ -206,15 +206,9 @@ Page({ } }) .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 => { console.log(err); @@ -238,6 +232,12 @@ Page({ }) .then(res => { wx.hideLoading() + if (res.data.orderStatus==14){ + _this.setData({ + showErr:true + }) + return; + } if (orderGroupId==undefined) { wx.navigateTo({ url: '/pages/order/detail/index?orderId=' + res.data.id,