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