修复练习不能分享的问题
This commit is contained in:
@@ -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="教练点评"
|
||||
|
||||
Reference in New Issue
Block a user