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
@@ -38,6 +38,7 @@ const practiseResult = ref({});
const practiseId = ref("");
const showGuide = ref(false);
const targetType = ref(1);
const sharing = ref(false);
onLoad((options) => {
if (options.target) {
@@ -131,8 +132,19 @@ async function onComplete() {
}
const onClickShare = debounce(async () => {
await sharePractiseData("shareCanvas", 3, user.value, practiseResult.value);
await wxShare("shareCanvas");
if (sharing.value) return;
sharing.value = true;
try {
await sharePractiseData("shareCanvas", 3, user.value, practiseResult.value);
await wxShare("shareCanvas");
} catch (e) {
uni.showToast({
title: "海报生成失败,请稍后重试",
icon: "none",
});
} finally {
sharing.value = false;
}
});
onMounted(async () => {