Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
65bb52569c210154625482cd3a29dab5ccacc0f8
2 parents
7f2d8209
28e96f75
Merge branch 'hotfix/jira-2079' into feature/https
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
apps/product/controllers/query.js
apps/product/models/search.js
apps/product/controllers/query.js
View file @
65bb525
...
...
@@ -21,6 +21,7 @@ const Query = {
q
.
page
=
parseInt
(
q
.
page
||
1
,
10
);
q
.
order
=
q
.
order
||
's_n_desc'
;
q
.
yh_channel
=
channel
;
let
retData
=
{
module
:
'product'
,
...
...
@@ -46,7 +47,7 @@ const Query = {
retData
.
filter
=
DataHelper
.
filterHandle
(
data
.
filter
,
q
);
retData
.
filter
.
showPrice
=
data
.
total
>
10
;
retData
.
filter
.
showInfo
=
(
retData
.
filter
.
style
&&
retData
.
filter
.
style
.
length
>
0
)
||
(
data
.
standard
&&
data
.
standard
.
length
>
0
);
//eslint-disable-line
||
(
data
.
standard
&&
data
.
standard
.
length
>
0
);
//eslint-disable-line
retData
.
filter
.
useSmallSort
=
1
;
}
...
...
apps/product/models/search.js
View file @
65bb525
...
...
@@ -37,18 +37,19 @@ function _paramHanlde(obj) {
// let _gender;
//
// if (obj.yh_channel) {
// switch (obj.yh_channel) {
// case 'men':
// _gender = '1,3';
// break;
// case 'women':
// _gender = '2,3';
// break;
// default:
// break;
// }
// }
if
(
obj
.
yh_channel
)
{
switch
(
obj
.
yh_channel
)
{
case
'men'
:
obj
.
yh_channel
=
'301'
;
break
;
case
'women'
:
obj
.
yh_channel
=
'302'
;
break
;
default
:
obj
.
yh_channel
=
'303'
;
break
;
}
}
// if (obj.gender || _gender) {
// obj.gender = obj.gender || _gender;
...
...
Please
register
or
login
to post a comment