Commit 8aedd527 by HouTiZhuo

全网搜本店搜逻辑优化

parent 2c0a03bd
......@@ -488,6 +488,7 @@ export function themeScanningCodeClick() {
// 一维码类型
const data = {
searchWord: result,
searchScopeFlag: 1,
page: 1,
rows: 10
};
......
......@@ -58,8 +58,8 @@ Component({
// 全网搜和本店搜
toSearchAllOrLocal() {
const placeHolderText = this.data.datas.componentData["placeHolderVal"] || "";
const query = `?placeHolderText=${placeHolderText}&searchScopeFlag=${this.data.searchScopeFlag}&searchValue=${this.data.searchValue}`;
let link = `/contentSearch/contentSearch${query}`;
const query = `?placeHolderText=${placeHolderText}&searchScopeFlag=${this.data.searchScopeFlag}&search_txt=${this.data.searchValue}`;
let link = `/goodsSearch/goodsSearch${query}`;
if (this.data.searchScopeFlag == 0) {
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