Showing
2 changed files
with
9 additions
and
3 deletions
@@ -92,8 +92,14 @@ class CouponNew { | @@ -92,8 +92,14 @@ class CouponNew { | ||
92 | let couponsList = _.get(couponApi, 'data.couponList', []); | 92 | let couponsList = _.get(couponApi, 'data.couponList', []); |
93 | let showUsedTip = false; | 93 | let showUsedTip = false; |
94 | 94 | ||
95 | - if (type === 'use' && couponsList && couponsList.length) { | ||
96 | - showUsedTip = true; | 95 | + if (couponsList && couponsList.length) { |
96 | + if (type === 'use') { | ||
97 | + showUsedTip = '以上是近期已使用的优惠券'; | ||
98 | + } | ||
99 | + | ||
100 | + if (type === 'overtime') { | ||
101 | + showUsedTip = '以上是近期已失效的优惠券'; | ||
102 | + } | ||
97 | } | 103 | } |
98 | 104 | ||
99 | if (couponsList && couponsList.length) { | 105 | if (couponsList && couponsList.length) { |
-
Please register or login to post a comment