From 70ddea8ff4459233e15acdcb9ee23d5b62889580 Mon Sep 17 00:00:00 2001 From: kron Date: Sat, 21 Jun 2025 21:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 +++ src/components/BowTarget.vue | 1 + src/components/ScoreResult.vue | 16 +---- src/pages/first-try.vue | 8 ++- src/pages/practise-one.vue | 8 ++- src/pages/practise-two.vue | 8 ++- src/util.js | 117 +++++++++++++++++++++++++++------ 7 files changed, 123 insertions(+), 43 deletions(-) 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}`, - }); -};