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);