...
|
...
|
@@ -475,12 +475,6 @@ class featureModel extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
if (componentType === 'productGroup') {
|
|
|
if (f.component[0].defaultSkns) {
|
|
|
componentArr.push(f.component[0]);
|
|
|
|
|
|
f.component[0].newStyle = _.get(f, 'component[0].newStyle');
|
|
|
}
|
|
|
|
|
|
if (f.component[0].favourite_prds_enable === '1') {
|
|
|
f.component[0].searchCondition = Object.assign({
|
|
|
maybeLike: '1',
|
...
|
...
|
@@ -499,17 +493,36 @@ class featureModel extends global.yoho.BaseModel { |
|
|
// 默认为非ufo商品
|
|
|
f.component[0].ufoProduct = f.component[0].ufoProduct || '0';
|
|
|
|
|
|
// 一行一个商品或UFO商品展示销售数量
|
|
|
if (_.get(f, 'component[0].ufoProduct') === '1' || _.get(f, 'component[0].numOfOneRow') === '1') {
|
|
|
let showLastSoldTpl = '';
|
|
|
if (_.get(f, 'component[0].ufoProduct') === '1') {
|
|
|
let searchCondition = f.component[0].searchCondition || {};
|
|
|
|
|
|
searchCondition.is_ufo = 'Y';
|
|
|
|
|
|
if (_.get(f, 'component[0].ufoProduct') === '1') {
|
|
|
showLastSoldTpl = '{{soldNum}}人付款';
|
|
|
} else {
|
|
|
showLastSoldTpl = '累积销售{{soldNum}}件';
|
|
|
if (f.component[0].defaultSkns) {
|
|
|
searchCondition.product_id = f.component[0].defaultSkns;
|
|
|
f.component[0].defaultSkns = '';
|
|
|
}
|
|
|
|
|
|
f.component[0].showLastSoldTpl = showLastSoldTpl;
|
|
|
f.component[0].searchCondition = searchCondition;
|
|
|
|
|
|
if (_.get(f, 'component[0].numOfOneRow') === '1') { // 一行一个商品或UFO商品展示销售数量
|
|
|
let showLastSoldTpl = '';
|
|
|
|
|
|
if (_.get(f, 'component[0].ufoProduct') === '1') {
|
|
|
showLastSoldTpl = '{{soldNum}}人付款';
|
|
|
} else {
|
|
|
showLastSoldTpl = '累积销售{{soldNum}}件';
|
|
|
}
|
|
|
|
|
|
f.component[0].showLastSoldTpl = showLastSoldTpl;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (f.component[0].defaultSkns) {
|
|
|
componentArr.push(f.component[0]);
|
|
|
|
|
|
f.component[0].newStyle = _.get(f, 'component[0].newStyle');
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|