From 584f2a9711d828c8d47c0103c3e919fbbe8b2b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 25 Nov 2025 16:38:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/result.vue | 10 ++++++++++ src/pages/sparring/tip.vue | 7 ++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/pages/sparring/result.vue b/src/pages/sparring/result.vue index 5d262aa4..a466503c 100644 --- a/src/pages/sparring/result.vue +++ b/src/pages/sparring/result.vue @@ -75,6 +75,8 @@ + + @@ -102,6 +104,11 @@ import { partnerChatReport } from "@/api/sparring.js" + import badge from '@/components/points-and-badge/badge'; + import points from '@/components/points-and-badge/points'; + import usePointsAndBadge from '@/components/points-and-badge/usePointsAndBadge'; + + const { pointAndBadgesRun, badgeRef, pointsRef } = usePointsAndBadge(); const traId = ref('') const execId = ref('') const talkingType = ref('') @@ -240,6 +247,9 @@ isLoading.value = false setTimeout(() => { showLoading.value = false + if(isPass.value){ + pointAndBadgesRun(isPreview.value ? '07': '08', '', ()=>{}) + } }, 800) } else { setTimeout(getData, 2000) diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index 37784c21..601e486c 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -423,9 +423,10 @@ watchFlag.value = 1; socketStore?.closeSocket(); changePlayItemId('') - pointAndBadgesRun(talkingType.value === '01'? '07': '08', null, ()=>{ - common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':'')) - }) + common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':'')) + // pointAndBadgesRun(talkingType.value === '01'? '07': '08', '', ()=>{ + // common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':'')) + // }) }) } })