分享功能优化
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user