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

View File

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

View File

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