This commit is contained in:
2020-08-07 11:40:13 +08:00
parent 9f444ad070
commit eb0d648f6a
5 changed files with 60 additions and 22 deletions

View File

@@ -231,6 +231,23 @@
this.tabLiveList();
this.getFollowList();
},
onLoad(){
if(this.$store.state.hasLogin){
const user = uni.getStorageSync('user_info');
console.log(user)
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
this.imService.connectIM()
let that = this
setTimeout(function(){
that.imService.disconnect()
console.log("guanbi")
},1000)
setTimeout(function(){
console.log("lianjie")
that.imService.connectIM()
},2000)
}
},
onPullDownRefresh() {
this.getArticlelist();
// this.getManicureList({ load: 'reload' });
@@ -356,4 +373,4 @@
},
},
}
</script>
</script>