Showing
2 changed files
with
9 additions
and
2 deletions
@@ -17,7 +17,8 @@ exports.productLst = function(req, res, next) { | @@ -17,7 +17,8 @@ exports.productLst = function(req, res, next) { | ||
17 | uid: uid, | 17 | uid: uid, |
18 | udid: udid, | 18 | udid: udid, |
19 | yh_channel: req.query.yh_channel || (req.cookies._Channel && channels[req.cookies._Channel]) || 1, | 19 | yh_channel: req.query.yh_channel || (req.cookies._Channel && channels[req.cookies._Channel]) || 1, |
20 | - limit: req.query.limit | 20 | + limit: req.query.limit, |
21 | + gender: req.query.gender | ||
21 | }, req.query)); | 22 | }, req.query)); |
22 | } else { | 23 | } else { |
23 | let keys = ['sort', 'misort', 'msort', 'gender', 'brand'], | 24 | let keys = ['sort', 'misort', 'msort', 'gender', 'brand'], |
@@ -24,6 +24,11 @@ let _getProduct = function(o) { | @@ -24,6 +24,11 @@ let _getProduct = function(o) { | ||
24 | }; | 24 | }; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | +const gender = { | ||
28 | + 1: '1,3', | ||
29 | + 2: '2,3' | ||
30 | +}; | ||
31 | + | ||
27 | module.exports = { | 32 | module.exports = { |
28 | productLst: function(params) { | 33 | productLst: function(params) { |
29 | return api.get('', Object.assign({ | 34 | return api.get('', Object.assign({ |
@@ -48,7 +53,8 @@ module.exports = { | @@ -48,7 +53,8 @@ module.exports = { | ||
48 | yh_channel: params.yh_channel, | 53 | yh_channel: params.yh_channel, |
49 | limit: params.limit, | 54 | limit: params.limit, |
50 | need_filter: 'null', | 55 | need_filter: 'null', |
51 | - rec_pos: '100008' | 56 | + rec_pos: '100008', |
57 | + gender: params.gender || gender[params.yh_channel] | ||
52 | }, { | 58 | }, { |
53 | cache: true | 59 | cache: true |
54 | }).then(res => { | 60 | }).then(res => { |
-
Please register or login to post a comment