|
@@ -4,7 +4,7 @@
|
|
|
<view class="top_box" :style="{ top: btn_top, left: btn_left}">
|
|
|
<image class="top_box_img" :src="head_img" mode="aspectFill"></image>
|
|
|
<view class="top_box_text">
|
|
|
- <text class="text_box_top">{{title}}</text><text class="text_box_bottom">{{user_name}}</text>
|
|
|
+ <text class="text_box_top">{{title}}</text><text class="text_box_bottom" style="display:none">{{user_name}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="popup-open" @click="showGoods()">
|
|
@@ -231,11 +231,8 @@
|
|
|
}
|
|
|
}); // 远端用户退出
|
|
|
this.trtcComponent.on(TRTC_EVENT.REMOTE_USER_LEAVE, event => {
|
|
|
- let user_list=this.trtcComponent.getRemoteUserList();
|
|
|
- this.setData({
|
|
|
- user_name:user_list.length
|
|
|
- })
|
|
|
- if (event.data.userID == this.userID) {
|
|
|
+
|
|
|
+ //if (event.data.userID == this.userID) {
|
|
|
console.log("直播用户退出");
|
|
|
this.$refs.uTips.show({
|
|
|
title: '直播用户退出',
|
|
@@ -243,8 +240,12 @@
|
|
|
})
|
|
|
setTimeout(() => {
|
|
|
uni.navigateBack()
|
|
|
- }, 1000)
|
|
|
- }
|
|
|
+ }, 3000)
|
|
|
+ //}
|
|
|
+ let user_list=this.trtcComponent.getRemoteUserList();
|
|
|
+ this.setData({
|
|
|
+ user_name:user_list.length
|
|
|
+ })
|
|
|
}); // 远端用户推送视频
|
|
|
this.trtcComponent.on(TRTC_EVENT.REMOTE_VIDEO_ADD, event => {
|
|
|
console.log('* room REMOTE_VIDEO_ADD', event, this.trtcComponent.getRemoteUserList()); // 订阅视频
|
|
@@ -482,12 +483,12 @@
|
|
|
padding-top: 2rpx;
|
|
|
}
|
|
|
.text_box_top{
|
|
|
- font-size: 28rpx;
|
|
|
- width: 100%;
|
|
|
- display: block;
|
|
|
- height: 30rpx;
|
|
|
- float: left;
|
|
|
- margin-top: 6rpx;
|
|
|
+ font-size: 34rpx;
|
|
|
+ width: 100%;
|
|
|
+ display: block;
|
|
|
+ height: 30rpx;
|
|
|
+ float: left;
|
|
|
+ margin-top: 19rpx;
|
|
|
}
|
|
|
.text_box_bottom{
|
|
|
font-size: 22rpx;
|