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