运营数据

This commit is contained in:
duoaohui
2026-06-06 13:27:31 +08:00
parent 9be151cc9f
commit e697354ce9

View File

@@ -166,7 +166,8 @@ import { minimizeCloudLawMeeting } from '@/utils/cloudLawMiniProgram'
import { import {
notifyCloudLawBackendEnd, notifyCloudLawBackendEnd,
notifyCloudLawParentCallEnded, notifyCloudLawParentCallEnded,
isCloudLawPcIframe isCloudLawPcIframe,
notifyNativeMiniProgramHangup
} from '@/utils/cloudLawVoiceCall' } from '@/utils/cloudLawVoiceCall'
import bgImage from '@/static/bg.png' import bgImage from '@/static/bg.png'
import hangupIcon from '@/static/cacel.png' import hangupIcon from '@/static/cacel.png'
@@ -1050,14 +1051,17 @@ const hangup = async () => {
} finally { } finally {
ended.value = true ended.value = true
leaving.value = false leaving.value = false
// 用户端:优先尝试跳转小程序咨询详情;失败则依赖小程序页轮询 /end 状态兜底 if (isLawRole.value) {
notifyMiniProgramCallEndedOnce() notifyMiniProgramCallEndedOnce()
if (!isLawRole.value) { } else {
// 用户端跳转咨询详情postMessage 仅作辅助。
// 房间已 endMeeting 同源结束,这里用 URL 桥接(cloudLawHangup=1)触发原生页 onWebViewLoad
// 由原生页用 uni.reLaunch 跳转——web-view JSSDK 的 reLaunch 无成功回调,当前微信环境会
// navigateTo:fail timeout 静默失败却误标记已跳转,导致停不到咨询详情,故不依赖它。
notifyMiniProgramCallEndedOnce()
setTimeout(() => { setTimeout(() => {
if (ended.value && !miniProgramRedirected) { notifyNativeMiniProgramHangup()
goToConsultDetail() }, 300)
}
}, 600)
} }
} }
} }