fix: avatar page
This commit is contained in:
@@ -666,6 +666,7 @@ const completeCardInfo = async (id) => {
|
||||
decorId: selectedDecor?.value?.id,
|
||||
frameId: selectedFrame?.value?.id,
|
||||
});
|
||||
return imageUrl;
|
||||
};
|
||||
|
||||
onShareAppMessage(async () => {
|
||||
@@ -677,17 +678,18 @@ onShareAppMessage(async () => {
|
||||
path: `/pages/index/index?shareToken=${shareTokenRes.shareToken}`,
|
||||
};
|
||||
}
|
||||
uni.showLoading({ title: "分享中...", mask: true });
|
||||
const id = createAvatarId();
|
||||
// const shareTokenRes = {
|
||||
// shareToken: "iFmK8WjRm6TK",
|
||||
// };
|
||||
const shareTokenRes = await getShareToken("avatar_download", id);
|
||||
completeCardInfo(id);
|
||||
const imageUrl = await completeCardInfo(id);
|
||||
uni.hideLoading();
|
||||
return {
|
||||
title: "制作我的新春头像",
|
||||
title: "我做了一个新头像,真的太好看了",
|
||||
path: `/pages/avatar/detail?shareToken=${shareTokenRes.shareToken}`,
|
||||
imageUrl:
|
||||
"https://file.lihailezzc.com/resource/b48c41054c2633c478463ac1b1f1ca23.png", // 使用默认封面或 popularCards 的封面
|
||||
imageUrl, // 使用默认封面或 popularCards 的封面
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user