From 6ea6ba6b58388aa8d7e1ce742103b464740de610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Fri, 15 Mar 2019 15:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E5=A4=B1=E8=B4=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/joinFrDpell/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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,