Commit f48d727b by 李嘉林

筛选

parent b34af048
...@@ -211,6 +211,7 @@ export default { ...@@ -211,6 +211,7 @@ export default {
brandActiveNameList: [], brandActiveNameList: [],
goodsSpecificationIds: [], goodsSpecificationIds: [],
}, },
categoryId: "",
GoodsSpecificationNameAndValuesListResponseDTO: [], GoodsSpecificationNameAndValuesListResponseDTO: [],
brandMore: false, brandMore: false,
brandList: [], brandList: [],
...@@ -246,6 +247,7 @@ export default { ...@@ -246,6 +247,7 @@ export default {
open(val) { open(val) {
console.log("筛选商品open",val); console.log("筛选商品open",val);
this.submitFliterVal = val.submitFliterVal; this.submitFliterVal = val.submitFliterVal;
this.categoryId = val.categoryId;
this.brandListCopy = val.filterBrand; this.brandListCopy = val.filterBrand;
this.randomNumber = val.randomNumber; this.randomNumber = val.randomNumber;
this.hideBrandSelectFlag = val.hideBrandSelectFlag; this.hideBrandSelectFlag = val.hideBrandSelectFlag;
...@@ -286,6 +288,8 @@ export default { ...@@ -286,6 +288,8 @@ export default {
page: 1, page: 1,
rows: 100000, rows: 100000,
used: 1, used: 1,
categoryId: this.categoryId,
categoryIncludeChild : true,
}) })
.then((res) => { .then((res) => {
console.log(res,'-------275'); console.log(res,'-------275');
......
...@@ -217,6 +217,8 @@ export default { ...@@ -217,6 +217,8 @@ export default {
this.ossLink = decodeURIComponent(options.ossLink) this.ossLink = decodeURIComponent(options.ossLink)
} }
this.getshop(); this.getshop();
// 存openid
this.setOpenId();
this.queryOptions = options; this.queryOptions = options;
this.isOnLoad = true; this.isOnLoad = true;
this.systemInfo = wx.getSystemInfoSync() this.systemInfo = wx.getSystemInfoSync()
...@@ -819,6 +821,21 @@ export default { ...@@ -819,6 +821,21 @@ export default {
wx.hideLoading(); 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) { forgetPassword(val) {
if(!val) return; if(!val) return;
......
...@@ -147,6 +147,7 @@ const componentOptions = { ...@@ -147,6 +147,7 @@ const componentOptions = {
let _this = this; let _this = this;
app.openFilterGoods({ app.openFilterGoods({
submitFliterVal: _this.data.submitFliterVal, submitFliterVal: _this.data.submitFliterVal,
categoryId: _this.data.datas.componentData.goodsSource == "classify"?_this.data.datas.componentData.categoryId : "",
filterBrand: _this.data.datas.componentData.filterBrand, filterBrand: _this.data.datas.componentData.filterBrand,
randomNumber: _this.data.randomNumber, randomNumber: _this.data.randomNumber,
hideBrandSelectFlag: _this.data.datas.componentData.filterBrand.length>0?true:false, 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