update: 平台搜索和店铺区分商品搜索,如果店铺搜索支持仅搜索店铺商品
This commit is contained in:
parent
07be220126
commit
fe66032d7e
@ -304,7 +304,7 @@
|
||||
:style="{ 'font-size': '30px', color: item.eltm8.fontColor }"></label>
|
||||
</view>
|
||||
|
||||
<navigator url="/pagesub/search/search" class="u-search-box" v-if="item.eltmType == 9" :style="{
|
||||
<navigator :url="'/pagesub/search/search?store_id='+shopInfo.store_id" class="u-search-box" v-if="item.eltmType == 9" :style="{
|
||||
'background-color': item.bgColor,
|
||||
'padding-top': item.eltm9.paddingTop + 'px',
|
||||
'padding-bottom': item.eltm9.paddingBottom + 'px',
|
||||
|
||||
@ -230,6 +230,7 @@ export default {
|
||||
ptSearchStyle: "z-index: 5;",
|
||||
tpSearchStyle: "z-index: 5;",
|
||||
tpSearchPlaceholder: "",
|
||||
store_id: 0,
|
||||
};
|
||||
},
|
||||
|
||||
@ -274,6 +275,7 @@ export default {
|
||||
});
|
||||
},
|
||||
async onLoad(options) {
|
||||
this.store_id = options.store_id ? options.store_id : 0
|
||||
await this.$onLaunched;
|
||||
this.loaded = true;
|
||||
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
search_his_list: [],
|
||||
hot_list: [],
|
||||
store_id: 0,
|
||||
suggest_text: ""
|
||||
}
|
||||
},
|
||||
@ -33,6 +34,9 @@
|
||||
});
|
||||
|
||||
var that = this;
|
||||
|
||||
console.log('store_id===', options.store_id);
|
||||
this.store_id = options.store_id ? options.store_id : 0
|
||||
|
||||
that.$.request({
|
||||
url: this.Config.URL.search_hot_info,
|
||||
@ -50,7 +54,7 @@
|
||||
getSearchText(e) {
|
||||
var that = this;
|
||||
that.$.isNull(e) ? that.$.confirm("请输入您要搜索的关键词!") : that.$.golevelToTabBar(that, "../../" + that.route,
|
||||
"/pages/product/list?pname=" + e)
|
||||
`/pages/product/list?pname=${e}&store_id=${this.store_id}`)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user