Ver código fonte

直接获取商品列表

xiaohaizhao 2 anos atrás
pai
commit
4f5b0237cd
1 arquivos alterados com 1 adições e 22 exclusões
  1. 1 22
      packageA/activity/detail.js

+ 1 - 22
packageA/activity/detail.js

@@ -37,28 +37,7 @@ Page({
 				detail: res.data,
 				loading: false
 			});
-			this.getGroup()
-		})
-	},
-	/* 获取组 */
-	getGroup() {
-		_Http.basic({
-			"id": 20230102112303,
-			"version": 1,
-			"content": {
-				"sa_promotionid": this.data.sa_promotionid
-			}
-		}).then(res => {
-			console.log("获取商品分类", res)
-			if (res.msg != '成功') return wx.showToast({
-				title: res.msg,
-				icon: "none"
-			})
-			if (res.data.length != 0) this.setData({
-				groupList: res.data,
-				active: res.data[0].sa_promotion_itemgroupid
-			});
-			if (res.data.length) this.getProductList();
+			this.getProductList();
 		})
 	},
 	/* 切换商品tab */