添加直播间功能,直播间右上角人数需要完善
This commit is contained in:
@@ -21,9 +21,13 @@
|
||||
<text class="message-role">主播</text>
|
||||
</view>
|
||||
<view class="nickname-content-wrapper">
|
||||
<text class="chat-nickname"
|
||||
<text v-if="message?.businessID === LIVE_BUSINESS.ADMIN" class="chat-nickname"
|
||||
numberOfLines="1">游客:</text>
|
||||
<text v-else class="chat-nickname"
|
||||
numberOfLines="1">{{ message?.sender?.userName || message?.sender?.userID }}:</text>
|
||||
<text class="chat-content">{{ message?.textContent || '' }}</text>
|
||||
<text v-if="message?.businessID === LIVE_BUSINESS.SIGN" class="chat-content">{{ JSON.parse(message?.data).title }}</text>
|
||||
<text v-else-if="message?.businessID === LIVE_BUSINESS.ADMIN" class="chat-content">1</text>
|
||||
<text v-else class="chat-content">{{ message?.textContent || '' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -53,6 +57,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { LIVE_BUSINESS } from '@/constants/live-keys'
|
||||
import { ref, watch, computed, onMounted, onUnmounted } from 'vue';
|
||||
import { useBarrageState } from "@/uni_modules/tuikit-atomic-x/state/BarrageState";
|
||||
import { useGiftState } from "@/uni_modules/tuikit-atomic-x/state/GiftState";
|
||||
|
||||
Reference in New Issue
Block a user