|
|
@@ -601,7 +601,7 @@
|
|
|
userConversation: {}, //用户当前会话
|
|
|
machineAndAtl: 10, //默认为机器人,100为人工
|
|
|
satisfaction: 1, //评价满意度,1为满意,2为一般,3为不满意
|
|
|
- url: 'https://manage.281570.com', // 域名地址
|
|
|
+ url: '', // 域名地址
|
|
|
user_info: '', // 用户信息
|
|
|
// 人工客服信息
|
|
|
service: '',
|
|
|
@@ -761,7 +761,7 @@
|
|
|
upImg(formData) {
|
|
|
let self = this;
|
|
|
// 数据结构请求
|
|
|
- this.$axios.post('/api/index/upload/uploadImg', formData).then(res => {
|
|
|
+ this.$http.post('/index/upload/uploadImg', formData).then(res => {
|
|
|
// console.log(res.data.data)
|
|
|
// console.log(res.data.data.src);
|
|
|
let str = this.information;
|
|
|
@@ -1114,7 +1114,7 @@
|
|
|
changeService() {
|
|
|
this.nloding("加载人工客服列表请等待");
|
|
|
// if(!this.isConnection) return
|
|
|
- this.$axios.post('/api/index/groups/index', {}, {
|
|
|
+ this.$http.post('/index/groups/index', {}, {
|
|
|
headers: {
|
|
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
'apiToken': this.setApiToken('index', 'groups', 'index')
|
|
|
@@ -1160,7 +1160,7 @@
|
|
|
|
|
|
/***************获取热点智能问题*************** */
|
|
|
getProblem() {
|
|
|
- this.$axios.post('/api/index/robot/index', {groups_id: 1, robotgroups_id: 1}, {
|
|
|
+ this.$http.post('/index/robot/index', {groups_id: 1, robotgroups_id: 1}, {
|
|
|
headers: {
|
|
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
'apiToken': this.setApiToken('index', 'robot', 'index')
|
|
|
@@ -1174,7 +1174,7 @@
|
|
|
|
|
|
/*****************获取聊天次数*******************/
|
|
|
getChatNum() {
|
|
|
- this.$axios.post('/api/index/evaluate/minRound', '', {
|
|
|
+ this.$http.post('/index/evaluate/minRound', '', {
|
|
|
headers: {
|
|
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
'apiToken': this.setApiToken('minround', 'evaluate', 'index')
|
|
|
@@ -1208,7 +1208,7 @@
|
|
|
initWebSocket() {
|
|
|
let _this = this;
|
|
|
let apiToken = this.$md5.hex_md5('customer-service' + window.location.origin);
|
|
|
- this.websock = new WebSocket('wss://link.281570.com?apiToken=' + apiToken);
|
|
|
+ this.websock = new WebSocket('wss://'+window.url_https_wss+'?apiToken=' + apiToken);
|
|
|
// console.log(this.websock)
|
|
|
this.websock.debug = true;
|
|
|
// 数据接收
|
|
|
@@ -1799,7 +1799,7 @@
|
|
|
let data = {
|
|
|
userToken: ''
|
|
|
}
|
|
|
- this.$axios.post('/api/index/index/sensitiveWords', '', obj).then(res => {
|
|
|
+ this.$http.post('/index/index/sensitiveWords', '', obj).then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
// console.log(res.data.data);
|
|
|
res.data.data.userSensitive.forEach(res => {
|
|
|
@@ -1827,8 +1827,9 @@
|
|
|
/**************页面加载中挂载**************** */
|
|
|
mounted() {
|
|
|
let self = this;
|
|
|
+ this.url = window.url_https_ajax;
|
|
|
this.frceArr = frce.frce;
|
|
|
- this.$axios.get('api/index/index/systime?t=' + new Date()).then(res => {
|
|
|
+ this.$http.get('/index/index/systime?t=' + new Date()).then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
// 获取系统时间
|
|
|
let date = res.data.data.time.split(" ");
|