From 07f9501c0fa7f81d66521c0c0b2dcac4132982a5 Mon Sep 17 00:00:00 2001 From: bobobobo <1055026847@qq.com> Date: Tue, 13 Jan 2026 23:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=AD=BE=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TUIChat/message-input-toolbar/index.vue | 10 +- .../live-stream/apply.vue | 3 + .../live-stream/index.vue | 64 ++- pages/anchor/components/activity.nvue | 449 ++++++++++++++++++ pages/anchor/index.nvue | 128 ++--- pages/discover/discover.vue | 1 + pages/discover/ranking-list.vue | 1 + pages/my-index/wallet/real-id.vue | 9 +- static/images/activity.png | Bin 0 -> 2766 bytes 9 files changed, 577 insertions(+), 88 deletions(-) create mode 100644 pages/anchor/components/activity.nvue create mode 100644 static/images/activity.png diff --git a/TUIKit/components/TUIChat/message-input-toolbar/index.vue b/TUIKit/components/TUIChat/message-input-toolbar/index.vue index 0379c99..8918453 100644 --- a/TUIKit/components/TUIChat/message-input-toolbar/index.vue +++ b/TUIKit/components/TUIChat/message-input-toolbar/index.vue @@ -67,13 +67,21 @@ - + + diff --git a/TUIKit/components/TUIChat/message-input-toolbar/live-stream/apply.vue b/TUIKit/components/TUIChat/message-input-toolbar/live-stream/apply.vue index e531117..e3ac6bc 100644 --- a/TUIKit/components/TUIChat/message-input-toolbar/live-stream/apply.vue +++ b/TUIKit/components/TUIChat/message-input-toolbar/live-stream/apply.vue @@ -7,6 +7,9 @@ onLoad(e => { stateData.value = Number(e?.type) + + + console.log(stateData.value, '2222') }) diff --git a/TUIKit/components/TUIChat/message-input-toolbar/live-stream/index.vue b/TUIKit/components/TUIChat/message-input-toolbar/live-stream/index.vue index 2e08180..704794c 100644 --- a/TUIKit/components/TUIChat/message-input-toolbar/live-stream/index.vue +++ b/TUIKit/components/TUIChat/message-input-toolbar/live-stream/index.vue @@ -11,10 +11,13 @@ const evaluateIcon = custom const props = defineProps({ - /** 距离顶部高度 */ groupId: { type: String, default: '' + }, + userData: { + type: Object, + default: () => ({}) } }) @@ -25,40 +28,51 @@ */ 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 } + if ( + ['Owner', 'Admin'].includes( + props.userData.groupProfile.selfInfo.role ) - - return - } - if (stateData.value === 1) { - // 跳转到开播页面 + ) { + // 管理员跟群主可直接开直播 uni.navigateTo({ url: `/pages/anchor/index?groupId=${encodeURIComponent( props.groupId - )}` + )}&creatorType=2` }) - return - } - if (stateData.value === 3) { - showDialog('提示', '您已被封禁,请联系管理员解封', false) - return + } else { + 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 + } } }