update
This commit is contained in:
@@ -114,17 +114,40 @@ const openQiwei = (e) => {
|
||||
|
||||
qiweiShow.value = true
|
||||
}
|
||||
|
||||
const openHaibao = (e) => {
|
||||
const target = e.currentTarget
|
||||
|
||||
if (target.classList.contains("has")) {
|
||||
return
|
||||
}
|
||||
const url = new URL('https://huodong2.lzlj.com/api/faceFamily/face/square');
|
||||
url.searchParams.append('my_only', '1');
|
||||
url.searchParams.append('page', '1');
|
||||
url.searchParams.append('per_page', '100');
|
||||
if (!globalStore.result_url) {
|
||||
return weui.alert("请先参与活动合成图片并打榜!")
|
||||
fetch(url.toString(), {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${Storage.get("userinfos").api_token}`
|
||||
}
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const foundItem = data.data.find(item => item.is_public === true);
|
||||
if (foundItem) {
|
||||
globalStore.result_url = foundItem.result_url;
|
||||
haibaoShow.value = true
|
||||
handleHaibao()
|
||||
} else {
|
||||
return weui.alert("请先参与活动合成图片并打榜!")
|
||||
}
|
||||
return { success: true, data };
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Error:', error);
|
||||
return { success: false, error };
|
||||
});
|
||||
}
|
||||
haibaoShow.value = true
|
||||
handleHaibao()
|
||||
}
|
||||
const openPeifang = (e) => {
|
||||
const target = e.currentTarget
|
||||
|
||||
Reference in New Issue
Block a user