From f1f7d04e284ab6a609e48da1fd6e31734a7127eb Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 5 Jan 2026 16:42:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E5=B9=B4=E6=B4=BB=E5=8A=A8):=20?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=BC=B9=E7=AA=97=E7=BB=9F=E4=B8=80=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=90=8C=E4=B8=AA=E6=96=B9=E6=B3=95=EF=BC=8C=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E6=89=93=E5=BC=80=E5=89=8D=E5=85=B3=E9=97=AD=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Activities/NewYear/index.vue | 27 ++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/views/Activities/NewYear/index.vue b/src/views/Activities/NewYear/index.vue index 30f7159..8194a08 100644 --- a/src/views/Activities/NewYear/index.vue +++ b/src/views/Activities/NewYear/index.vue @@ -62,7 +62,7 @@ :src="imageUrl(getImgName('rulesBt'))" alt="" style="display: block; width: 25vw" - @click="ruleShow = true" + @click="openPopup('rule')" /> @@ -512,7 +512,7 @@ :src="imageUrl(getImgName('historyBt'))" alt="" style="width: 15vw; position: absolute; top: 18vw; right: 4vw" - @click="historyShow = true" + @click="openPopup('history')" /> @@ -958,7 +958,7 @@ src="/src/assets/icon/helpWhite.png" alt="" class="ruleBt" - @click="helpShow = true" + @click="openPopup('help')" />
{ } } +// 打开弹窗 +const openPopup = (type) => { + closedPopup() //先关闭其他弹窗 + switch (type) { + case 'result': + resultShow.value = true + break + case 'help': + helpShow.value = true + break + case 'history': + historyShow.value = true + break + case 'rule': + ruleShow.value = true + break + } +} + // 关闭弹窗 const closedPopup = () => { resultShow.value = false @@ -2176,7 +2195,7 @@ const sweepstakes = async (consecutive = 1) => { } } getDrawRecords() // 获取中奖记录 - resultShow.value = true + openPopup('result') //打开中奖结果弹窗 isRolling.value = false } catch (error) { isRolling.value = false