完成
This commit is contained in:
parent
05aa790d32
commit
27470faee1
@ -282,7 +282,16 @@ 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()
|
||||
let that = this
|
||||
|
||||
}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()
|
||||
// console.log("guanbi")
|
||||
@ -290,13 +299,7 @@ import chatVue from '../../pageD/chat/chat.vue'
|
||||
setTimeout(function(){
|
||||
// console.log("lianjie")
|
||||
that.imService.connectIM()
|
||||
},2000)
|
||||
}else{
|
||||
this.$u.api.getDefaultAvatar().then((res)=>{
|
||||
console.log(res)
|
||||
uni.setStorageSync("morenimg",res.data.avatar)
|
||||
})
|
||||
}
|
||||
},2000)
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.page = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user