update: 平台搜索和店铺区分商品搜索,如果店铺搜索支持仅搜索店铺商品
This commit is contained in:
parent
07be220126
commit
fe66032d7e
@ -304,7 +304,7 @@
|
|||||||
:style="{ 'font-size': '30px', color: item.eltm8.fontColor }"></label>
|
:style="{ 'font-size': '30px', color: item.eltm8.fontColor }"></label>
|
||||||
</view>
|
</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,
|
'background-color': item.bgColor,
|
||||||
'padding-top': item.eltm9.paddingTop + 'px',
|
'padding-top': item.eltm9.paddingTop + 'px',
|
||||||
'padding-bottom': item.eltm9.paddingBottom + 'px',
|
'padding-bottom': item.eltm9.paddingBottom + 'px',
|
||||||
|
|||||||
@ -230,6 +230,7 @@ export default {
|
|||||||
ptSearchStyle: "z-index: 5;",
|
ptSearchStyle: "z-index: 5;",
|
||||||
tpSearchStyle: "z-index: 5;",
|
tpSearchStyle: "z-index: 5;",
|
||||||
tpSearchPlaceholder: "",
|
tpSearchPlaceholder: "",
|
||||||
|
store_id: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -274,6 +275,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
|
this.store_id = options.store_id ? options.store_id : 0
|
||||||
await this.$onLaunched;
|
await this.$onLaunched;
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
search_his_list: [],
|
search_his_list: [],
|
||||||
hot_list: [],
|
hot_list: [],
|
||||||
|
store_id: 0,
|
||||||
suggest_text: ""
|
suggest_text: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -34,6 +35,9 @@
|
|||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
|
console.log('store_id===', options.store_id);
|
||||||
|
this.store_id = options.store_id ? options.store_id : 0
|
||||||
|
|
||||||
that.$.request({
|
that.$.request({
|
||||||
url: this.Config.URL.search_hot_info,
|
url: this.Config.URL.search_hot_info,
|
||||||
success: function(data, status, msg, code) {
|
success: function(data, status, msg, code) {
|
||||||
@ -50,7 +54,7 @@
|
|||||||
getSearchText(e) {
|
getSearchText(e) {
|
||||||
var that = this;
|
var that = this;
|
||||||
that.$.isNull(e) ? that.$.confirm("请输入您要搜索的关键词!") : that.$.golevelToTabBar(that, "../../" + that.route,
|
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