Browse Source

添加错误提示

xiaohaizhao 1 year ago
parent
commit
605c9a14da
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packageA/market/index.js

+ 4 - 1
packageA/market/index.js

@@ -213,7 +213,6 @@ Page({
 			content
 		}).then(res => {
 			console.log("营销类别", res)
-
 			if (res.data[0].ttemclass) {
 				res.data[0].ttemclass.unshift({
 					itemclassid: "",
@@ -249,6 +248,10 @@ Page({
 			content
 		}).then(res => {
 			console.log("商品列表", res)
+			if (res.msg != '成功') return wx.showToast({
+				title: res.msg,
+				icon: "none"
+			})
 			this.selectComponent('#ListBox').RefreshToComplete();
 			this.setData({
 				list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),