This commit is contained in:
yixu
2025-09-23 15:46:46 +08:00
parent 90558bb56b
commit 414d2ae8b0
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref, computed, watch, onMounted } from "vue" import { ref, computed, watch, onMounted } from "vue"
import { useRouter, useRoute } from 'vue-router' import { useRouter, useRoute } from 'vue-router'
import faceFamily from "../assets/audio/faceFamily.mp3" import bgm from "../assets/audio/bgm.mp3"
import backgroundVideo from "../assets/video/1_stab_chf3_rhea1.mp4" import backgroundVideo from "../assets/video/1_stab_chf3_rhea1.mp4"
import MyPhoto from './MyPhoto.vue' import MyPhoto from './MyPhoto.vue'
import PhotoSquare from './PhotoSquare.vue' import PhotoSquare from './PhotoSquare.vue'
@@ -26,7 +26,7 @@ const lotteryType = ref("draw")
// 初始化全局音频实例 // 初始化全局音频实例
const initGlobalAudio = () => { const initGlobalAudio = () => {
if (!globalStore.globalAudio) { if (!globalStore.globalAudio) {
globalStore.globalAudio = new Audio(faceFamily); globalStore.globalAudio = new Audio(bgm);
globalStore.globalAudio.loop = true; // 设置循环播放 globalStore.globalAudio.loop = true; // 设置循环播放
globalStore.globalAudio.preload = 'auto'; globalStore.globalAudio.preload = 'auto';

View File

@@ -10,7 +10,7 @@
v-show="activePrizeData.prize_code !== 'NO'"></div> v-show="activePrizeData.prize_code !== 'NO'"></div>
<div class="lottery-desc" v-show="props.type === 'notice'">在刚刚结束的打榜活动中成功斩获<br /><strong>[30]</strong></div> <div class="lottery-desc" v-show="props.type === 'notice'">在刚刚结束的打榜活动中成功斩获<br /><strong>[30]</strong></div>
<div class="lottery-image" :class="'USER_' + activePrizeData.prize_code" ref="lotteryImageRef"></div> <div class="lottery-image" :class="'USER_' + activePrizeData.prize_code" ref="lotteryImageRef"></div>
<div class="lottery-name" v-show="activePrizeData.prize_code !== 'NO'">{{ activePrizeData.name }}</div> <div class="lottery-name" v-show="activePrizeData.prize_code !== 'NO'">{{ activePrizeData.prize_name }}</div>
<div class="lottery-btngroup" v-show="btngroupShow"> <div class="lottery-btngroup" v-show="btngroupShow">
<div class="btn-more" @click="handleBtnMore"></div> <div class="btn-more" @click="handleBtnMore"></div>
<div class="btn-kaixin" @click="handleLotteryAction" v-if="activePrizeData.prize_code !== 'NO'"></div> <div class="btn-kaixin" @click="handleLotteryAction" v-if="activePrizeData.prize_code !== 'NO'"></div>
@@ -317,7 +317,7 @@ onUnmounted(() => {
bottom: 18vw; bottom: 18vw;
text-align: center; text-align: center;
width: 100%; width: 100%;
font-size: 6vw; font-size: 5vw;
font-weight: 700; font-weight: 700;
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
text-shadow: text-shadow: