This commit is contained in:
yixu
2025-12-19 11:49:19 +08:00
parent 258e14e27c
commit 82e25179a2
9 changed files with 3 additions and 407 deletions

View File

@@ -1,7 +1,5 @@
<script setup>
import { Request, Storage } from "../libs/utils"
import ModalTransition from "./ModalTransition.vue"
import { globalStore } from "../globalstore.js";
defineProps({
show: false

View File

@@ -37,8 +37,6 @@ const props = defineProps({
const emit = defineEmits(['close'])
// const emit = defineEmits(['update:show'])
// Lottery 相关状态
const lotteryShow = ref(false)
const lotteryType = ref('draw')
@@ -51,10 +49,6 @@ const circularArea = ref({
size: '25vw' // 可配置:圆形区域的大小
})
// const handleGoHome = () => {
// emit('update:show', false)
// }
const handleGoBack = () => {
emit('close')
}

View File

@@ -60,7 +60,6 @@ import ModalTransition from "./ModalTransition.vue"
import confetti from "canvas-confetti";
import { Request, Sleep } from "../libs/utils"
import { globalStore } from "@/globalstore";
import getUserPicture from "../libs/getUserPicture";
const navigatePopupMore = () => {
globalToastEvent.emit(ToastType.SHOW_POPUPMORE)

View File

@@ -1,159 +0,0 @@
<script setup>
import { Request, Storage } from "../libs/utils"
import ModalTransition from "./ModalTransition.vue"
import { globalStore } from "../globalstore.js";
import { ElMessage } from 'element-plus';
defineProps({
show: false
})
const emit = defineEmits(['update:show']);
const cancelBtn = () => {
emit('update:show', false);
}
const confirmBtn = () => {
fetch(`https://huodong2.lzlj.com/api/faceFamily/face/publish/${globalStore.mergeId}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: "application/json",
'Authorization': `Bearer ${Storage.get("userinfos").api_token}`
},
body: {}
})
.then(async response => {
const data = await response.json()
if (response.status == 200 || response.status == 201) {
if (data.message === '您已经有一张发布的照片,不能再次发布') {
weui.alert('您已经有一张发布的照片,不能再次发布')
return
}
ElMessage.success('打榜成功!');
console.log('Success:', data);
return { success: true, data };
} else {
ElMessage.error(data.message);
}
})
.catch((error) => {
ElMessage.error('打榜失败!');
return { success: false, error };
});
emit('update:show', false);
}
</script>
<template>
<ModalTransition class="popup" :show="show">
<div class="home-bg">
<div class="popup-bg">
<div class="scene-item item-1">
<img src="../assets/images/confirm.webp" @click="cancelBtn" alt="确认">
</div>
<p class="message">活动已结束</p>
<!-- <div class="scene-item item-2">
<img src="../assets/images/cancel.webp" @click="cancelBtn" alt="取消">
</div> -->
</div>
</div>
</ModalTransition>
</template>
<style scoped>
.home-bg {
position: absolute;
top: 60vw;
left: 12vw;
}
.message {
width: 60vw;
position: absolute;
top: 42%;
color: #774107;
text-align: center;
}
.popup-bg {
width: 77vw;
height: 60vw;
background-image: url('../assets/images/popup.webp');
background-size: 100%;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
.scene-item {
position: absolute;
cursor: pointer;
transition: all 0.4s ease;
border-radius: 8px;
overflow: hidden;
border: 3px solid transparent;
animation: float 4s ease-in-out infinite;
}
.scene-item:hover {
transform: scale(1.05);
}
.btn-login {
text-align: center;
border-radius: 1vw;
background-color: #70b2e2;
margin-top: 4vw;
padding: 3vw;
color: #fff;
position: relative;
}
.item-1 {
top: 50vw;
width: 40vw;
}
.item-2 {
top: 50vw;
width: 40vw;
left: 0;
}
.scene-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.btn-login.disable {
opacity: .6;
}
.btn-login.subloading {
opacity: .6;
}
.btn-login.subloading::before {
content: "";
position: absolute;
border: .5vw solid #fff;
border-color: rgba(255, 255, 255, .8) transparent transparent transparent;
border-radius: 50%;
width: 3vw;
height: 3vw;
top: 30%;
left: calc(50% - 14vw);
animation: loginloading 1s linear infinite;
}
@keyframes loginloading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>

View File

@@ -1,14 +1,12 @@
<script setup>
import { isWeixinPlatform, miniJumpToScene, getMiniPageBtnHack } from "../libs/utils"
import ModalTransition from "./ModalTransition.vue"
import { globalStore } from "../globalstore.js";
defineProps({
show: false
})
const emit = defineEmits(['close'])
// const emit = defineEmits(['update:show']);
const cancelBtn = () => {
emit('close')

View File

@@ -27,7 +27,7 @@
</template>
<script setup>
import { ref, watch } from "vue"
import { ref } from "vue"
import { isWeixinPlatform, miniJumpToScene, getMiniPageBtnHack } from "../libs/utils"
import ModalTransition from "./ModalTransition.vue";
const props = defineProps({

View File

@@ -1,7 +1,7 @@
<script setup>
import { Request, Storage, generateQR } from "../libs/utils.js"
import { Storage, generateQR } from "../libs/utils.js"
import ModalTransition from "./ModalTransition.vue"
import { ref, onMounted, computed } from "vue"
import { ref, onMounted } from "vue"
import Haibao from "../libs/haibao.js"
import ruleBg from "../assets/images/new/rule-share.png"
import globalToastEvent, { ToastType } from '../globalToastEvent';
@@ -11,7 +11,6 @@ const props = defineProps({
})
const emit = defineEmits(['close'])
// const emit = defineEmits(['update:show'])
const gotoLottery = () => {
globalToastEvent.emit(ToastType.SHOW_LOTTERY);
}