update
This commit is contained in:
BIN
src/assets/images/new/prizelist-item-bg.webp
Normal file
BIN
src/assets/images/new/prizelist-item-bg.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
@@ -93,7 +93,7 @@ const handleItemBtn = (id, event) => {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-image: url("../assets/images/prizelist-item-bg.webp");
|
background-image: url("../assets/images/new/prizelist-item-bg.webp");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Storage, generateQR } from "../libs/utils.js"
|
import { Storage, generateQR } from "../libs/utils.js"
|
||||||
import ModalTransition from "./ModalTransition.vue"
|
import ModalTransition from "./ModalTransition.vue"
|
||||||
import { ref, onMounted } from "vue"
|
import { ref, watch } from "vue"
|
||||||
import Haibao from "../libs/haibao.js"
|
import Haibao from "../libs/haibao.js"
|
||||||
import ruleBg from "../assets/images/new/rule-share.png"
|
import ruleBg from "../assets/images/new/rule-share.png"
|
||||||
import globalToastEvent, { ToastType } from '../globalToastEvent';
|
import globalToastEvent, { ToastType } from '../globalToastEvent';
|
||||||
@@ -10,6 +10,13 @@ const props = defineProps({
|
|||||||
show: false,
|
show: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(() => props.show, async (newVal) => {
|
||||||
|
if (!newVal) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
openHaibao();
|
||||||
|
}, { immediate: true })
|
||||||
|
|
||||||
const emit = defineEmits(['close'])
|
const emit = defineEmits(['close'])
|
||||||
const gotoLottery = () => {
|
const gotoLottery = () => {
|
||||||
globalToastEvent.emit(ToastType.SHOW_LOTTERY);
|
globalToastEvent.emit(ToastType.SHOW_LOTTERY);
|
||||||
@@ -20,14 +27,10 @@ const cancelBtn = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 海报
|
// 海报
|
||||||
const haibaoShow = ref(false);
|
|
||||||
const haibaoUrl = ref('');
|
const haibaoUrl = ref('');
|
||||||
|
|
||||||
const openHaibao = (e) => {
|
const openHaibao = (e) => {
|
||||||
haibaoShow.value = true
|
|
||||||
handleHaibao()
|
handleHaibao()
|
||||||
}
|
}
|
||||||
onMounted(openHaibao)
|
|
||||||
|
|
||||||
const handleHaibao = async () => {
|
const handleHaibao = async () => {
|
||||||
const loading = weui.loading()
|
const loading = weui.loading()
|
||||||
|
|||||||
Reference in New Issue
Block a user