分享功能优化

This commit is contained in:
kron
2025-06-21 21:40:31 +08:00
parent a9f4f22622
commit 70ddea8ff4
7 changed files with 123 additions and 43 deletions

View File

@@ -4,6 +4,7 @@ import IconButton from "@/components/IconButton.vue";
import SButton from "@/components/SButton.vue";
import ScreenHint from "@/components/ScreenHint.vue";
import BowData from "@/components/BowData.vue";
import { wxShare } from "@/util";
const props = defineProps({
show: {
type: Boolean,
@@ -25,10 +26,6 @@ const props = defineProps({
type: Object,
default: () => ({}),
},
dataType: {
type: Number,
default: 0,
},
});
const showPanel = ref(true);
const showComment = ref(false);
@@ -42,11 +39,6 @@ const closePanel = () => {
setTimeout(() => {
showPanel.value = true;
}, 300);
const toSharePage = () => {
uni.navigateTo({
url: `image-share?id=${props.result.id}&type=${props.dataType}`,
});
};
</script>
<template>
@@ -93,11 +85,7 @@ const toSharePage = () => {
</view>
</view>
<view>
<IconButton
name="分享"
src="../static/share.png"
:onClick="toSharePage"
/>
<IconButton name="分享" src="../static/share.png" :onClick="wxShare" />
<IconButton
name="教练点评"
src="../static/review.png"