From 08ec4a1d820d37c0c9d53ebcf9a72bcb44469ec8 Mon Sep 17 00:00:00 2001 From: fox <1466778434@qq.com> Date: Mon, 26 May 2025 16:45:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/couponList/couponList.vue | 2 +- pages_order/mine/coupon.vue | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 } } }