Commit f48d727b by 李嘉林

筛选

parent b34af048
......@@ -211,6 +211,7 @@ export default {
brandActiveNameList: [],
goodsSpecificationIds: [],
},
categoryId: "",
GoodsSpecificationNameAndValuesListResponseDTO: [],
brandMore: false,
brandList: [],
......@@ -246,6 +247,7 @@ export default {
open(val) {
console.log("筛选商品open",val);
this.submitFliterVal = val.submitFliterVal;
this.categoryId = val.categoryId;
this.brandListCopy = val.filterBrand;
this.randomNumber = val.randomNumber;
this.hideBrandSelectFlag = val.hideBrandSelectFlag;
......@@ -286,6 +288,8 @@ export default {
page: 1,
rows: 100000,
used: 1,
categoryId: this.categoryId,
categoryIncludeChild : true,
})
.then((res) => {
console.log(res,'-------275');
......
......@@ -217,6 +217,8 @@ export default {
this.ossLink = decodeURIComponent(options.ossLink)
}
this.getshop();
// 存openid
this.setOpenId();
this.queryOptions = options;
this.isOnLoad = true;
this.systemInfo = wx.getSystemInfoSync()
......@@ -819,6 +821,21 @@ export default {
wx.hideLoading();
})
},
setOpenId() {
wx.login({
success: res => {
let code = res.code;
login.get_open_id_by_code({ code}).then(res1 => {
if (res1.data.code == 200) {
wx.setStorage({
key: "openid",
data: res1.data.data
});
}
})
},
})
},
// 忘记密码
forgetPassword(val) {
if(!val) return;
......
......@@ -147,6 +147,7 @@ const componentOptions = {
let _this = this;
app.openFilterGoods({
submitFliterVal: _this.data.submitFliterVal,
categoryId: _this.data.datas.componentData.goodsSource == "classify"?_this.data.datas.componentData.categoryId : "",
filterBrand: _this.data.datas.componentData.filterBrand,
randomNumber: _this.data.randomNumber,
hideBrandSelectFlag: _this.data.datas.componentData.filterBrand.length>0?true:false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment