feat(斋月活动页): 补充弹窗完整

This commit is contained in:
hzj 2026-02-10 10:40:06 +08:00
parent 83abdf7db0
commit 4cf65bb119

View File

@ -101,6 +101,15 @@
:imgUrl="imageUrl('overallRankingBg')" :imgUrl="imageUrl('overallRankingBg')"
:contentStyle="`inset: 15vw 4vw 5vw;flex-direction: column;`" :contentStyle="`inset: 15vw 4vw 5vw;flex-direction: column;`"
> >
<!-- 前三规则按钮 -->
<img
v-smart-img
:src="imageUrl('historyBt')"
alt=""
style="width: 6vw; position: absolute; z-index: 2; top: 4vw; right: 2vw"
@click="openPopup('top3Help')"
/>
<!-- 第一 --> <!-- 第一 -->
<div style="display: flex; justify-content: center"> <div style="display: flex; justify-content: center">
<TopUser <TopUser
@ -242,6 +251,15 @@
</div> </div>
</div> </div>
<!-- 排行榜规则按钮 -->
<img
v-smart-img
:src="imageUrl('historyBt')"
alt=""
style="width: 6vw; position: absolute; z-index: 2; top: 19vw; right: 7vw"
@click="openPopup('rankingHelp')"
/>
<!-- 排行榜前10名(带奖励) --> <!-- 排行榜前10名(带奖励) -->
<div <div
v-for="(listItem, index) in RankingHasTop10" v-for="(listItem, index) in RankingHasTop10"
@ -1047,7 +1065,7 @@
src="/src/assets/icon/helpWhite.png" src="/src/assets/icon/helpWhite.png"
alt="" alt=""
class="ruleBt" class="ruleBt"
@click="openPopup('help')" @click="openPopup('withdrawalHelp')"
/> />
<!-- 名称 --> <!-- 名称 -->
<div <div
@ -1716,20 +1734,45 @@
</itemCenter> </itemCenter>
</div> </div>
<!-- help弹窗 --> <!-- 排行榜帮助弹窗 -->
<div v-show="helpShow" @click.stop> <div v-show="rankingHelpShow" @click.stop>
<itemCenter <itemCenter
:imgUrl="imageUrl('helpBg_ar')" :imgUrl="imageUrl('rankingHelpBg_ar')"
:contentStyle="`inset: 26vw 6vw 13vw;overflow-y: auto;display:block;`" :contentStyle="`inset: 26vw 6vw 13vw;overflow-y: auto;display:block;`"
> >
<img <img
v-smart-img v-smart-img
:src="imageUrl(getImgName('helpInfo'))" :src="imageUrl(getImgName('rankingHelpInfo'))"
alt="" alt=""
style="display: block; width: 100%; object-fit: cover; margin-bottom: 6vw" style="display: block; width: 100%; object-fit: cover; margin-bottom: 6vw"
/> />
</itemCenter> </itemCenter>
</div> </div>
<!-- 总榜前三规则弹窗 -->
<div v-show="top3HelpShow" @click.stop>
<itemCenter
:imgUrl="imageUrl('top3HelpBg_ar')"
:contentStyle="`inset: 26vw 6vw 13vw;overflow-y: auto;display:block;`"
>
<img
v-smart-img
:src="imageUrl(getImgName('top3HelpInfo'))"
alt=""
style="display: block; width: 100%; object-fit: cover; margin-bottom: 6vw"
/>
</itemCenter>
</div>
<!-- 兑换规则弹窗 -->
<div v-show="withdrawalHelpShow" @click.stop>
<img
v-smart-img
:src="imageUrl(getImgName('withdrawalHelp'))"
alt=""
style="display: block; width: 100%; object-fit: cover; margin-bottom: 6vw"
/>
</div>
</div> </div>
</maskLayer> </maskLayer>
</div> </div>
@ -1813,12 +1856,22 @@ const Second = ref(0)
let timer = null let timer = null
// //
const helpShow = ref(false) // const rankingHelpShow = ref(false) //
const top3HelpShow = ref(false) //
const withdrawalHelpShow = ref(false) //
const resultShow = ref(false) // const resultShow = ref(false) //
const historyShow = ref(false) // const historyShow = ref(false) //
const topRewardShow = ref(false) // const topRewardShow = ref(false) //
const maskLayerShow = computed(() => { const maskLayerShow = computed(() => {
return helpShow.value || resultShow.value || historyShow.value || topRewardShow.value return (
rankingHelpShow.value ||
top3HelpShow.value ||
withdrawalHelpShow.value ||
resultShow.value ||
historyShow.value ||
topRewardShow.value
)
}) })
// //
@ -2127,12 +2180,18 @@ const exchangeCoinBt = async () => {
const openPopup = (type) => { const openPopup = (type) => {
closedPopup(false) // closedPopup(false) //
switch (type) { switch (type) {
case 'rankingHelp':
rankingHelpShow.value = true
break
case 'top3Help':
top3HelpShow.value = true
break
case 'withdrawalHelp':
withdrawalHelpShow.value = true
break
case 'result': case 'result':
resultShow.value = true resultShow.value = true
break break
case 'help':
helpShow.value = true
break
case 'history': case 'history':
historyShow.value = true historyShow.value = true
break break
@ -2146,8 +2205,10 @@ const openPopup = (type) => {
// //
const closedPopup = (clear = true) => { const closedPopup = (clear = true) => {
rankingHelpShow.value = false
top3HelpShow.value = false
withdrawalHelpShow.value = false
resultShow.value = false resultShow.value = false
helpShow.value = false
historyShow.value = false historyShow.value = false
topRewardShow.value = false topRewardShow.value = false
if (clear) { if (clear) {