Update talk.vue

This commit is contained in:
田岩
2025-12-12 20:19:14 +08:00
parent 2c6904481e
commit 6f674a4df6
+16 -13
View File
@@ -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;