|
|
@@ -1051,6 +1051,55 @@
|
|
|
this.comtSuccess = false;
|
|
|
this.showleaveIcon = false;
|
|
|
this.waitingMsg = false;
|
|
|
+ // let obj = {
|
|
|
+ // message_type: "toOld",
|
|
|
+ // data: {
|
|
|
+ // chatLog: [{
|
|
|
+ // id: "1020",
|
|
|
+ // from_id: "14",
|
|
|
+ // from_name: "c_c1001",
|
|
|
+ // from_avatar: "",
|
|
|
+ // to_id: "KF15",
|
|
|
+ // to_name: "9090950",
|
|
|
+ // content: {'text':222222},
|
|
|
+ // time_line: 1565423525,
|
|
|
+ // servicelog_id: "720"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // id: "1020",
|
|
|
+ // from_id: "14",
|
|
|
+ // from_name: "c_c1001",
|
|
|
+ // from_avatar: "",
|
|
|
+ // to_id: "KF15",
|
|
|
+ // to_name: "9090950",
|
|
|
+ // content: {'text':222222},
|
|
|
+ // time_line: 1565423525,
|
|
|
+ // servicelog_id: "720"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // id: "1020",
|
|
|
+ // from_id: "14",
|
|
|
+ // from_name: "c_c1001",
|
|
|
+ // from_avatar: "",
|
|
|
+ // to_id: "KF15",
|
|
|
+ // to_name: "9090950",
|
|
|
+ // content: {'text':222222},
|
|
|
+ // time_line: 1565423525,
|
|
|
+ // servicelog_id: "720"
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ // "content": "接入至未结束的会话"
|
|
|
+ // }
|
|
|
+ // };
|
|
|
+ //
|
|
|
+ // this.historyMsgtext = obj.data.content;
|
|
|
+ //
|
|
|
+ // obj.data.chatLog.forEach(res => {
|
|
|
+ // console.log(res,'每一个')
|
|
|
+ // this.hisSviceChat.push(res)
|
|
|
+ // })
|
|
|
+ //
|
|
|
+ // this.customerSviceChat.push({type: 'system', str: 'historyMsg'})
|
|
|
|
|
|
}
|
|
|
// 暂无客服
|
|
|
@@ -1183,14 +1232,14 @@
|
|
|
}
|
|
|
// 历史信息
|
|
|
if(redata.message_type == 'toOld'){
|
|
|
- console.log(redata,'历史信息');
|
|
|
- let obj = redata
|
|
|
- this.historyMsg = true;
|
|
|
- this.historyMsgtext = obj.data.content;
|
|
|
- obj.data.chatLog.forEach(res => {
|
|
|
- console.log(res,'每一个')
|
|
|
- this.hisSviceChat.push(res)
|
|
|
- })
|
|
|
+ // console.log(redata,'历史信息');
|
|
|
+ // let obj = redata
|
|
|
+ // this.historyMsg = true;
|
|
|
+ // this.historyMsgtext = obj.data.content;
|
|
|
+ // obj.data.chatLog.forEach(res => {
|
|
|
+ // console.log(res,'每一个')
|
|
|
+ // this.hisSviceChat.push(res)
|
|
|
+ // })
|
|
|
this.customerSviceChat.push({type: 'system', str: 'historyMsg'})
|
|
|
}
|
|
|
},
|