注释搜索:主播发送消息
观看列表只能主播跟管理员查看
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="bottom-drawer-container" v-if="modelValue">
|
||||
<view class="bottom-drawer-container" v-if="!loading && modelValue">
|
||||
<view class="drawer-overlay" @tap="close"></view>
|
||||
<view class="bottom-drawer" :class="{ 'drawer-open': modelValue }">
|
||||
<view class="drawer-header">
|
||||
@@ -126,7 +126,10 @@
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:modelValue', 'update:userInfo'])
|
||||
const emit = defineEmits(['update:modelValue', 'update:userInfo', 'adminBack'])
|
||||
|
||||
/** 加载状态 */
|
||||
const loading = ref(true)
|
||||
|
||||
/** 禁言,管理员列表 */
|
||||
const listData = reactive({
|
||||
@@ -168,12 +171,16 @@
|
||||
Promise.all(apiList).then((res) => {
|
||||
listData.tabooList = res[0].data.Response?.MutedAccountList || []
|
||||
listData.adminList = res[1].data.Response?.Admin_Account || []
|
||||
|
||||
console.log('===请求接口了!!!')
|
||||
if (state === 1) {
|
||||
showToast(`${isMessageDisabled.value ? '禁止' : '恢复'}成功`, 'success')
|
||||
}
|
||||
if (state === 2) {
|
||||
showToast(`${isAdminShow.value ? '设置' : '撤销'}成功`, 'success')
|
||||
}
|
||||
}).finally(() => {
|
||||
loading.value = false
|
||||
})
|
||||
}
|
||||
|
||||
@@ -200,6 +207,10 @@
|
||||
userID: userData.value.userID,
|
||||
success: () =>{
|
||||
getListData(2)
|
||||
emit('adminBack', {
|
||||
...userData.value,
|
||||
show: !isAdminShow.value
|
||||
})
|
||||
close()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<AudienceActionPanel v-model="isShowAudienceActionPanel" :userInfo="selectedAudience" :liveID="liveID" :adminType="isAdminState">
|
||||
<AudienceActionPanel v-model="isShowAudienceActionPanel" :userInfo="selectedAudience" :liveID="liveID" :adminType="isAdminState" @adminBack="onAdminBack">
|
||||
</AudienceActionPanel>
|
||||
|
||||
</view>
|
||||
@@ -108,7 +108,7 @@ import { useAuthUser } from '../../../../composables/useAuthUser';
|
||||
}
|
||||
});
|
||||
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
const emit = defineEmits(['update:modelValue', 'adminBack']);
|
||||
const close = () => {
|
||||
emit('update:modelValue', false);
|
||||
};
|
||||
@@ -123,6 +123,10 @@ import { useAuthUser } from '../../../../composables/useAuthUser';
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
const onAdminBack = (e) => {
|
||||
emit('adminBack', e)
|
||||
}
|
||||
|
||||
// 初始化加载
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user