Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
OF1706
8 years ago
Commit
0d65145ac35cc1c585e5328c2ef5dd9964e167c4
1 parent
3e36efab
recommend none isChangedQuery page change
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/product/models/search.js
apps/product/models/search.js
View file @
0d65145
...
...
@@ -96,10 +96,10 @@ exports.getSearchData = (params, channel) => {
// 获取商品数据和顶部筛选条件
if
(
result
[
2
].
code
===
200
)
{
//搜索推荐词,获取对应的参数值
//
搜索推荐词,获取对应的参数值
let
termsSuggestion
=
_
.
get
(
result
[
2
],
'data.suggestion.terms_suggestion'
,
[]);
//推荐词 获取无商品,首次搜索,通过isChangedQuery做开关
//
推荐词 获取无商品,首次搜索,通过isChangedQuery做开关
if
(
result
[
2
].
data
.
isChangedQuery
===
'Y'
)
{
Object
.
assign
(
changeQuery
,
{
query
:
termsSuggestion
[
0
]});
}
...
...
Please
register
or
login
to post a comment