This commit is contained in:
xiaoaojiao
2025-12-26 19:56:15 +08:00
parent b823be82a7
commit 8c3b07a7bd
3 changed files with 42 additions and 17 deletions

View File

@@ -264,9 +264,9 @@ const handleRule = () => {
globalToastEvent.emit(ToastType.SHOW_RULE)
}
const handleLottery = () => {
if (globalStore.draw_chances <= 0) {
return weui.alert("还没有抽奖机会,快去参加活动吧")
};
// if (globalStore.draw_chances <= 0) {
// return weui.alert("还没有抽奖机会,快去参加活动吧")
// };
lotteryType.value = 'draw'
lotteryNoticeData.value = null
globalToastEvent.emit(ToastType.SHOW_LOTTERY);
@@ -451,6 +451,10 @@ const handleAddress = (id) => {
addressShow.value = true
}
globalToastEvent.on(ToastType.SHOW_ADDRESS,(id)=>{
handleAddress(id)
})
</script>
<template>

View File

@@ -1,5 +1,9 @@
<script setup>
import { isWeixinPlatform, miniJumpToScene, getMiniPageBtnHack } from "../libs/utils"
import {ref} from 'vue'
import { isWeixinPlatform, getMiniPageBtnHack } from "../libs/utils"
const sanchongURL = '/pages/retail-act/landing-page/ordinary?id=943829622103607910&orgId=200282401019674482&programId=84796583983972352'
const sanchongHtml = ref('')
sanchongHtml.value = getMiniPageBtnHack(sanchongURL)
import ModalTransition from "./ModalTransition.vue"
defineProps({
@@ -13,14 +17,14 @@ const cancelBtn = () => {
}
const startNow = () => {
if (isWeixinPlatform()) {
weui.alert("2026年1月1日正式开启")
return;
//TODO 上限更换
// miniJumpToScene()
} else {
weui.alert("请前往「泸州老窖会员中心」小程序进行查询")
}
// if (isWeixinPlatform()) {
// weui.alert("2026年1月1日正式开启")
// return;
// //TODO 上限更换
// } else {
// weui.alert("请前往「泸州老窖会员中心」小程序进行查询")
// }
}
</script>
@@ -33,9 +37,7 @@ const startNow = () => {
</div>
</div>
<div class="scene-item item-2">
<img src="../assets/images/new/start-now.webp" @click="startNow" alt="立即参与">
</div>
<div class="scene-item item-2" @click="startNow"></div>
<div class="scene-item item-3">
<img src="../assets/images/new/close-btn.webp" @click="cancelBtn" alt="关闭">
</div>
@@ -51,6 +53,7 @@ const startNow = () => {
background-repeat: no-repeat;
background-size: 100%;
}
.home-wrapper {
width: 100vw;
height: 217vw;
@@ -65,19 +68,23 @@ const startNow = () => {
min-height: -webkit-fill-available;
/* animation: rotate-bg 10s linear infinite; */
}
@keyframes rotate-bg {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.home-bg {
position: absolute;
top: 0;
left: 0;
}
.message {
width: 60vw;
position: absolute;
@@ -85,6 +92,7 @@ const startNow = () => {
color: #774107;
text-align: center;
}
.popup-bg {
width: 100vw;
height: 204vw;
@@ -97,6 +105,7 @@ const startNow = () => {
align-items: center;
position: relative;
}
.scene-item {
position: absolute;
cursor: pointer;
@@ -110,6 +119,7 @@ const startNow = () => {
.scene-item:hover {
transform: scale(1.05);
}
.btn-login {
text-align: center;
border-radius: 1vw;
@@ -119,18 +129,22 @@ const startNow = () => {
color: #fff;
position: relative;
}
.item-1 {
top: 18vw;
width: 86vw;
}
.item-2 {
top: 147vw;
width: 46vw;
}
.item-3 {
top: 162vw;
top: 168vw;
width: 12vw;
}
.scene-item img {
width: 100%;
height: 100%;
@@ -138,6 +152,13 @@ const startNow = () => {
display: block;
}
.item-2 {
background: url("../assets/images/new/start-now.webp") no-repeat;
background-size: 100%;
width: 62.685185vw;
height: 20.462963vw;
}
.btn-login.disable {
opacity: .6;
}

View File

@@ -47,7 +47,7 @@ const userhaibaoCover = computed(() => {
})
const openHaibao = async (e) => {
if (this.globalStore.inviteCount >= this.globalStore.MAX_INVITE_DAILY) {
if (globalStore.inviteCount >= globalStore.MAX_INVITE_DAILY) {
return;
}
globalToastEvent.emit(ToastType.SHOW_SHAREPAGE, true);