Commit 217491a6 by 侯体倬

搜索优化

parent 27b68cc7
...@@ -105,7 +105,7 @@ Component({ ...@@ -105,7 +105,7 @@ Component({
// 全网搜和本店搜 // 全网搜和本店搜
toSearchAllOrLocal() { toSearchAllOrLocal() {
const placeHolderText = this.data.datas.componentData["placeHolderVal"] || ""; const placeHolderText = this.data.datas.componentData["placeHolderVal"] || "";
const query = `?placeHolderText=${placeHolderText}&searchScopeFlag=${this.data.searchScopeFlag}&search_txt=${this.data.searchValue}`; const query = `?placeHolderText=${placeHolderText}&searchScopeFlag=${this.data.searchScopeFlag}&search_txt=${this.data.searchValue || placeHolderText}`;
let link = `/goodsSearch/goodsSearch${query}`; let link = `/goodsSearch/goodsSearch${query}`;
if (this.data.searchScopeFlag == 0) { if (this.data.searchScopeFlag == 0) {
link = `/goodsSearch/searchAllGoods${query}`; link = `/goodsSearch/searchAllGoods${query}`;
......
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