|
|
|
@ -35,6 +35,7 @@ var app=new Vue({
|
|
|
|
|
visitorCurrentPage:1,
|
|
|
|
|
visitorPageSize:10,
|
|
|
|
|
face:[],
|
|
|
|
|
transKefuDialog:false,
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//跳转
|
|
|
|
@ -592,7 +593,37 @@ var app=new Vue({
|
|
|
|
|
var b = document.getElementById("chatMessageSendAudio");
|
|
|
|
|
var p = b.play();
|
|
|
|
|
p && p.then(function(){}).catch(function(e){});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//转移客服
|
|
|
|
|
transKefu(){
|
|
|
|
|
this.transKefuDialog=true;
|
|
|
|
|
this.sendAjax("/other_kefulist","get",{},function(result){
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
transKefuBtn(){},
|
|
|
|
|
sendAjax(url,method,params,callback){
|
|
|
|
|
let _this=this;
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: method,
|
|
|
|
|
url: url,
|
|
|
|
|
data:params,
|
|
|
|
|
headers: {
|
|
|
|
|
"token": localStorage.getItem("token")
|
|
|
|
|
},
|
|
|
|
|
success: function(data) {
|
|
|
|
|
if(data.code!=200){
|
|
|
|
|
_this.$message({
|
|
|
|
|
message: data.msg,
|
|
|
|
|
type: 'error'
|
|
|
|
|
});
|
|
|
|
|
}else if(data.result!=null){
|
|
|
|
|
callback(data.result);
|
|
|
|
|
}else{
|
|
|
|
|
callback(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
document.addEventListener('paste', this.onPasteUpload)
|
|
|
|
|