|
@@ -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 */
|