From 0738f1d175759580da0e86650583e7f9957251cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E6=B4=8B=E4=B9=8B=E5=A3=B0?= Date: Thu, 24 Oct 2019 10:33:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9C=AA=E6=94=AF=E4=BB=98=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=94=81=E5=AE=9A=E5=90=8E=E5=A4=84=E7=90=86]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/detail/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index 8e0bec7..a0839d7 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -286,6 +286,16 @@ Page({ return; }, }); + }).catch(err=>{ + wx.hideLoading(); + that.setData({ + showButton: false + }) + wx.showModal({ + title: "抱歉", + content: err.message, + showCancel: false + }) }); } else { // 免费券