修复练习不能分享的问题

This commit is contained in:
kron
2025-11-11 10:13:14 +08:00
parent 81ab085e48
commit dfc62c7e3f
9 changed files with 60 additions and 128 deletions

View File

@@ -5,7 +5,6 @@ import SButton from "@/components/SButton.vue";
import ScreenHint from "@/components/ScreenHint.vue";
import BowData from "@/components/BowData.vue";
import UserUpgrade from "@/components/UserUpgrade.vue";
import { wxShare } from "@/util";
import { directionAdjusts } from "@/constants";
import useStore from "@/store";
import { storeToRefs } from "pinia";
@@ -45,6 +44,9 @@ const closePanel = () => {
props.onClose();
}, 300);
};
function onClickShare() {
uni.$emit("share-image");
}
onMounted(() => {
if (props.result.lvl > user.value.lvl) {
showUpgrade.value = true;
@@ -58,9 +60,6 @@ onMounted(() => {
finished.value =
props.result.arrows && props.result.arrows.length === props.total;
});
// setTimeout(() => {
// showPanel.value = true;
// }, 300);
</script>
<template>
@@ -100,7 +99,7 @@ onMounted(() => {
<IconButton
name="分享"
src="../static/share.png"
:onClick="wxShare"
:onClick="onClickShare"
/>
<IconButton
name="教练点评"