运营数据

This commit is contained in:
duoaohui
2026-06-06 11:18:31 +08:00
parent 2b036f4aa5
commit 2410f5e2e9
4 changed files with 105 additions and 13 deletions

View File

@@ -238,6 +238,12 @@ import {
minimizeCloudLawMeeting,
notifyCloudLawCallEnded
} from '@/utils/cloudLawMiniProgram'
import {
isCloudLawLawRoleInMeeting,
isCloudLawPcIframe,
notifyCloudLawBackendEnd,
notifyCloudLawParentCallEnded
} from '@/utils/cloudLawVoiceCall'
const meetingStore = useMeetingStore()
const userStore = useUserStore()
@@ -245,6 +251,7 @@ const userStore = useUserStore()
/** 云律律师端:工具栏用共享屏幕替换聊天 */
const cloudLawRole = ref('')
const cloudLawCallId = ref('')
const cloudLawApiBase = ref('')
const minimizingToMiniProgram = ref(false)
const replaceChatWithScreenShare = computed(() => String(cloudLawRole.value).toLowerCase() === 'law')
const showCloudLawBack = computed(() => isCloudLawEmbed() && isCloudLawLawRole(cloudLawRole.value))
@@ -848,6 +855,7 @@ let redirectingToJoin = false
onLoad((query) => {
cloudLawRole.value = query?.cloudLawRole || query?.cloud_law_role || ''
cloudLawCallId.value = query?.callId || query?.call_id || ''
cloudLawApiBase.value = query?.cloudLawApiBase || query?.cloud_law_api_base || ''
if (!cloudLawRole.value) {
// #ifdef H5
try {
@@ -899,6 +907,14 @@ onMounted(() => {
const reason = meetingStore.lastEndedReason
const label = MEETING_ENDED_REASON_LABEL?.[reason] || '会议已结束'
uni.showToast({ title: label, icon: 'none' })
// 云律律师端(含 PC iframe用户挂断后同步云律后端 + 通知父页面释放浮窗
if (isCloudLawLawRoleInMeeting(cloudLawRole.value) && cloudLawCallId.value) {
notifyCloudLawBackendEnd(cloudLawCallId.value, 'law', cloudLawApiBase.value)
notifyCloudLawParentCallEnded(cloudLawCallId.value)
if (isCloudLawPcIframe()) {
return
}
}
setTimeout(() => redirectHome(true), 1200)
}
})