This commit is contained in:
yixu
2025-09-15 17:24:55 +08:00
parent 74ea2e77ca
commit e9d3c17262

View File

@@ -39,6 +39,7 @@ const props = defineProps({
show: false, show: false,
}) })
let mergeId = ''
const emit = defineEmits(['close', 'open']) const emit = defineEmits(['close', 'open'])
const shareShow = ref(false) const shareShow = ref(false)
const qiweiShow = ref(false) const qiweiShow = ref(false)
@@ -49,8 +50,6 @@ const userhaibaoCover = computed(() => {
return { backgroundImage: `url(${userHaibaoUrl.value})` } return { backgroundImage: `url(${userHaibaoUrl.value})` }
}) })
const handleHaibao = async () => { const handleHaibao = async () => {
if (haibaoUrl.value) { if (haibaoUrl.value) {
return return
@@ -70,7 +69,7 @@ const handleHaibao = async () => {
userHaibaoUrl.value = url userHaibaoUrl.value = url
const haibaoSave = new Haibao(1080, 2160) const haibaoSave = new Haibao(1080, 2160)
const qrcode = await generateQR(`fromid=${infos.invite_code}&org_id=${infos.org_id}`, 200, 200) const qrcode = await generateQR(`fromid=${infos.invite_code}&org_id=${infos.org_id}&merge_id=${mergeId}}`, 200, 200)
haibaoSave.add(bg, 0, 0) haibaoSave.add(bg, 0, 0)
haibaoSave.add(url, 64, 250) haibaoSave.add(url, 64, 250)
haibaoSave.add(qrcode, 115, 1875) haibaoSave.add(qrcode, 115, 1875)
@@ -136,6 +135,7 @@ const openHaibao = (e) => {
const foundItem = data.data.find(item => item.is_public === true); const foundItem = data.data.find(item => item.is_public === true);
if (foundItem) { if (foundItem) {
globalStore.result_url = foundItem.result_url; globalStore.result_url = foundItem.result_url;
mergeId = foundItem.id;
haibaoShow.value = true haibaoShow.value = true
handleHaibao() handleHaibao()
} else { } else {