debug模式隐藏
This commit is contained in:
parent
d010edfeba
commit
bacf91a994
@ -78,6 +78,14 @@ onMounted(() => {
|
||||
|
||||
clockAni();
|
||||
});
|
||||
|
||||
const vcNum = ref(false);
|
||||
const showVC = () => {
|
||||
vcNum.value++;
|
||||
if (vcNum.value >= 20) {
|
||||
gsap.set("#__vconsole", { autoAlpha: 1 });
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -91,7 +99,7 @@ onMounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
<div class="index-container">
|
||||
<div class="index-title"></div>
|
||||
<div class="index-title" @click="showVC"></div>
|
||||
<div class="index-rule-btn" @click="showRule($event)"></div>
|
||||
<div
|
||||
class="index-prize-btn"
|
||||
@ -154,7 +162,7 @@ onMounted(() => {
|
||||
transform: translateY(-50%);
|
||||
|
||||
.index-title {
|
||||
pointer-events: none;
|
||||
// pointer-events: none;
|
||||
@include pos(552px, 131px, 101px, 331px);
|
||||
@include bg_pos("index/title.png");
|
||||
}
|
||||
|
||||
@ -19,7 +19,13 @@ import MyPrize from "@/components/MyPrize";
|
||||
import Draw from "@/components/Draw";
|
||||
import Result from "@/components/Result";
|
||||
import Rule from "@/components/Rule";
|
||||
import { createBGM, getQueryString, screenOrientation, isAndriod,fontAdpat } from "@/plugins";
|
||||
import {
|
||||
createBGM,
|
||||
getQueryString,
|
||||
screenOrientation,
|
||||
isAndriod,
|
||||
fontAdpat,
|
||||
} from "@/plugins";
|
||||
import { authorize, getUserInfo } from "@/api";
|
||||
import { Toast } from "vant";
|
||||
import { useMainStore } from "@/store";
|
||||
@ -166,8 +172,6 @@ onMounted(() => {
|
||||
forbidClick: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -184,8 +188,7 @@ onMounted(() => {
|
||||
duration: 0,
|
||||
forbidClick: true,
|
||||
});
|
||||
return
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// 活动未开启:6002
|
||||
@ -196,7 +199,7 @@ onMounted(() => {
|
||||
icon: "flag-o",
|
||||
forbidClick: true,
|
||||
});
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
Toast.fail({
|
||||
@ -204,30 +207,19 @@ onMounted(() => {
|
||||
duration: 0,
|
||||
forbidClick: true,
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
} else {
|
||||
showLoad.value = true;
|
||||
createBGM();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
const playMusic = () => {
|
||||
if(isAndriod){
|
||||
var audioEle = document.getElementById("audio");
|
||||
audioEle.play();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" >
|
||||
@ -236,6 +228,10 @@ const playMusic = () => {
|
||||
background: linear-gradient(135deg, #f6d365, #fda085);
|
||||
}
|
||||
|
||||
#__vconsole {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#musicBtn {
|
||||
@include pos(60px, 60px, 80px, 40px);
|
||||
z-index: 99;
|
||||
|
||||
@ -26,11 +26,11 @@ wxShare({
|
||||
// 测试环境开vconsole
|
||||
if (import.meta.env.VITE_MODE != 'dev') {
|
||||
const vConsole = new VConsole();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
app.use(createPinia())
|
||||
app.mount('#app')
|
||||
console.log('Mode:', import.meta.env.VITE_MODE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user