From 537f943409c78f87891ede6addd8990772bec6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 9 Dec 2025 15:21:39 +0800 Subject: [PATCH 1/4] =?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/tip.vue | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index 8eb377f0..c244c0be 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -323,17 +323,28 @@ } showModelComfirm.value = true; reconcatNum.value += 1; - // common - // .show('提示信息', '网络环境不稳定,请重试!', false, '', '确认') - // .then((res) => { - // overNow(() => { - // reconcatNum.value += 1; - // common.redirectTo(`/pages/index/dialog`); - // }); - // }) - // .finally(() => { - // showModelComfirm.value = false; - // }); + common + .show('提示信息', '网络环境不稳定,请重试!', false, '', '确认') + .then((res) => { + overNow(() => { + reconcatNum.value += 1; + // common.redirectTo(`/pages/index/dialog`); + socketStore?.closeSocket(); + common.navigateTo( + '/pages/sparring/result?isOver=1&traId=' + + traId.value + + '&execId=' + + execId.value + + '&type=' + + talkingType.value + + '&isPreview=' + + (isPreview.value ? '1' : '') + ); + }); + }) + .finally(() => { + showModelComfirm.value = false; + }); }); unref(SocketObj).on('message', (res) => { const { rtnCode, body, commond } = JSON.parse(res.data); From 46d1817a2703e22006526e27ac9083f0ffd63be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Tue, 9 Dec 2025 15:42:05 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E8=AF=AD=E9=9F=B3=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=92=AD=E6=94=BE=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/components/answer.vue | 11 ++++++++--- src/pages/sparring/components/question-preview.vue | 12 ++++++++---- .../sparring/components/talking-preview-item.vue | 11 ++++++++--- src/pages/sparring/result.vue | 6 ++++-- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/src/pages/sparring/components/answer.vue b/src/pages/sparring/components/answer.vue index c9ee8049..5df462ba 100644 --- a/src/pages/sparring/components/answer.vue +++ b/src/pages/sparring/components/answer.vue @@ -5,13 +5,13 @@ - + - + @@ -229,6 +231,12 @@ const loading2 = ref(false) const loading3 = ref(false) const loading4 = ref(false) + const overLoading = computed(()=>{ + return !loading.value && !loading1.value && !loading2.value && !loading3.value && !loading4.value + }) + const showToast = () => { + common.msg('学习分析生成中,请稍后再试!') + } const getInfoNow = async (params) => { loading.value = true loading2.value = true @@ -440,6 +448,17 @@ .tabs-box { width: 600rpx; + height: 88rpx; + position: relative; + .tab-btn{ + position: absolute; + width: 600rpx; + height: 88rpx; + top: 0; + left: 0; + z-index: 23; + // background-color: #ccc; + } } .analytics-items {