This commit is contained in:
luyuan 2020-08-15 15:47:29 +08:00
parent 05aa790d32
commit 27470faee1
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -282,6 +282,15 @@ import chatVue from '../../pageD/chat/chat.vue'
// console.log(user)
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
this.imService.connectIM()
}else{
this.$u.api.getDefaultAvatar().then((res)=>{
console.log(res)
uni.setStorageSync("morenimg",res.data.avatar)
this.imService.login(new Date().getTime(),"123",res.data.avatar)
this.imService.connectIM()
})
}
let that = this
setTimeout(function(){
that.imService.disconnect()
@ -291,12 +300,6 @@ import chatVue from '../../pageD/chat/chat.vue'
// console.log("lianjie")
that.imService.connectIM()
},2000)
}else{
this.$u.api.getDefaultAvatar().then((res)=>{
console.log(res)
uni.setStorageSync("morenimg",res.data.avatar)
})
}
},
onPullDownRefresh() {
this.page = 1;