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
217491a6
Commit
217491a6
authored
Oct 31, 2023
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索优化
parent
27b68cc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
static/nativeComponents/GoodsSearch/index.js
+1
-1
No files found.
static/nativeComponents/GoodsSearch/index.js
View file @
217491a6
...
@@ -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
}
`
;
...
...
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