修复链接失败
This commit is contained in:
parent
33e8942180
commit
3be650b24e
@ -273,7 +273,7 @@ import chatVue from '../../pageD/chat/chat.vue'
|
||||
// this.isNewmembervoucher();
|
||||
// }
|
||||
},
|
||||
onLoad(){
|
||||
async onLoad(){
|
||||
this.getSwiper();
|
||||
// 优惠券
|
||||
if(this.$store.state.hasLogin){
|
||||
@ -281,24 +281,28 @@ import chatVue from '../../pageD/chat/chat.vue'
|
||||
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()
|
||||
await this.imService.connectIM()
|
||||
|
||||
}else{
|
||||
this.$u.api.getDefaultAvatar().then((res)=>{
|
||||
await 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()
|
||||
console.log("用户信息")
|
||||
})
|
||||
console.log("链接")
|
||||
await this.imService.connectIM()
|
||||
|
||||
}
|
||||
console.log("1212")
|
||||
let that = this
|
||||
setTimeout(function(){
|
||||
that.imService.disconnect()
|
||||
// console.log("guanbi")
|
||||
},1000)
|
||||
setTimeout(function(){
|
||||
// console.log("lianjie")
|
||||
that.imService.connectIM()
|
||||
setTimeout(function(){
|
||||
that.imService.disconnect()
|
||||
console.log("guanbi")
|
||||
},1000)
|
||||
setTimeout(function(){
|
||||
console.log("lianjie")
|
||||
that.imService.connectIM()
|
||||
},2000)
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
|
Loading…
Reference in New Issue
Block a user