diff --git a/src/App.vue b/src/App.vue index 66bbe4d..d0c4558 100644 --- a/src/App.vue +++ b/src/App.vue @@ -138,4 +138,12 @@ button::after { animation: pumpIn 0.3s ease-out forwards; transform-origin: center center; } + +.share-canvas { + width: 302px; + height: 534px; + position: absolute; + top: -1000px; + left: 0; +} diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue index 6ccc413..7cea6de 100644 --- a/src/components/BowTarget.vue +++ b/src/components/BowTarget.vue @@ -206,6 +206,7 @@ function calcRealY(num) { .footer > image { width: 40px; min-height: 40px; + max-height: 40px; border-radius: 50%; } .container > text { diff --git a/src/components/ScoreResult.vue b/src/components/ScoreResult.vue index 78b0555..b8dc21f 100644 --- a/src/components/ScoreResult.vue +++ b/src/components/ScoreResult.vue @@ -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}`, - }); -};