From c851585ba03e5f2cb4e3eb3e00e34e3131032d0a Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Tue, 22 Oct 2024 10:05:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8D=E5=8F=AF=E7=94=A8?=
=?UTF-8?q?=E5=8E=9F=E5=9B=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/orderCoupon.vue | 18 ++++++++++++++----
pages/goods/order/index.vue | 3 ++-
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/components/orderCoupon.vue b/components/orderCoupon.vue
index 9cd3332..78d478f 100644
--- a/components/orderCoupon.vue
+++ b/components/orderCoupon.vue
@@ -21,18 +21,28 @@
到期时间:{{item.effectType == 0 ? '永久有效' : item.endTime}}
-
+
+ 不可用:
+ {{item.canUseReason}}
+
+
+ 说明:{{item.couponEntity.remark}}
-
+
-
+
diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue
index 1c04d1b..1ed3e96 100644
--- a/pages/goods/order/index.vue
+++ b/pages/goods/order/index.vue
@@ -716,7 +716,8 @@
console.log("可用优惠券列表", res);
res.couponHistoryList.forEach( item =>{
if(item.couponEntity.useLevel > this.totalPrice){
- item.canUse = 0
+ item.canUse = 0
+ item.canUseReason = "未到使用门槛"
}
})
this.couponHistoryList = res.couponHistoryList