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) {