客服在线聊天
This commit is contained in:
parent
c37845d422
commit
41965c4fa4
|
@ -173,7 +173,8 @@
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
this.getTimeOrListItem1()
|
this.getTimeOrListItem1();
|
||||||
|
this.connect();
|
||||||
}, 3000);
|
}, 3000);
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
|
@ -255,11 +256,11 @@
|
||||||
connect() {
|
connect() {
|
||||||
let that = this;
|
let that = this;
|
||||||
let userId = that.$queue.getData('userId');
|
let userId = that.$queue.getData('userId');
|
||||||
if (that.connected || that.connecting) {
|
if (that.connected && that.connecting) {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
content: '正在连接或者已经连接,请勿重复连接',
|
// content: '正在连接或者已经连接,请勿重复连接',
|
||||||
showCancel: false
|
// showCancel: false
|
||||||
})
|
// })
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
that.connecting = true
|
that.connecting = true
|
||||||
|
@ -390,7 +391,7 @@
|
||||||
}, 50);
|
}, 50);
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
that.connect()
|
that.connect();
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue