|
|
@@ -406,9 +406,7 @@
|
|
|
</div>
|
|
|
<!-- 评价框 -->
|
|
|
<el-card class="box-card" v-if="evlShow">
|
|
|
- <!-- <div class="close" @click="closeEvl(10)"> -->
|
|
|
- <!-- <i></i> -->
|
|
|
- <!-- </div> -->
|
|
|
+ <div class="close"><i @click="closeEvl()"></i></div>
|
|
|
<div class="tit">
|
|
|
<span>感谢您的咨询,请对我们的服务做出评价</span>
|
|
|
</div>
|
|
|
@@ -434,6 +432,7 @@
|
|
|
<span>确定</span>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
+
|
|
|
<div class="zzBox" v-if="zzShow"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -487,8 +486,8 @@
|
|
|
userConversation: {}, //用户当前会话
|
|
|
machineAndAtl: 10, //默认为机器人,100为人工
|
|
|
satisfaction: 1, //评价满意度,1为满意,2为一般,3为不满意
|
|
|
- // url: 'http://kfadmin.bocai186.com', // 域名地址
|
|
|
- url: 'http://192.168.2.187:8090', // 域名地址
|
|
|
+ url: 'http://kfadmin.bocai186.com', // 域名地址
|
|
|
+ // url: 'http://192.168.2.187:8090', // 域名地址
|
|
|
user_info: '', // 用户信息
|
|
|
// 人工客服信息
|
|
|
service: '',
|
|
|
@@ -534,6 +533,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 关闭评价框按钮
|
|
|
+ closeEvl(){
|
|
|
+ this.evlShow = false;
|
|
|
+ this.zzShow = false;
|
|
|
+ },
|
|
|
// 消息发送
|
|
|
sendAudio() {
|
|
|
let send = document.getElementById('send')
|
|
|
@@ -857,8 +861,8 @@
|
|
|
initWebSocket() {
|
|
|
let _this = this;
|
|
|
let apiToken = this.$md5.hex_md5('customer-service' + this.currTime + window.location.origin);
|
|
|
- //this.websock = new WebSocket('ws://103.108.43.176:9101?apiToken=' + apiToken);
|
|
|
- this.websock = new WebSocket('ws://192.168.2.187:9101?apiToken=' + apiToken);
|
|
|
+ this.websock = new WebSocket('ws://103.108.43.176:9101?apiToken=' + apiToken);
|
|
|
+ // this.websock = new WebSocket('ws://192.168.2.187:9101?apiToken=' + apiToken);
|
|
|
this.websock.debug = true;
|
|
|
// 数据接收
|
|
|
this.websock.onmessage = this.websocketonmessage;
|
|
|
@@ -952,7 +956,8 @@
|
|
|
}
|
|
|
//接收客服会话
|
|
|
if (redata.message_type == 'chatMessage') {
|
|
|
-
|
|
|
+ // 接收提示音
|
|
|
+ this.receiveAudio();
|
|
|
//存储会话超时间
|
|
|
this.webTime = redata.data.time;
|
|
|
//会话大于两分钟显示
|
|
|
@@ -987,9 +992,6 @@
|
|
|
this.customerSviceChat.push(obj);
|
|
|
// console.log(this.customerSviceChat);
|
|
|
this.selNum++;
|
|
|
- if(this.selNum > 1){
|
|
|
- this.receiveAudio();
|
|
|
- }
|
|
|
this.automaticRolling();
|
|
|
}
|
|
|
//接收机器会话
|
|
|
@@ -1740,7 +1742,9 @@
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: rgba(0, 0, 0, 0.3)
|
|
|
+ background: rgba(0, 0, 0, 0.3);
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
}
|
|
|
|
|
|
.box-card, .proving {
|
|
|
@@ -1760,18 +1764,18 @@
|
|
|
padding: 20px 20px 30px 47px;
|
|
|
}
|
|
|
|
|
|
- /* .close{
|
|
|
+ .close{
|
|
|
text-align: right;
|
|
|
cursor: pointer;
|
|
|
- } */
|
|
|
-
|
|
|
- /* .close i{
|
|
|
+ }
|
|
|
+ .close i{
|
|
|
display: inline-block;
|
|
|
width: 18px;
|
|
|
height: 18px;
|
|
|
background: url("./../assets/st-img/close.png") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
- } */
|
|
|
+ }
|
|
|
+
|
|
|
.box-card .tit {
|
|
|
text-align: center;
|
|
|
padding-right: 65px;
|