Commit 8aedd527 by HouTiZhuo

全网搜本店搜逻辑优化

parent 2c0a03bd
...@@ -488,6 +488,7 @@ export function themeScanningCodeClick() { ...@@ -488,6 +488,7 @@ export function themeScanningCodeClick() {
// 一维码类型 // 一维码类型
const data = { const data = {
searchWord: result, searchWord: result,
searchScopeFlag: 1,
page: 1, page: 1,
rows: 10 rows: 10
}; };
......
...@@ -58,8 +58,8 @@ Component({ ...@@ -58,8 +58,8 @@ 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}&searchValue=${this.data.searchValue}`; const query = `?placeHolderText=${placeHolderText}&searchScopeFlag=${this.data.searchScopeFlag}&search_txt=${this.data.searchValue}`;
let link = `/contentSearch/contentSearch${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