Authored by 姜枫

fix bug 2079

@@ -21,6 +21,7 @@ const Query = { @@ -21,6 +21,7 @@ const Query = {
21 21
22 q.page = parseInt(q.page || 1, 10); 22 q.page = parseInt(q.page || 1, 10);
23 q.order = q.order || 's_n_desc'; 23 q.order = q.order || 's_n_desc';
  24 + q.yh_channel = channel;
24 25
25 let retData = { 26 let retData = {
26 module: 'product', 27 module: 'product',
@@ -46,7 +47,7 @@ const Query = { @@ -46,7 +47,7 @@ const Query = {
46 retData.filter = DataHelper.filterHandle(data.filter, q); 47 retData.filter = DataHelper.filterHandle(data.filter, q);
47 retData.filter.showPrice = data.total > 10; 48 retData.filter.showPrice = data.total > 10;
48 retData.filter.showInfo = (retData.filter.style && retData.filter.style.length > 0) 49 retData.filter.showInfo = (retData.filter.style && retData.filter.style.length > 0)
49 - || (data.standard && data.standard.length > 0); //eslint-disable-line 50 + || (data.standard && data.standard.length > 0); //eslint-disable-line
50 retData.filter.useSmallSort = 1; 51 retData.filter.useSmallSort = 1;
51 } 52 }
52 53
@@ -37,18 +37,19 @@ function _paramHanlde(obj) { @@ -37,18 +37,19 @@ function _paramHanlde(obj) {
37 37
38 // let _gender; 38 // let _gender;
39 // 39 //
40 - // if (obj.yh_channel) {  
41 - // switch (obj.yh_channel) {  
42 - // case 'men':  
43 - // _gender = '1,3';  
44 - // break;  
45 - // case 'women':  
46 - // _gender = '2,3';  
47 - // break;  
48 - // default:  
49 - // break;  
50 - // }  
51 - // } 40 + if (obj.yh_channel) {
  41 + switch (obj.yh_channel) {
  42 + case 'men':
  43 + obj.yh_channel = '301';
  44 + break;
  45 + case 'women':
  46 + obj.yh_channel = '302';
  47 + break;
  48 + default:
  49 + obj.yh_channel = '303';
  50 + break;
  51 + }
  52 + }
52 53
53 // if (obj.gender || _gender) { 54 // if (obj.gender || _gender) {
54 // obj.gender = obj.gender || _gender; 55 // obj.gender = obj.gender || _gender;