|
@@ -16,7 +16,7 @@
|
|
|
class="el-icon-chat-line-round"></span>
|
|
class="el-icon-chat-line-round"></span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="!showleaveIcon" style="float: right; cursor: not-allowed">
|
|
<div v-if="!showleaveIcon" style="float: right; cursor: not-allowed">
|
|
|
- <span style="font-size: 25px; color: #d6d1c4; margin-top: 13px;" class="el-icon-chat-line-round"></span>
|
|
|
|
|
|
|
+ <span style="font-size: 25px; color: #d6d1c4; margin-top: 13px;" class="el-icon-chat-line-round"></span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -301,7 +301,7 @@
|
|
|
<div class="row center allAlignment chattingBox">
|
|
<div class="row center allAlignment chattingBox">
|
|
|
<div style="height:44px;width:300px;">
|
|
<div style="height:44px;width:300px;">
|
|
|
<textarea name=""
|
|
<textarea name=""
|
|
|
- id=""
|
|
|
|
|
|
|
+ id="information"
|
|
|
v-model.trim="information"
|
|
v-model.trim="information"
|
|
|
cols="30"
|
|
cols="30"
|
|
|
rows="1"
|
|
rows="1"
|
|
@@ -506,7 +506,7 @@
|
|
|
timeoutObj: null,
|
|
timeoutObj: null,
|
|
|
serverTimeoutObj: null,
|
|
serverTimeoutObj: null,
|
|
|
|
|
|
|
|
- logo:null, // logo 图片
|
|
|
|
|
|
|
+ logo:'', // logo 图片
|
|
|
Onlinemsg:"", // 系统留言信息
|
|
Onlinemsg:"", // 系统留言信息
|
|
|
showleaveIcon: true, // 留言按钮触发条件
|
|
showleaveIcon: true, // 留言按钮触发条件
|
|
|
jumpName:'', // 根据类型提示售后服务名称
|
|
jumpName:'', // 根据类型提示售后服务名称
|
|
@@ -517,8 +517,14 @@
|
|
|
listenEnter(event){
|
|
listenEnter(event){
|
|
|
console.log(event);
|
|
console.log(event);
|
|
|
if (event.keyCode === 13) {
|
|
if (event.keyCode === 13) {
|
|
|
|
|
+ // 判断如果是内容是空 清空内容
|
|
|
|
|
+ if(this.information == ""){
|
|
|
|
|
+ document.getElementById('information').value = '';
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
this.sendInfo();
|
|
this.sendInfo();
|
|
|
- event.preventDefault() // 阻止浏览器默认换行操作
|
|
|
|
|
|
|
+ // 阻止浏览器默认换行操作
|
|
|
|
|
+ event.preventDefault()
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -609,6 +615,7 @@
|
|
|
|
|
|
|
|
handError(err, file, fileList) {
|
|
handError(err, file, fileList) {
|
|
|
// 获取当前发送时间
|
|
// 获取当前发送时间
|
|
|
|
|
+ console.log(err,'上传图片报错!')
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@@ -989,6 +996,7 @@
|
|
|
if (redata.message_type == 'closeBysever') {
|
|
if (redata.message_type == 'closeBysever') {
|
|
|
this.goBack(1);
|
|
this.goBack(1);
|
|
|
this.machineAndAtl = 10;
|
|
this.machineAndAtl = 10;
|
|
|
|
|
+ this.selNum = 0;
|
|
|
}
|
|
}
|
|
|
// 客服掉线.
|
|
// 客服掉线.
|
|
|
if (redata.message_type == 'serviceoffline') {
|
|
if (redata.message_type == 'serviceoffline') {
|
|
@@ -1653,6 +1661,7 @@
|
|
|
resize: none;
|
|
resize: none;
|
|
|
outline: none;
|
|
outline: none;
|
|
|
padding-top: 10px;
|
|
padding-top: 10px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.sendOut {
|
|
.sendOut {
|