[Improvement] CouponCell: optimize text (#1499)

This commit is contained in:
neverland
2018-07-17 21:21:08 +08:00
committed by GitHub
parent 1b702c0a21
commit 1f5a409112
7 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export default create({
const { coupons } = this;
const coupon = coupons[this.chosenCoupon];
if (coupon) {
return `${this.$t('reduce')}${(coupon.value / 100).toFixed(2)}`;
return `-${(coupon.value / 100).toFixed(2)}`;
}
return coupons.length === 0 ? this.$t('tips') : this.$t('count', coupons.length);
}