...
|
...
|
@@ -385,7 +385,7 @@ const formatPromotion = (it, selectedGiftsList) => { |
|
|
isGift: it.promotion_type === 'Gift',
|
|
|
isPriceGift: it.promotion_type === 'Needpaygift',
|
|
|
isNotReach: status === 0, // 未满足
|
|
|
isReach: status === 10 || status === 30, // 满足条件
|
|
|
isReach: status === 10 || status === 30 || status === 20, // 满足条件
|
|
|
isEmpty: status === 20, // 已售完
|
|
|
isSelected: status === 30 // 已选择,可更换
|
|
|
};
|
...
|
...
|
@@ -408,7 +408,7 @@ const formatPromotion = (it, selectedGiftsList) => { |
|
|
return s;
|
|
|
}
|
|
|
|
|
|
if (status === 0) {
|
|
|
if (info.isNotReach) {
|
|
|
|
|
|
let tipTxtMoney = `${ toDecimal(info.conditionValue)}`;
|
|
|
|
...
|
...
|
@@ -422,7 +422,7 @@ const formatPromotion = (it, selectedGiftsList) => { |
|
|
|
|
|
tipTxt = '<span style=\'color:#ff575c\'>' + tipTxt + '</span>';
|
|
|
info.promotionTitle = '还差' + tipTxt + '满足 ' + info.promotionTitle;
|
|
|
} else if (status === 10) {
|
|
|
} else if (info.isReach && !info.isSelected) {
|
|
|
info.promotionTitle = '已满足 ' + info.promotionTitle;
|
|
|
}
|
|
|
|
...
|
...
|
|