吉安感知网项目-前端
张含笑
2026-02-27 075f13e2f8c792af6d4f2afdc4832e9fe34957f7
uniapps/work-app/src/subPackages/voiceCallDetail/index.vue
@@ -17,7 +17,7 @@
const userParams = userStore?.userInfo ? JSON.stringify(userStore.userInfo) : '{}'
const sWebViewRef = ref(null);
const viewUrl = ref("");
const typeSign = ref('')
// #ifdef APP-PLUS
/**
 * 请求 Android 麦克风权限
@@ -80,6 +80,14 @@
});
function onPostMessage(data) {
typeSign.value = data?.sign || ''
if(typeSign.value === 'closeBox'){
   setTimeout(() => {
   // 关闭弹窗
   cancelIncomingCallNotification()
   }, 1000)
}
   // 将WebView消息传递给全局WebSocket处理
   if (typeof uni !== 'undefined' && uni.$emit) {
      uni.$emit('webViewMessage', data);