[new feature] Coupon: add valueDesc、unitDesc prop (#2710)

This commit is contained in:
rex
2019-02-14 13:58:59 +08:00
committed by neverland
parent 144a3fefd3
commit 7a1ed98eb7
5 changed files with 27 additions and 21 deletions
+8 -8
View File
@@ -65,15 +65,15 @@ export default {
coupon() {
return {
id: 1,
discount: 0,
denominations: 150,
condition: '无使用门槛\n最多优惠12元',
reason: '',
value: 150,
name: this.$t('coupon.name'),
description: this.$t('coupon.description'),
startAt: 1489104000,
endAt: 1514592000
endAt: 1514592000,
valueDesc: '1.5',
unitDesc: '元'
};
},
@@ -81,10 +81,9 @@ export default {
return {
...this.coupon,
id: 2,
discount: 88,
denominations: 0,
originCondition: 50,
value: 12
value: 12,
valueDesc: '8.8',
unitDesc: '折'
};
},
@@ -99,7 +98,8 @@ export default {
disabledDiscountCoupon() {
return {
...this.discountCoupon,
discount: 10,
valueDesc: '1',
unitDesc: '折',
id: 4,
reason: this.$t('coupon.reason')
};