[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
+5 -5
View File
@@ -34,14 +34,14 @@ Vue.use(CouponCell).use(CouponList);
```javascript
const coupon = {
available: 1,
discount: 0,
denominations: 150,
originCondition: 0,
reason: '',
value: 150,
name: 'Coupon name',
startAt: 1489104000,
endAt: 1514592000
endAt: 1514592000,
valueDesc: '1.5',
unitDesc: '元'
};
export default {
@@ -106,11 +106,11 @@ export default {
|------|------|------|
| id | Id | `String` |
| name | Name | `String` |
| discount | Discount | `Number` |
| denominations | Denominations | `Number` |
| condition | Condition | `String` |
| startAt | Start time (Timestmap, unit second) | `Number` |
| endAt | End time (Timestmap, unit second) | `Number` |
| description | Description | `String` |
| reason | Unavailable reason | `String` |
| value | Value | `Number` |
| valueDesc | Value Text | `String` |
| unitDesc | Unit Text | `String` |