From 6f674a4df6762f1b9f3924678373f40aa25b716e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Fri, 12 Dec 2025 20:19:14 +0800 Subject: [PATCH] Update talk.vue --- src/pages/sparring/talk.vue | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/pages/sparring/talk.vue b/src/pages/sparring/talk.vue index 7e3e21c4..57d1285f 100644 --- a/src/pages/sparring/talk.vue +++ b/src/pages/sparring/talk.vue @@ -51,7 +51,7 @@ traInterTyp: '', execId: '', sceneDesc: '', - preview: false, // 是否是预览 + isPreview: '', // 是否是预览 traInterTypDesc: '', // 类型的文字提示,例如 语音通话 ossAddr: '', //用户头像 chaName: '' //用户名称 @@ -86,16 +86,20 @@ if (type <= 2) { nextTick(() => { setTimeout(() => { - common.redirectTo( - '/pages/sparring/result?isOver=1&traId=' + - dataInfo.traId + - '&execId=' + - dataInfo.execId + - '&type=' + - dataInfo.traType + - '&isPreview=' + - (dataInfo.isPreview ? '1' : '') - ); + if(dataInfo.execId) { + common.redirectTo( + '/pages/sparring/result?isOver=1&traId=' + + dataInfo.traId + + '&execId=' + + dataInfo.execId + + '&type=' + + dataInfo.traType + + '&isPreview=' +dataInfo.isPreview + ); + } else { + common.navigateBack() + } + }, 300); }); } @@ -213,8 +217,7 @@ // 只有app才能打开摄像头 isVideo.value = dataInfo.traInterTyp === '03'; //#endif - console.log('isVideo.value', isVideo.value); - dataInfo.preview = e.isPreview === '1'; // 是否是预览 + dataInfo.isPreview = e.isPreview || ''; // 是否是预览 const pageData = common.getPageCache('tipMsgsceneDesc'); dataInfo.ossAddr = pageData.ossAddr; dataInfo.chaName = pageData.chaName;