update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { Storage, generateQR } from "../libs/utils.js"
|
||||
import ModalTransition from "./ModalTransition.vue"
|
||||
import { ref, onMounted } from "vue"
|
||||
import { ref, watch } from "vue"
|
||||
import Haibao from "../libs/haibao.js"
|
||||
import ruleBg from "../assets/images/new/rule-share.png"
|
||||
import globalToastEvent, { ToastType } from '../globalToastEvent';
|
||||
@@ -10,6 +10,13 @@ const props = defineProps({
|
||||
show: false,
|
||||
})
|
||||
|
||||
watch(() => props.show, async (newVal) => {
|
||||
if (!newVal) {
|
||||
return
|
||||
}
|
||||
openHaibao();
|
||||
}, { immediate: true })
|
||||
|
||||
const emit = defineEmits(['close'])
|
||||
const gotoLottery = () => {
|
||||
globalToastEvent.emit(ToastType.SHOW_LOTTERY);
|
||||
@@ -20,14 +27,10 @@ const cancelBtn = () => {
|
||||
}
|
||||
|
||||
// 海报
|
||||
const haibaoShow = ref(false);
|
||||
const haibaoUrl = ref('');
|
||||
|
||||
const openHaibao = (e) => {
|
||||
haibaoShow.value = true
|
||||
handleHaibao()
|
||||
}
|
||||
onMounted(openHaibao)
|
||||
|
||||
const handleHaibao = async () => {
|
||||
const loading = weui.loading()
|
||||
|
||||
Reference in New Issue
Block a user