Merge branch 'feat-vip' into test

This commit is contained in:
2026-06-25 18:16:54 +08:00
13 changed files with 351 additions and 52 deletions
+14 -2
View File
@@ -39,6 +39,7 @@ const practiseId = ref("");
const showGuide = ref(false);
const tips = ref("");
const targetType = ref(1);
const sharing = ref(false);
onLoad((options) => {
if (options.target) {
@@ -116,8 +117,19 @@ async function onComplete() {
}
const onClickShare = debounce(async () => {
await sharePractiseData("shareCanvas", 2, user.value, practiseResult.value);
await wxShare("shareCanvas");
if (sharing.value) return;
sharing.value = true;
try {
await sharePractiseData("shareCanvas", 2, user.value, practiseResult.value);
await wxShare("shareCanvas");
} catch (e) {
uni.showToast({
title: "海报生成失败,请稍后重试",
icon: "none",
});
} finally {
sharing.value = false;
}
});
function onAudioEnded(s) {