抽奖效果修改

This commit is contained in:
xiaoaojiao
2025-09-23 14:18:51 +08:00
parent 465ac8b15f
commit 24339e6db0
5 changed files with 74 additions and 66 deletions

View File

@@ -21,6 +21,7 @@ const videoElement = ref(null);
const videoLoaded = ref(false);
const videoError = ref(false);
const lotteryShow = ref(false)
const lotteryType = ref("draw")
// 初始化全局音频实例
const initGlobalAudio = () => {
@@ -407,7 +408,7 @@ watch(() => lotteryShow.value, async (newVal) => {
<MyPhoto @go-photo-square="showPhotoSquare" v-model:show="isMyPhotoVisible" />
<PhotoSquare @go-my-photo="showMyPhoto" v-model:show="isPhotoSquareVisible" />
<Login :show="loginShow" @login-success="handleLoginSuccess" />
<Lottery :show="lotteryShow" @close="lotteryShow = false"></Lottery>
<Lottery :show="lotteryShow" @close="lotteryShow = false" :type="lotteryType"></Lottery>
</template>
<style scoped>