From e2170b97e20cbe79f159ef66f9bc4142e2c2a21f Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Wed, 23 Jul 2025 13:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=A5=96=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/choujiang/hxl-cj/cj.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/choujiang/hxl-cj/cj.vue b/src/views/choujiang/hxl-cj/cj.vue index 7b51918..cb2748b 100644 --- a/src/views/choujiang/hxl-cj/cj.vue +++ b/src/views/choujiang/hxl-cj/cj.vue @@ -267,7 +267,7 @@ const closeGetPrize = () => { }; //揭示奖品 -const lookPrize = (item) => { +const lookPrize = async (item) => { // 未进入抽奖禁止揭晓 if (!joinLottery) { addQipao("请先进入抽奖。"); @@ -315,6 +315,8 @@ const lookPrize = (item) => { //点击揭晓 item.isLook = true; } + await nextTick(); + setPrizeData(currentPrizeIndex); }; function setPrizeData(currentPrizeIndex, isInit) { @@ -345,7 +347,8 @@ function setPrizeData(currentPrizeIndex, isInit) { } } - // console.log("currentPrize", currentPrize); + console.log("count", count); + console.log("totalCount", totalCount); let percent = (count / totalCount).toFixed(2); if (elements.bar) {