需要添加直播接口

This commit is contained in:
cbb
2026-01-12 17:52:15 +08:00
parent 83fec2617c
commit 13af9eb303
281 changed files with 313157 additions and 104 deletions

View File

@@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup>
import { ref } from '../../../../adapter-vue'
import custom from '../../../../assets/icon/live-stream.svg'
import ToolbarItemContainer from '../toolbar-item-container/index.vue'
@@ -10,6 +10,14 @@
const { showDialog } = useUI()
const evaluateIcon = custom
const props = defineProps({
/** 距离顶部高度 */
groupId: {
type: String,
default: ''
}
})
const container = ref()
/**
* 主播申请状态
@@ -34,7 +42,12 @@
return
}
if (stateData.value === 1) {
console.log('去直播间')
// 跳转到开播页面
uni.navigateTo({
url: `/pages/anchor/index?groupId=${encodeURIComponent(
props.groupId
)}`
})
return
}
if (stateData.value === 3) {
@@ -45,6 +58,7 @@
</script>
<template>
<ToolbarItemContainer
ref="container"
:iconFile="evaluateIcon"