H5的<TUICallKit></TUICallKit>注释状态
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user