From 16cac98d241e0ec7a6c8bbee32f8b3b95a8e1c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Wed, 13 Mar 2019 10:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=AF=A6=E6=83=85=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E6=AC=A1=E6=95=B0=E9=99=90=E5=88=B6bug=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 | 16 +++++++++++++--- pages/spellGroup/mySpellGroup/index.js | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/pages/joinFrDpell/index.js b/pages/joinFrDpell/index.js index d5f740e..f42a056 100644 --- a/pages/joinFrDpell/index.js +++ b/pages/joinFrDpell/index.js @@ -278,7 +278,9 @@ Page({ console.log(err); that.setData({ showbutton: false, - showbutton1: false + showbutton1: false, + canSpell: true, + canBuyIf: true }) if (err.code == 2011) { wx.showToast({ @@ -365,7 +367,9 @@ Page({ if (typeof (res) != "undefined") { let orderId = "" + res.data.id; that.setData({ - orderId: orderId + orderId: orderId, + canSpell: true, + canBuyIf: true }); // 支付金额不为0 /** @@ -420,7 +424,9 @@ Page({ */ that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId); that.setData({ - showbutton: false + showbutton: false, + canSpell: true, + canBuyIf: true }) return; }, @@ -429,6 +435,10 @@ Page({ /// End payment -------- }) .catch(err => { + that.setData({ + canSpell: true, + canBuyIf: true + }) wx.showToast({ title: err.message, icon: 'none', diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index e511518..b51097c 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -269,7 +269,9 @@ Page({ console.log(err); that.setData({ showbutton: false, - showbutton1: false + showbutton1: false, + canSpell: true, + canBuyIf: true }) if (err.code == 2011) { wx.showToast({ @@ -356,7 +358,9 @@ Page({ if (typeof (res) != "undefined") { let orderId = "" + res.data.id; that.setData({ - orderId: orderId + orderId: orderId, + canSpell: true, + canBuyIf: true }); // 支付金额不为0 /** @@ -411,7 +415,9 @@ Page({ */ that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId); that.setData({ - showbutton: false + showbutton: false, + canSpell: true, + canBuyIf: true }) return; }, @@ -420,6 +426,10 @@ Page({ /// End payment -------- }) .catch(err => { + that.setData({ + canSpell: true, + canBuyIf: true + }) wx.showToast({ title: err.message, icon: 'none',