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

@@ -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