H5的<TUICallKit></TUICallKit>注释状态

This commit is contained in:
bobobobo
2026-01-30 23:21:22 +08:00
parent bccfb8a4e0
commit 7969ea00a9
10 changed files with 70 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
<template>
<div class="chat" :style="{ marginBottom: keywordHight + 'px' }">
<!-- <TUICallKit></TUICallKit> -->
<!-- #ifdef H5 -->
<!-- <TUICallKit></TUICallKit> -->
<!-- #endif -->
<div :class="['tui-chat', !isPC && 'tui-chat-h5']">
<div
v-if="!currentConversationID"
@@ -103,7 +105,9 @@
TUIConstants,
ExtensionInfo
} from '@tencentcloud/tui-core-lite'
// #ifdef H5
// import { TUICallKit } from '@trtc/calls-uikit-vue'
// #endif
import ChatHeader from './chat-header/index.vue'
import MessageList from './message-list/index.vue'
import MessageInput from './message-input/index.vue'

View File

@@ -28,6 +28,35 @@
*/
const stateData = ref(0)
const onDialogShow = async () => {
const res = await getAnchorDetail()
if (res?.data) {
stateData.value = res.data.status
} else {
stateData.value = 9
}
container?.value?.toggleDialogDisplay(false)
if ([0, 2, 9].includes(stateData.value)) {
navigateTo(
'/TUIKit/components/TUIChat/message-input-toolbar/live-stream/apply',
{ type: stateData.value }
)
return
}
if (stateData.value === 1) {
// 跳转到开播页面
uni.navigateTo({
url: `/pages/anchor/index?groupId=${encodeURIComponent(
props.groupId
)}&creatorType=1`
})
return
}
if (stateData.value === 3) {
showDialog('提示', '您已被封禁,请联系管理员解封', false)
return
}
return
if (
['Owner', 'Admin'].includes(
props.userData.groupProfile.selfInfo.role