Authored by 姜枫

fix bug 2079

... ... @@ -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;
}
... ...
... ... @@ -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;
... ...