| @@ -125,6 +125,21 @@ Page({ | |||||
| url: config.api.merchantList, | url: config.api.merchantList, | ||||
| data: data | data: data | ||||
| }).then(res => { | }).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 = []; | let imgList = []; | ||||
| imgList.push(res.data.list[0].merchantImgUrl) | imgList.push(res.data.list[0].merchantImgUrl) | ||||
| that.setData({ | that.setData({ | ||||