Browse Source

中奖进度条初始化不对的问题

songtongtong/feature-20250717104937-众筹
no99 4 weeks ago
parent
commit
e2170b97e2
  1. 7
      src/views/choujiang/hxl-cj/cj.vue

7
src/views/choujiang/hxl-cj/cj.vue

@ -267,7 +267,7 @@ const closeGetPrize = () => {
}; };
// //
const lookPrize = (item) => {
const lookPrize = async (item) => {
// //
if (!joinLottery) { if (!joinLottery) {
addQipao("请先进入抽奖。"); addQipao("请先进入抽奖。");
@ -315,6 +315,8 @@ const lookPrize = (item) => {
// //
item.isLook = true; item.isLook = true;
} }
await nextTick();
setPrizeData(currentPrizeIndex);
}; };
function setPrizeData(currentPrizeIndex, isInit) { 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); let percent = (count / totalCount).toFixed(2);
if (elements.bar) { if (elements.bar) {

Loading…
Cancel
Save