From 4adcf0a13a4af2d9544f65d038a5bf661a3e10c7 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Wed, 4 Nov 2026 14:03:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(coupon):=20=E6=94=AF=E6=8C=81=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E6=97=A0=E9=97=A8=E6=A7=9B=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优惠券消费阈值为0时显示"无门槛使用"替代"满0元可用" - 更新商品详情页促销优惠券组件的条件展示逻辑 - 更新购物车优惠券中心页面门槛显示 - 更新优惠券详情页门槛文案处理 - 更新首页领券模板,增加无门槛条件分支 - 更新我的优惠券页面新增门槛描述字段 - 更新店铺页优惠券领取区域门槛显示 - 更新首页优惠券模板组件门槛文案 --- pages/cart/coupon/couponCenter.vue | 2 +- pages/cart/coupon/couponDetail.vue | 2 +- pages/cart/coupon/index.vue | 2 +- pages/cart/coupon/myCoupon.vue | 1 + pages/product/product/promotion/-promotion-coupon.vue | 2 +- pages/product/shopPage.vue | 2 +- pages/tabbar/home/template/fetch_coupon.vue | 3 ++- pages/tabbar/home/template/tpl_coupon.vue | 2 +- 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pages/cart/coupon/couponCenter.vue b/pages/cart/coupon/couponCenter.vue index 6abb94d..da08d86 100644 --- a/pages/cart/coupon/couponCenter.vue +++ b/pages/cart/coupon/couponCenter.vue @@ -11,7 +11,7 @@ {{ item.storeName == 'platform' ? '全平台' : item.storeName + '店铺' }}使用 - 满{{unitPrice(item.consumeThreshold) }}元可用 + {{ item.consumeThreshold > 0 ? '满' + unitPrice(item.consumeThreshold) + '元可用' : '无门槛使用' }} 有效期至:{{ item.endTime.split(" ")[0] }} diff --git a/pages/cart/coupon/couponDetail.vue b/pages/cart/coupon/couponDetail.vue index 81e89fa..3f0f002 100644 --- a/pages/cart/coupon/couponDetail.vue +++ b/pages/cart/coupon/couponDetail.vue @@ -5,7 +5,7 @@ {{ coupon.title }} ¥{{ unitPrice(coupon.price) }} {{ coupon.discount }}折 - 满{{ coupon.consumeThreshold }}元可用 + {{ coupon.consumeThreshold > 0 ? '满' + coupon.consumeThreshold + '元可用' : '无门槛使用' }} 券 {{ coupon.used_status == 0 ? '新到' : coupon.used_status_text }} diff --git a/pages/cart/coupon/index.vue b/pages/cart/coupon/index.vue index 7d29022..9a1a3e6 100644 --- a/pages/cart/coupon/index.vue +++ b/pages/cart/coupon/index.vue @@ -41,7 +41,7 @@ 使用 - 满{{ unitPrice(item.consumeThreshold) }}元可用 + {{ item.consumeThreshold > 0 ? '满' + unitPrice(item.consumeThreshold) + '元可用' : '无门槛使用' }} {{ item.reason }} 有效期至:{{ item.endTime }} diff --git a/pages/cart/coupon/myCoupon.vue b/pages/cart/coupon/myCoupon.vue index 6b04446..7fc937f 100644 --- a/pages/cart/coupon/myCoupon.vue +++ b/pages/cart/coupon/myCoupon.vue @@ -47,6 +47,7 @@ {{ coupon.title }} + {{ coupon.consumeThreshold > 0 ? '满' + unitPrice(coupon.consumeThreshold) + '元可用' : '无门槛使用' }} 使用范围:{{ coupon.scopeType == "ALL" && coupon.storeId == "0" ? "全平台" diff --git a/pages/product/product/promotion/-promotion-coupon.vue b/pages/product/product/promotion/-promotion-coupon.vue index e239424..d505387 100644 --- a/pages/product/product/promotion/-promotion-coupon.vue +++ b/pages/product/product/promotion/-promotion-coupon.vue @@ -15,7 +15,7 @@ 部分商品 {{ item.storeName == 'platform' ? '全平台' : item.storeName + '店铺' }}使用 - 满{{ unitPrice(item.consumeThreshold) }}可用 + {{ item.consumeThreshold > 0 ? '满' + unitPrice(item.consumeThreshold) + '可用' : '无门槛使用' }} diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index abf53ed..4d73ac8 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -96,7 +96,7 @@ {{ "领取优惠券" }} - 满{{unitPrice(item.consumeThreshold) }}元可用 + {{ item.consumeThreshold > 0 ? '满' + unitPrice(item.consumeThreshold) + '元可用' : '无门槛使用' }} diff --git a/pages/tabbar/home/template/fetch_coupon.vue b/pages/tabbar/home/template/fetch_coupon.vue index 85315ad..e4d90b1 100644 --- a/pages/tabbar/home/template/fetch_coupon.vue +++ b/pages/tabbar/home/template/fetch_coupon.vue @@ -36,11 +36,12 @@ }}元 - 满{{unitPrice(item.consumeThreshold) }}元可用 + 无门槛使用 全平台 diff --git a/pages/tabbar/home/template/tpl_coupon.vue b/pages/tabbar/home/template/tpl_coupon.vue index 0192fca..b821883 100644 --- a/pages/tabbar/home/template/tpl_coupon.vue +++ b/pages/tabbar/home/template/tpl_coupon.vue @@ -21,7 +21,7 @@ {{ unitPrice(item.price) }} - 满{{ unitPrice(item.consumeThreshold) }}元可用 + {{ item.consumeThreshold > 0 ? '满' + unitPrice(item.consumeThreshold) + '元可用' : '无门槛使用' }}