勉强解决
This commit is contained in:
		
							parent
							
								
									9e96eeb575
								
							
						
					
					
						commit
						5abe5620f5
					
				| @ -388,7 +388,10 @@ export default { | |||||||
|             that.list= res.data.data |             that.list= res.data.data | ||||||
|           } |           } | ||||||
|         }) |         }) | ||||||
|     },6 * 1000) |           that.$forceUpdate(); | ||||||
|  |           console.log(that.room) | ||||||
|  | 
 | ||||||
|  |     },60 * 1000) | ||||||
|     uni.request({ |     uni.request({ | ||||||
|       url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo", |       url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo", | ||||||
|       data:{ |       data:{ | ||||||
| @ -431,7 +434,7 @@ export default { | |||||||
|           that.chatRoomService.initialWhenNewMessage(that.whenNewMessage); |           that.chatRoomService.initialWhenNewMessage(that.whenNewMessage); | ||||||
|           //获取当前聊天室数据 |           //获取当前聊天室数据 | ||||||
|           that.room = that.chatRoomService.room; |           that.room = that.chatRoomService.room; | ||||||
|            |           console.log(that.room) | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|     } catch (error) { |     } catch (error) { | ||||||
|  | |||||||
| @ -833,7 +833,16 @@ IMService.prototype.sendMessages = function (roomId, content) { | |||||||
| 
 | 
 | ||||||
| //退出聊天室
 | //退出聊天室
 | ||||||
| IMService.prototype.quitRoom = function (roomId) { | IMService.prototype.quitRoom = function (roomId) { | ||||||
|     this.im.disconnect() |     // this.im.subscribeGroup([0])
 | ||||||
|  |     //     .then(result => {
 | ||||||
|  |     //         console.log('消息订阅成功')
 | ||||||
|  |     //     }).catch(e => {
 | ||||||
|  |     //     console.log(e,'失败')
 | ||||||
|  |     // })
 | ||||||
|  |     // this.subscribePresence(0);
 | ||||||
|  |     this.disconnect() | ||||||
|  |     this.connectIM() | ||||||
|  | 
 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user