diff --git a/components/couponList/couponList.vue b/components/couponList/couponList.vue index 2b3200a..4dff115 100644 --- a/components/couponList/couponList.vue +++ b/components/couponList/couponList.vue @@ -18,7 +18,7 @@ {{ item.discountAmount }} - {{ `有效期至${item.validTime ? $dayjs(item.validTime).format('YYYY-MM-DD') : '-'}` }} + {{ `有效期至${item.validDate ? $dayjs(item.validDate).format('YYYY-MM-DD') : '-'}` }} diff --git a/pages_order/mine/coupon.vue b/pages_order/mine/coupon.vue index 8e16303..9e6c4f7 100644 --- a/pages_order/mine/coupon.vue +++ b/pages_order/mine/coupon.vue @@ -73,12 +73,11 @@ onTabClick(e) { const { index } = e - // todo: check “已过期” - // status: 0-未使用 1-已使用 + // status:空-全部 0-未使用 1-已使用 2-已失效 if (index === 0) { this.status = 'all' } else { - this.status = index - 1 + this.status = index } } }