Commit a7538e4b by 李嘉林

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents edb2cecd 447035d1
...@@ -154,15 +154,16 @@ export default { ...@@ -154,15 +154,16 @@ export default {
this.options = options; this.options = options;
log.info(this.options,'----------------index-----options') log.info(this.options,'----------------index-----options')
Object.assign(this.$data, this.$options.data()); Object.assign(this.$data, this.$options.data());
let offlineShopCode = getUrlKey(decodeURIComponent(options.params), "offlineShopCode"); try {
let offlineShopName = getUrlKey(decodeURIComponent(options.params), "offlineShopName"); const h5Params = options && options.params ? JSON.parse(decodeURIComponent(options.params)) : "";
if (offlineShopCode) { if (h5Params) {
// 存储h5url门店信息 // 存储h5url门店信息
setStoreInfo({ setStoreInfo({
offlineShopCode, offlineShopCode:h5Params.offlineShopCode,
offlineShopName offlineShopName:h5Params.offlineShopName,
}); });
} }
} catch (e) { console.log(e) }
if(wx.getStorageSync("workBox")){ if(wx.getStorageSync("workBox")){
this.params += `&workBox=${wx.getStorageSync("workBox")}` this.params += `&workBox=${wx.getStorageSync("workBox")}`
} }
......
...@@ -10,6 +10,7 @@ export const noLoginList = [ ...@@ -10,6 +10,7 @@ export const noLoginList = [
"goods-goodsInfo", "goods-goodsInfo",
"goods-commodityMenu", "goods-commodityMenu",
"goodsSearch-goodsSearch", "goodsSearch-goodsSearch",
"goodsSearch-searchAllGoods",
"contentSearch-contentSearch", "contentSearch-contentSearch",
"chooseStores", "chooseStores",
"activty-receivingGift", "activty-receivingGift",
......
...@@ -52,13 +52,13 @@ Component({ ...@@ -52,13 +52,13 @@ Component({
let query = `?placeHolderText=${placeHolderText}`; let query = `?placeHolderText=${placeHolderText}`;
if (this.data.datas.componentData['searchModel'] == 1) { if (this.data.datas.componentData['searchModel'] == 1) {
query += `&searchScopeFlag=${this.data.searchScopeFlag}`; query += `&searchScopeFlag=${this.data.searchScopeFlag}`;
// 重置默认全网搜
this.setData({ searchScopeFlag: 0 });
} }
let link = `/contentSearch/contentSearch${query}`; let link = `/contentSearch/contentSearch${query}`;
if (this.data.datas.componentData['searchModel'] == 1 && this.data.searchScopeFlag == 0) { if (this.data.datas.componentData['searchModel'] == 1 && this.data.searchScopeFlag == 0) {
link = `/goodsSearch/searchAllGoods${query}`; link = `/goodsSearch/searchAllGoods${query}`;
} }
// 重置默认全网搜
this.setData({ searchScopeFlag: 0 });
app.$themeToLink({ type: 1, link }); app.$themeToLink({ type: 1, link });
}, },
// 本店搜 // 本店搜
......
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