需要添加直播接口
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user