From 6590a3514becafeac934b788b4797501c8762679 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 4 Dec 2025 17:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageChat/chat.vue | 4 ++ pageChat/components/chat-item.vue | 109 +++++++++++++++++++++++------ pageChat/coupon-activity/index.vue | 3 +- 3 files changed, 95 insertions(+), 21 deletions(-) diff --git a/pageChat/chat.vue b/pageChat/chat.vue index 77ec76f..b7f0bd7 100644 --- a/pageChat/chat.vue +++ b/pageChat/chat.vue @@ -50,6 +50,10 @@ > + + {{item.hasGet||0}}人已领取 + 优惠券 + {{ item.coupon.title }} - - + + + + + + {{item.coupon.couponName}} 有效期:{{ returnTime(item.coupon) }} @@ -34,6 +85,7 @@ + diff --git a/pageChat/coupon-activity/index.vue b/pageChat/coupon-activity/index.vue index 3043a56..7e4df64 100644 --- a/pageChat/coupon-activity/index.vue +++ b/pageChat/coupon-activity/index.vue @@ -163,8 +163,9 @@ function sendMsg(msg) { }); } function toShare(item) { + const hasGet=item.couponJson.giveNum-item.couponJson.leftNum sendMsg({ - coupon: { ...item.couponJson, title: item.title,activity_id:item.id }, + coupon: { ...item.couponJson, title: item.title,activity_id:item.id, hasGet:hasGet<=0?0:hasGet} , chat_coupon_id:item.id, msg_type: 4, });