...
|
...
|
@@ -493,7 +493,9 @@ class featureModel extends global.yoho.BaseModel { |
|
|
// 默认为非ufo商品
|
|
|
f.component[0].ufoProduct = f.component[0].ufoProduct || '0';
|
|
|
|
|
|
if (_.get(f, 'component[0].ufoProduct') === '1') {
|
|
|
let isUfoProduct = _.get(f, 'component[0].ufoProduct') === '1';
|
|
|
|
|
|
if (isUfoProduct) {
|
|
|
let searchCondition = f.component[0].searchCondition || {};
|
|
|
|
|
|
searchCondition.is_ufo = 'Y';
|
...
|
...
|
@@ -504,18 +506,18 @@ class featureModel extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
f.component[0].searchCondition = searchCondition;
|
|
|
}
|
|
|
|
|
|
if (_.get(f, 'component[0].numOfOneRow') === '1') { // 一行一个商品或UFO商品展示销售数量
|
|
|
let showLastSoldTpl = '';
|
|
|
if (_.get(f, 'component[0].numOfOneRow') === '1' || isUfoProduct) { // 一行一个商品或UFO商品展示销售数量
|
|
|
let showLastSoldTpl = '';
|
|
|
|
|
|
if (_.get(f, 'component[0].ufoProduct') === '1') {
|
|
|
showLastSoldTpl = '{{soldNum}}人付款';
|
|
|
} else {
|
|
|
showLastSoldTpl = '累积销售{{soldNum}}件';
|
|
|
}
|
|
|
|
|
|
f.component[0].showLastSoldTpl = showLastSoldTpl;
|
|
|
if (isUfoProduct) {
|
|
|
showLastSoldTpl = '{{soldNum}}人付款';
|
|
|
} else {
|
|
|
showLastSoldTpl = '累积销售{{soldNum}}件';
|
|
|
}
|
|
|
|
|
|
f.component[0].showLastSoldTpl = showLastSoldTpl;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -800,7 +802,7 @@ class featureModel extends global.yoho.BaseModel { |
|
|
}
|
|
|
});
|
|
|
|
|
|
cache.setAsync(key, JSON.stringify({
|
|
|
pass && cache.setAsync(key, JSON.stringify({
|
|
|
time: Date.parse(new Date())
|
|
|
}), 30 * 12 * 60 * 60);
|
|
|
|
...
|
...
|
|