zhaoxw 4 years ago
parent
commit
d17a77cef4
2 changed files with 14 additions and 2 deletions
  1. 10 0
      pagesMedia/liveDetail.nvue
  2. 4 2
      pagesMedia/pickVideo.nvue

+ 10 - 0
pagesMedia/liveDetail.nvue

@@ -212,6 +212,16 @@
 				this.jhimgroup.offReady(this.onImGroupReady);
 				this.jhimgroup.exit(this.isAuthor).then(()=>this.jhim.logout().then(()=>this.jhim.destroy()));
 				this.$refs.jhlive && this.$refs.jhlive.exitRoom();
+				NET.request(API.creatLive, {
+					liveId: this.liveId,
+					liveStatus: 2
+				}, 'GET').then(res => {}).catch(res => {
+					this.$refs.uTips.show({
+						title: '关闭直播失败',
+						type: 'warning',
+					})
+				})
+				
 			},
 			onBtnClick(index, item) {
 				if(index === 0) {

+ 4 - 2
pagesMedia/pickVideo.nvue

@@ -110,9 +110,11 @@
         this.$refs.jhlive&&this.$refs.jhlive.exitRoom();
       },
       handleRemoteUser(users) {
-		  debugger
+		console.log('获取自助采摘观看人数', users)
+		this.num = users.length;
         this.subtitle = users.length;
-        users.length&&this.request(API.getMainInfo +"?userId="+ users[0], {}, 'GET').then(res => {
+        users.length&&NET.request(API.getMainInfo +"?userId="+ users[0], {}, 'GET').then(res => {
+		  console.log('获取用户信息', res)
           this.avatar = res.data.headimg;
           this.title = res.data.nickname;
         }).catch(error => {