From 60198fedd954db6a805b8e6c72c6245dba0d7989 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Fri, 20 Sep 2019 11:28:37 +0800 Subject: [PATCH] =?UTF-8?q?C=E7=AB=AF=E4=BC=98=E5=8C=96-=E5=81=9C=E7=94=A8?= =?UTF-8?q?=E5=95=86=E6=88=B7=EF=BC=8C=E5=9C=A8=E5=8A=B5=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/searchbar/detail/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pages/index/searchbar/detail/index.js b/pages/index/searchbar/detail/index.js index 8a593c8..cc956da 100644 --- a/pages/index/searchbar/detail/index.js +++ b/pages/index/searchbar/detail/index.js @@ -125,6 +125,21 @@ Page({ url: config.api.merchantList, data: data }).then(res => { + if (res.data.list.length==0){ + wx.showModal({ + title: '提示', + content: '此商户已经停用', + confirmText: "返回", + showCancel:false, + success: function (res) { + if (res.confirm) { + wx.navigateBack({ + url: '/index/searchbar', + }) + } + } + }) + } let imgList = []; imgList.push(res.data.list[0].merchantImgUrl) that.setData({