|
|
@@ -648,10 +648,8 @@
|
|
|
jumpName: '', // 根据类型提示售后服务名称
|
|
|
waitingMsg: false, // 是否显示等待排队
|
|
|
waitingText: "", // 等待内容
|
|
|
-
|
|
|
service_on: true, // 现在状态
|
|
|
avatarImg: fk,
|
|
|
-
|
|
|
dialogPaste: false,
|
|
|
pasteUrl: '',//截屏图片
|
|
|
fit: 'contain', // 图片样式
|
|
|
@@ -1112,9 +1110,9 @@
|
|
|
this.loadingobj.close();
|
|
|
},
|
|
|
|
|
|
- /***************转人工客服列表*************** */
|
|
|
+ /***************获取转人工客服列表*************** */
|
|
|
changeService() {
|
|
|
- this.nloding("转人工客服中请等待");
|
|
|
+ this.nloding("加载人工客服列表请等待");
|
|
|
// if(!this.isConnection) return
|
|
|
this.$axios.post('/api/index/groups/index', {}, {
|
|
|
headers: {
|
|
|
@@ -1210,7 +1208,7 @@
|
|
|
initWebSocket() {
|
|
|
let _this = this;
|
|
|
let apiToken = this.$md5.hex_md5('customer-service' + window.location.origin);
|
|
|
- this.websock = new WebSocket('wss://ky.281570.com?apiToken=' + apiToken);
|
|
|
+ this.websock = new WebSocket('wss://link.281570.com?apiToken=' + apiToken);
|
|
|
// console.log(this.websock)
|
|
|
this.websock.debug = true;
|
|
|
// 数据接收
|
|
|
@@ -1226,6 +1224,7 @@
|
|
|
/****************连接建立成功***************/
|
|
|
websocketonopen() {
|
|
|
console.log('链接成功');
|
|
|
+ this.closeNloading();
|
|
|
// 如果有传 group_id 直接跳转人工客服
|
|
|
let group_id = this.$public.getQueryString("group_id");
|
|
|
if (group_id) {
|
|
|
@@ -1460,17 +1459,21 @@
|
|
|
this.automaticRolling();
|
|
|
this.machineAndAtl = 10;
|
|
|
this.jumpArtl = false;
|
|
|
-
|
|
|
this.Onlinemsg = redata.content;
|
|
|
|
|
|
- this.$alert(this.jumpName + this.Onlinemsg, '系统提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- dangerouslyUseHTMLString: true
|
|
|
- }).then(() => {
|
|
|
- this.closeNloading();
|
|
|
- }).catch((err) => {
|
|
|
- this.closeNloading();
|
|
|
- });
|
|
|
+ if(this.group == 99999){
|
|
|
+ this.$alert(this.jumpName + this.Onlinemsg, '系统提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ dangerouslyUseHTMLString: true
|
|
|
+ }).then(() => {
|
|
|
+ this.closeNloading();
|
|
|
+ }).catch((err) => {
|
|
|
+ this.closeNloading();
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.jumpService(99999,this.jumpName);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
// 客服关闭会话.
|
|
|
if (redata.message_type == 'closeBysever') {
|
|
|
@@ -1572,7 +1575,8 @@
|
|
|
|
|
|
/************关闭会话*******************/
|
|
|
websocketclose(e) {
|
|
|
- console.log('websocket 关闭会话: ' + e.code, e)
|
|
|
+ console.log('hahahahahah');
|
|
|
+ this.nloding('网路链接中....');
|
|
|
this.goBack();
|
|
|
},
|
|
|
|