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
hongweigao
8 years ago
Commit
a8ca9a5e651b9e7b775448627c650a73b0a07298
1 parent
3be0ffd8
gender
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
apps/brands/models/brands-service.js
apps/brands/models/brands-service.js
View file @
a8ca9a5
...
...
@@ -129,8 +129,18 @@ exports.plusstarList = (channel, req) => {
brandsHomePage
:
true
};
let
gender_channel
;
if
(
channel
===
'boys'
)
{
gender_channel
=
'1,3'
;
}
else
if
(
channel
===
'girls'
)
{
gender_channel
=
'2,3'
;
}
else
{
gender_channel
=
'1,2,3'
;
}
let
id
=
req
.
query
.
id
||
''
,
gender
=
req
.
query
.
gender
||
''
,
gender
=
req
.
query
.
gender
||
gender_channel
,
limit
=
20
,
page
=
parseInt
(
req
.
query
.
page
,
10
)
||
1
;
...
...
Please
register
or
login
to post a comment