fix
This commit is contained in:
@@ -338,9 +338,7 @@ globalToastEvent.on(ToastType.SHOW_LOTTERY, () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
watch(() => lotteryShow.value, async (newVal) => {
|
watch(() => lotteryShow.value, async (newVal) => {
|
||||||
if (newVal) {
|
initUserGameInfos(true, true)
|
||||||
initUserGameInfos(true, true)
|
|
||||||
}
|
|
||||||
}, { immediate: true })
|
}, { immediate: true })
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ onUnmounted(() => {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
top: -14vw;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -393,6 +393,7 @@ const getBackgroundImage = (item) => {
|
|||||||
font-size: 3vw;
|
font-size: 3vw;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 4vw;
|
padding: 0 4vw;
|
||||||
|
left: 2vw;
|
||||||
}
|
}
|
||||||
.flex-container {
|
.flex-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -129,42 +129,37 @@ const openHaibao = async (e) => {
|
|||||||
url.searchParams.append('my_only', '1');
|
url.searchParams.append('my_only', '1');
|
||||||
url.searchParams.append('page', '1');
|
url.searchParams.append('page', '1');
|
||||||
url.searchParams.append('per_page', '100');
|
url.searchParams.append('per_page', '100');
|
||||||
if (!globalStore.result_url && !mergeId) {
|
fetch(url.toString(), {
|
||||||
fetch(url.toString(), {
|
method: 'GET',
|
||||||
method: 'GET',
|
headers: {
|
||||||
headers: {
|
'Authorization': `Bearer ${Storage.get("userinfos").api_token}`
|
||||||
'Authorization': `Bearer ${Storage.get("userinfos").api_token}`
|
}
|
||||||
|
})
|
||||||
|
.then(async response => {
|
||||||
|
const data = await response.json()
|
||||||
|
if (response.status == 200 || response.status == 201) {
|
||||||
|
const foundItem = data.data.find(item => item.is_public === true);
|
||||||
|
if (foundItem) {
|
||||||
|
globalStore.result_url = foundItem.result_url;
|
||||||
|
mergeId = foundItem.id;
|
||||||
|
haibaoShow.value = true
|
||||||
|
|
||||||
|
if (!globalStore.first_share_today) {
|
||||||
|
Request(`face/share/${mergeId}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
handleHaibao()
|
||||||
|
} else {
|
||||||
|
return weui.alert("请先参与活动合成图片并打榜!")
|
||||||
|
}
|
||||||
|
return { success: true, data };
|
||||||
|
} else {
|
||||||
|
ElMessage.error(data.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(async response => {
|
.catch((error) => {
|
||||||
const data = await response.json()
|
return { success: false, error };
|
||||||
if (response.status == 200 || response.status == 201) {
|
});
|
||||||
const foundItem = data.data.find(item => item.is_public === true);
|
|
||||||
if (foundItem) {
|
|
||||||
globalStore.result_url = foundItem.result_url;
|
|
||||||
mergeId = foundItem.id;
|
|
||||||
haibaoShow.value = true
|
|
||||||
|
|
||||||
if (!globalStore.first_share_today) {
|
|
||||||
Request(`face/share/${mergeId}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
handleHaibao()
|
|
||||||
} else {
|
|
||||||
return weui.alert("请先参与活动合成图片并打榜!")
|
|
||||||
}
|
|
||||||
return { success: true, data };
|
|
||||||
} else {
|
|
||||||
ElMessage.error(data.message);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
return { success: false, error };
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
haibaoShow.value = true
|
|
||||||
handleHaibao()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
const openPeifang = (e) => {
|
const openPeifang = (e) => {
|
||||||
const target = e.currentTarget
|
const target = e.currentTarget
|
||||||
|
|||||||
Reference in New Issue
Block a user