Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
78ffc769abded76ee150877aec530da3cc3d4c89
1 parent
02481c0b
搜索过来的query 保留,推荐词默认的显示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
apps/product/controllers/search.js
doraemon/views/partial/common/query-param.hbs
apps/product/controllers/search.js
View file @
78ffc76
...
...
@@ -62,7 +62,7 @@ const list = (req, res, next) => {
// 推荐词条件判断 redmine: 18567
if
(
result
[
2
].
suggestion
&&
result
[
2
].
suggestion
.
isNeedSuggestion
&&
result
[
2
].
suggestion
.
termsSuggestion
.
length
)
{
params
.
query
=
result
[
2
].
suggestion
.
termsSuggestion
[
0
].
name
;
params
.
new
query
=
result
[
2
].
suggestion
.
termsSuggestion
[
0
].
name
;
}
if
(
params
.
query
)
{
...
...
doraemon/views/partial/common/query-param.hbs
View file @
78ffc76
...
...
@@ -46,7 +46,9 @@
<input
class=
"query-param"
type=
"hidden"
data-attr=
"promotion"
value=
"
{{
promotion
}}
"
>
{{/if}}
{{#if
query
}}
{{#if
newquery
}}
<input
class=
"query-param"
type=
"hidden"
data-attr=
"query"
value=
"
{{
newquery
}}
"
>
{{else
if
query
}}
<input
class=
"query-param"
type=
"hidden"
data-attr=
"query"
value=
"
{{
query
}}
"
>
{{/if}}
...
...
Please
register
or
login
to post a comment