|
@@ -174,25 +174,45 @@
|
|
|
<span class="col6">人工客服:</span>
|
|
<span class="col6">人工客服:</span>
|
|
|
<span class="colE5 pointer gl" @click="jumpService(itemList.id, itemList.name)">{{itemList.name}}</span>
|
|
<span class="colE5 pointer gl" @click="jumpService(itemList.id, itemList.name)">{{itemList.name}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="item.type == 'tips'">
|
|
|
|
|
+
|
|
|
|
|
+ <div class="promptBox" v-if="item.str == 'artAndLeave100'">
|
|
|
|
|
+ <div class="prompt help">
|
|
|
|
|
+ <span>{{jumpName + Onlinemsg}}</span>
|
|
|
|
|
+ <span class="colE5 ly pointer" @click="leaveMsg()">留言</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="promptBox" v-if="item.str == 'resigtermsg'">
|
|
|
|
|
+ <div class="prompt help">
|
|
|
|
|
+ <span>客服已经关闭会话,如需继续咨询请重新连接客服</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!--············· 各种消息提示框 ··············-->
|
|
<!--············· 各种消息提示框 ··············-->
|
|
|
|
|
|
|
|
<!-- 客服不在线帮助提示框 -->
|
|
<!-- 客服不在线帮助提示框 -->
|
|
|
- <div class="promptBox" v-if="artAndLeave == 100">
|
|
|
|
|
- <div class="prompt help">
|
|
|
|
|
- <span>{{jumpName + Onlinemsg}}</span>
|
|
|
|
|
- <span class="colE5 ly pointer" @click="leaveMsg()">留言</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+<!-- <div class="promptBox" v-if="artAndLeave=100">-->
|
|
|
|
|
+<!-- <div class="prompt help">-->
|
|
|
|
|
+<!-- <span>{{jumpName + Onlinemsg}}</span>-->
|
|
|
|
|
+<!-- <span class="colE5 ly pointer" @click="leaveMsg()">留言</span>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- 客服会话超时 -->
|
|
<!-- 客服会话超时 -->
|
|
|
- <div class="promptBox" v-if="resigtermsg">
|
|
|
|
|
- <div class="prompt help">
|
|
|
|
|
- <span>客服已经关闭会话,如需继续咨询请重新连接客服</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+<!-- <div class="promptBox" v-if="resigtermsg">-->
|
|
|
|
|
+<!-- <div class="prompt help">-->
|
|
|
|
|
+<!-- <span>客服已经关闭会话,如需继续咨询请重新连接客服</span>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<div class="promptBox " v-if="serverNotOnlin">
|
|
<div class="promptBox " v-if="serverNotOnlin">
|
|
|
<div class="prompt help">
|
|
<div class="prompt help">
|
|
@@ -643,6 +663,7 @@
|
|
|
fit:'contain', // 图片样式
|
|
fit:'contain', // 图片样式
|
|
|
resigtermsg:false, //提示重连
|
|
resigtermsg:false, //提示重连
|
|
|
evaluateNum:false,
|
|
evaluateNum:false,
|
|
|
|
|
+ artAndLeave100:false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
filters: {
|
|
filters: {
|
|
@@ -761,6 +782,7 @@
|
|
|
imgUrl: res.data.data.src,
|
|
imgUrl: res.data.data.src,
|
|
|
type: 'user'
|
|
type: 'user'
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
this.chatCont.push(datas)
|
|
this.chatCont.push(datas)
|
|
|
//消息发送-机器人
|
|
//消息发送-机器人
|
|
|
this.websocketsend(JSON.stringify({
|
|
this.websocketsend(JSON.stringify({
|
|
@@ -1299,7 +1321,9 @@
|
|
|
// 暂无客服
|
|
// 暂无客服
|
|
|
if (redata.message_type == 'wait') {
|
|
if (redata.message_type == 'wait') {
|
|
|
let content = JSON.parse(redata.data.content)
|
|
let content = JSON.parse(redata.data.content)
|
|
|
- this.artAndLeave = 100;
|
|
|
|
|
|
|
+ //this.artAndLeave = 100;
|
|
|
|
|
+ console.log("暂无客服")
|
|
|
|
|
+ this.chatCont.push({type:"tips",str:"artAndLeave100"})
|
|
|
}
|
|
}
|
|
|
//接收客服会话
|
|
//接收客服会话
|
|
|
if (redata.message_type == 'chatMessage') {
|
|
if (redata.message_type == 'chatMessage') {
|
|
@@ -1383,7 +1407,7 @@
|
|
|
this.machineAndAtl = 10;
|
|
this.machineAndAtl = 10;
|
|
|
this.selNum = 0;
|
|
this.selNum = 0;
|
|
|
this.showleaveIcon = true;
|
|
this.showleaveIcon = true;
|
|
|
- this.resigtermsg = true;
|
|
|
|
|
|
|
+ this.chatCont.push({type: 'tips', str: 'resigtermsg'})
|
|
|
// 关闭清除历史信息
|
|
// 关闭清除历史信息
|
|
|
this.hisSviceChat = [];
|
|
this.hisSviceChat = [];
|
|
|
this.customerSviceChat = [];
|
|
this.customerSviceChat = [];
|
|
@@ -1393,6 +1417,7 @@
|
|
|
this.serviceNotOnlineText = redata.msg;
|
|
this.serviceNotOnlineText = redata.msg;
|
|
|
this.service_on = false;
|
|
this.service_on = false;
|
|
|
this.serverNotOnlin = true;
|
|
this.serverNotOnlin = true;
|
|
|
|
|
+ // this.chatCont.push({type:"tips",str:"serverNotOnlin"})
|
|
|
this.closeByServer = true;
|
|
this.closeByServer = true;
|
|
|
}
|
|
}
|
|
|
// 客服转接
|
|
// 客服转接
|
|
@@ -1448,10 +1473,21 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //
|
|
|
|
|
+ if(redata.message_type == 'cancelqueueret') {
|
|
|
|
|
+ console.log(redata)
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
closedWating() {
|
|
closedWating() {
|
|
|
this.waitingMsg = false;
|
|
this.waitingMsg = false;
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ "type": "cancelqueue",
|
|
|
|
|
+ "data": {
|
|
|
|
|
+ "uid": localStorage.getItem('uid')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.websock.send(JSON.stringify(data));
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1619,13 +1655,6 @@
|
|
|
appid: this.$public.getQueryString('appid'),
|
|
appid: this.$public.getQueryString('appid'),
|
|
|
appuid: this.$public.getQueryString('appuid'),
|
|
appuid: this.$public.getQueryString('appuid'),
|
|
|
}
|
|
}
|
|
|
- // console.log(data,'参数')
|
|
|
|
|
- // let obj = {
|
|
|
|
|
- // headers: {
|
|
|
|
|
- // 'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
|
|
- // "apiToken": this.setApiToken('autoreg', 'register', this.currTime, 'index')
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
this.$http.post('/index/register/autoReg', data).then(res => {
|
|
this.$http.post('/index/register/autoReg', data).then(res => {
|
|
|
if(res.data.code == 0){
|
|
if(res.data.code == 0){
|
|
|
this.$message({
|
|
this.$message({
|