Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
8aedd527
Commit
8aedd527
authored
Mar 14, 2023
by
HouTiZhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全网搜本店搜逻辑优化
parent
2c0a03bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/utils/mayi.js
+1
-0
static/nativeComponents/GoodsSearch/index.js
+2
-2
No files found.
src/utils/mayi.js
View file @
8aedd527
...
...
@@ -488,6 +488,7 @@ export function themeScanningCodeClick() {
// 一维码类型
const
data
=
{
searchWord
:
result
,
searchScopeFlag
:
1
,
page
:
1
,
rows
:
10
};
...
...
static/nativeComponents/GoodsSearch/index.js
View file @
8aedd527
...
...
@@ -58,8 +58,8 @@ Component({
// 全网搜和本店搜
toSearchAllOrLocal
()
{
const
placeHolderText
=
this
.
data
.
datas
.
componentData
[
"placeHolderVal"
]
||
""
;
const
query
=
`?placeHolderText=
${
placeHolderText
}
&searchScopeFlag=
${
this
.
data
.
searchScopeFlag
}
&search
Value
=
${
this
.
data
.
searchValue
}
`
;
let
link
=
`/
contentSearch/content
Search
${
query
}
`
;
const
query
=
`?placeHolderText=
${
placeHolderText
}
&searchScopeFlag=
${
this
.
data
.
searchScopeFlag
}
&search
_txt
=
${
this
.
data
.
searchValue
}
`
;
let
link
=
`/
goodsSearch/goods
Search
${
query
}
`
;
if
(
this
.
data
.
searchScopeFlag
==
0
)
{
link
=
`/goodsSearch/searchAllGoods
${
query
}
`
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment