Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
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
901c88f215f5466267f9e59e41339eeb3bf268b4
1 parent
4ecdd3cf
fixed: 商品池区分
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
apps/product/models/search.js
apps/product/models/search.js
View file @
901c88f
...
...
@@ -7,13 +7,21 @@ const processProductList = require(`${global.utils}/beautify/product`);
const
search
=
{
products
(
params
)
{
let
method
=
'app.search.li'
;
if
(
params
.
hasOwnProperty
(
'priceRange'
))
{
params
.
price
=
params
.
priceRange
;
delete
params
.
priceRange
;
}
if
(
params
.
filter_poolId
)
{
params
.
productPool
=
params
.
filter_poolId
;
delete
params
.
filter_poolId
;
method
=
'app.search.pool'
;
}
const
data
=
_
.
merge
({
method
:
'app.search.li'
method
},
params
);
return
api
.
get
(
''
,
data
,
{
...
...
Please
register
or
login
to post a comment