直播人数
This commit is contained in:
		
							parent
							
								
									3713cab533
								
							
						
					
					
						commit
						f6ffcdec64
					
				@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <view>
 | 
			
		||||
    <video :src="url" class="vodio" autoplay="true" :show-fullscreen-btn="false" :show-play-btn="false" :enable-progress-gesture="false" :show-center-play-btn="false" :show-progress="false" :controls="false" :style="{'height':height}">
 | 
			
		||||
    <video :src="url" class="vodio" autoplay="true" :show-fullscreen-btn="false" :show-play-btn="false" :enable-progress-gesture="false" :show-center-play-btn="false" :show-progress="false" :controls="false" :style="{'height':height}" @error="errors>
 | 
			
		||||
 | 
			
		||||
    </video>
 | 
			
		||||
    <view class="user" :style="{'top': top}">
 | 
			
		||||
@ -441,10 +441,10 @@ export default {
 | 
			
		||||
          console.log(room,currentUser)
 | 
			
		||||
          //构造chatRoomService
 | 
			
		||||
          that.chatRoomService.subscribeRoomMessage(room,currentUser)
 | 
			
		||||
          that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
 | 
			
		||||
          taht.chatRoomService.initialWhenOnlineUserChange(that.newpeople)
 | 
			
		||||
          //获取当前聊天室数据
 | 
			
		||||
          that.room = that.chatRoomService.room;
 | 
			
		||||
          that.chatRoomService.initialWhenOnlineUserChange(that.newpeople)
 | 
			
		||||
          that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
 | 
			
		||||
          console.log(that.room)
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
@ -462,8 +462,12 @@ export default {
 | 
			
		||||
			this.chatRoomService.quitRoom();
 | 
			
		||||
		},
 | 
			
		||||
  methods:{
 | 
			
		||||
    errors(a){
 | 
			
		||||
      console.log(a)
 | 
			
		||||
    },
 | 
			
		||||
    newpeople(list){
 | 
			
		||||
      this.room.onlineUsers = list
 | 
			
		||||
      this.$forceUpdate();
 | 
			
		||||
    },
 | 
			
		||||
    sendMessage (messageType, content) {//发送消息
 | 
			
		||||
    if(!this.chatRoomService.status){
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user