...
|
...
|
@@ -572,7 +572,7 @@ coupon = { |
|
|
that.$couponUnusableList = $('.list-content', that.$couponUnusableWrap);
|
|
|
}
|
|
|
|
|
|
usedText = data.usableNum ? `${data.usableNum}张可用` : '';
|
|
|
usedText = `${data.usableNum}张可用`;
|
|
|
|
|
|
// 更新使用数量
|
|
|
usedNum = that.$couponWrap.find('.coupon-item.active').length;
|
...
|
...
|
@@ -624,7 +624,15 @@ coupon = { |
|
|
this[key] = $('.tab-item.' + name + ' > span', this.$couponWrap);
|
|
|
}
|
|
|
|
|
|
this[key].text(`(${num > 99 ? '99+' : num})`);
|
|
|
if (num > 99) {
|
|
|
num = '(99+)';
|
|
|
} else if (num > 0) {
|
|
|
num = `(${num})`;
|
|
|
} else {
|
|
|
num = '';
|
|
|
}
|
|
|
|
|
|
this[key].text(num);
|
|
|
},
|
|
|
showCodeUseTip: function(tip) {
|
|
|
tip = tip || '';
|
...
|
...
|
|