完成不同练习生成不同截图
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import { ref } from "vue";
|
||||
import IconButton from "@/components/IconButton.vue";
|
||||
import SButton from "@/components/SButton.vue";
|
||||
import ImageShare from "@/components/ImageShare.vue";
|
||||
import ScreenHint from "@/components/ScreenHint.vue";
|
||||
import BowData from "@/components/BowData.vue";
|
||||
const props = defineProps({
|
||||
@@ -26,10 +25,13 @@ const props = defineProps({
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
dataType: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
});
|
||||
const showPanel = ref(true);
|
||||
const showComment = ref(false);
|
||||
const showShare = ref(false);
|
||||
const showBowData = ref(false);
|
||||
const closePanel = () => {
|
||||
showPanel.value = false;
|
||||
@@ -40,6 +42,11 @@ const closePanel = () => {
|
||||
setTimeout(() => {
|
||||
showPanel.value = true;
|
||||
}, 300);
|
||||
const toSharePage = () => {
|
||||
uni.navigateTo({
|
||||
url: `image-share?id=${props.result.id}&type=${props.dataType}`,
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -89,7 +96,7 @@ setTimeout(() => {
|
||||
<IconButton
|
||||
name="分享"
|
||||
src="../static/share.png"
|
||||
:onClick="() => (showShare = true)"
|
||||
:onClick="toSharePage"
|
||||
/>
|
||||
<IconButton
|
||||
name="教练点评"
|
||||
@@ -99,7 +106,6 @@ setTimeout(() => {
|
||||
<SButton width="70vw" :rounded="30" :onClick="closePanel">完成</SButton>
|
||||
</view>
|
||||
</view>
|
||||
<ImageShare :show="showShare" :onClose="() => (showShare = false)" />
|
||||
<ScreenHint :show="showComment" :onClose="() => (showComment = false)">
|
||||
{{ result.adjustmentHint }}
|
||||
</ScreenHint>
|
||||
|
||||
Reference in New Issue
Block a user