1
|
'use strict';
|
1
|
'use strict';
|
2
|
-require('../app');
|
|
|
3
|
const _ = require('lodash');
|
2
|
const _ = require('lodash');
|
4
|
const camelCase = global.yoho.camelCase;
|
3
|
const camelCase = global.yoho.camelCase;
|
5
|
const helpers = global.yoho.helpers;
|
4
|
const helpers = global.yoho.helpers;
|
|
@@ -85,7 +84,8 @@ exports.processProductList = (list, options) => { |
|
@@ -85,7 +84,8 @@ exports.processProductList = (list, options) => { |
85
|
height: 388,
|
84
|
height: 388,
|
86
|
isApp: false,
|
85
|
isApp: false,
|
87
|
showPoint: true,
|
86
|
showPoint: true,
|
88
|
- gender: '2,3'
|
87
|
+ gender: '2,3',
|
|
|
88
|
+ yhChannel: ''
|
89
|
}, options);
|
89
|
}, options);
|
90
|
list = camelCase(list);
|
90
|
list = camelCase(list);
|
91
|
|
91
|
|
|
@@ -122,7 +122,7 @@ exports.processProductList = (list, options) => { |
|
@@ -122,7 +122,7 @@ exports.processProductList = (list, options) => { |
122
|
|
122
|
|
123
|
// 如果还未赋值,则取第一个skc产品的默认图片
|
123
|
// 如果还未赋值,则取第一个skc产品的默认图片
|
124
|
if (!flag) {
|
124
|
if (!flag) {
|
125
|
- product.defaultImages = _procProductImg(product.goodsList[0], product.gender, options.yh_channel);
|
125
|
+ product.defaultImages = _procProductImg(product.goodsList[0], product.gender, options.yhChannel);
|
126
|
}
|
126
|
}
|
127
|
|
127
|
|
128
|
product.isSoonSoldOut = product.isSoonSoldOut === 'Y';
|
128
|
product.isSoonSoldOut = product.isSoonSoldOut === 'Y';
|
|
@@ -253,7 +253,7 @@ exports.processFilter = (list, options) => { |
|
@@ -253,7 +253,7 @@ exports.processFilter = (list, options) => { |
253
|
subs: []
|
253
|
subs: []
|
254
|
};
|
254
|
};
|
255
|
|
255
|
|
256
|
- if (key === 'group_sort' || !filtersType[key]) {
|
256
|
+ if (key === 'groupSort' || !filtersType[key]) {
|
257
|
return;
|
257
|
return;
|
258
|
}
|
258
|
}
|
259
|
|
259
|
|