From 055270aa0356ff81bd4ea311528137f935b7485d Mon Sep 17 00:00:00 2001 From: Eratosici Date: Tue, 30 Nov 2021 17:27:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=BC=82=E5=B8=B8=E6=97=B6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/prod/prod.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/prod/prod.vue b/pages/prod/prod.vue index 485d15a..cbe2165 100644 --- a/pages/prod/prod.vue +++ b/pages/prod/prod.vue @@ -406,6 +406,20 @@ export default { }, callBack: res => { //console.log(res); + if (!res) { + uni.hideLoading() + uni.showModal({ + title: '提示', + content: '商品信息异常', + showCancel: false, + confirmText: '确定', + success(res) { + // 返回上一页 + uni.navigateBack() + } + }); + return + } var imgStrs = res.imgs; var imgs = imgStrs.split(","); var content = util.formatHtml(res.content);