Browse Source

调整抽奖逻辑,调整获奖列表奖项

pangluotong/feature-20250712103401-抽奖
Ethereal 3 weeks ago
parent
commit
1f351c514e
  1. 6
      src/views/choujiang/index.vue
  2. 2
      src/views/choujiang/lottery/Lottery3D.vue
  3. 2
      src/views/choujiang/lottery/PrizePanel.vue

6
src/views/choujiang/index.vue

@ -333,9 +333,10 @@ async function handleLotteryClick() {
break; break;
case "rotating": case "rotating":
setTimeout(() => { setTimeout(() => {
isDisabled.value = false; isDisabled.value = false;
}, 2000);
}, 2700);
// toggleMusic(); // toggleMusic();
@ -344,13 +345,12 @@ async function handleLotteryClick() {
await lottery3DRef.value?.rotateBallStop?.(); await lottery3DRef.value?.rotateBallStop?.();
toggleMusic(); toggleMusic();
playMusic1(); playMusic1();
lotteryState.value = "result";
await lotteryEngine.executeLottery(); await lotteryEngine.executeLottery();
await nextTick(); await nextTick();
showLotteryQipao(); showLotteryQipao();
console.log("lotteryState 变更前:", lotteryState.value, "-> idle"); console.log("lotteryState 变更前:", lotteryState.value, "-> idle");
lotteryState.value = "result";
console.log("lotteryState 变更后:", lotteryState.value); console.log("lotteryState 变更后:", lotteryState.value);

2
src/views/choujiang/lottery/Lottery3D.vue

@ -756,7 +756,7 @@ onMounted(async () => {
const length = member.length; const length = member.length;
const showTable = true; const showTable = true;
const position = { const position = {
x: (100 * config.COLUMN_COUNT - 20) / 2,
x: (115 * config.COLUMN_COUNT - 20) / 2,
y: (120 * config.ROW_COUNT - 20) / 2, y: (120 * config.ROW_COUNT - 20) / 2,
}; };
createCards(member, length, showTable, position, config); // 3. createCards(member, length, showTable, position, config); // 3.

2
src/views/choujiang/lottery/PrizePanel.vue

@ -147,7 +147,7 @@
> >
<!-- <span>{{ user.id }}</span> - <span>{{ user.name }}</span> - --> <!-- <span>{{ user.id }}</span> - <span>{{ user.name }}</span> - -->
<span>{{ user.jwcode }}</span> <span>{{ user.jwcode }}</span>
<span>{{ user.prizeName }}</span>
<span>{{ user.gradeName }}</span>
</li> </li>
</ul> </ul>
<!-- 分页控件 --> <!-- 分页控件 -->

Loading…
Cancel
Save