This commit is contained in:
yixu
2025-10-03 21:25:49 +08:00
parent f9a8716262
commit e195570435
3 changed files with 26 additions and 8 deletions

View File

@@ -360,6 +360,11 @@ watch(() => lotteryShow.value, async (newVal) => {
initUserGameInfos(true, true);
}, { immediate: true })
import Popup from './Popup.vue'
const isPopupVisible = ref(false);
const navigatePopupPage = () => {
isPopupVisible.value = true;
}
</script>
<template>
@@ -393,8 +398,7 @@ watch(() => lotteryShow.value, async (newVal) => {
<p class="lottery-value">{{ globalStore.draw_chances }}</p>
</div>
</div>
<div class="scene-item item-2" @click="navigateSelectTemplatePage"
:class="{ 'disabled': globalStore.game_chances <= 0 }">
<div class="scene-item item-2" @click="navigatePopupPage">
<img src="../assets/images/join.webp" alt="立即参与">
<div class="join-main">
<p class="join-value">{{ globalStore.game_chances }}</p>
@@ -431,6 +435,7 @@ watch(() => lotteryShow.value, async (newVal) => {
<PhotoSquare @go-my-photo="showMyPhoto" v-model:show="isPhotoSquareVisible" />
<Login :show="loginShow" @login-success="handleLoginSuccess" />
<Lottery :show="lotteryShow" @close="lotteryShow = false" :type="lotteryType" :data="lotteryNoticeData"></Lottery>
<Popup v-model:show="isPopupVisible" />
</template>
<style scoped>