This commit is contained in:
yixu
2025-12-25 15:50:47 +08:00
parent f48082a5f9
commit f9c7f9c939
5 changed files with 31 additions and 37 deletions

View File

@@ -16,7 +16,7 @@ import todoListImg from '../assets/images/new/todolist-img.webp';
const props = defineProps({
show: false,
isFromTodoList: false
isFromHomePageList: false
})
watch(() => props.show, async (newVal) => {
@@ -36,12 +36,6 @@ const gameImgMap = {
game5: share5
}
// const haibaoBackgroundImg = computed(() => {
// const id = Number(props.gameSlideId) || 1;
// const img = gameImgMap[`game${id}`] || game1;
// return { backgroundImage: `url(${img})` };
// })
const cancelBtn = () => {
emit('close')
}
@@ -57,13 +51,13 @@ const handleHaibao = async () => {
const loading = weui.loading();
const img = gameImgMap[globalStore.game_id] || 'share1';
haibaoBackgroundImg.value = props.isFromTodoList ? { backgroundImage: `url(${todoListImg})` } : { backgroundImage: `url(${img})` };
haibaoBackgroundImg.value = props.isFromHomePageList ? { backgroundImage: `url(${todoListImg})` } : { backgroundImage: `url(${img})` };
const infos = Storage.get("userinfos")
const haibaoCover = new Haibao(1080, 2160);
haibaoCover.add(ruleBg, 0, 0)
const qrcode = await generateQR(`fromid=${infos.invite_code}&merge_id=${infos.mergeId}`, 200, 200);
const qrcode = await generateQR(`fromid=${infos.invite_code}`, 200, 200);
haibaoCover.add(qrcode, 742, 1870);
haibaoCover.draw().then(() => {