update
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user