|
|
@ -200,7 +200,17 @@ export default { |
|
|
personnel_id: this.chatFriendsInfoParams.personnel_id,//员工资源ID |
|
|
personnel_id: this.chatFriendsInfoParams.personnel_id,//员工资源ID |
|
|
customer_resources_id: this.chatFriendsInfoParams.customer_resources_id,//学生资源ID |
|
|
customer_resources_id: this.chatFriendsInfoParams.customer_resources_id,//学生资源ID |
|
|
} |
|
|
} |
|
|
let res = await apiRoute.xs_chatGetChatFriendsInfo(params) |
|
|
|
|
|
|
|
|
let res |
|
|
|
|
|
if( this.from_type == 'personnel'){ |
|
|
|
|
|
//员工 |
|
|
|
|
|
res = await apiRoute.xs_chatGetChatFriendsInfo(params) |
|
|
|
|
|
}else{ |
|
|
|
|
|
//学生 |
|
|
|
|
|
res = await apiRoute.xy_chatGetChatFriendsInfo(params) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (res.code != 1){ |
|
|
if (res.code != 1){ |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: res.msg, |
|
|
title: res.msg, |
|
|
@ -253,7 +263,17 @@ export default { |
|
|
this.tableList = [] |
|
|
this.tableList = [] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let res = await apiRoute.xs_chatGetChatMessagesList(data)//获取消息列表 |
|
|
|
|
|
|
|
|
let res |
|
|
|
|
|
if( this.from_type == 'personnel'){ |
|
|
|
|
|
//员工 |
|
|
|
|
|
res = await apiRoute.xs_chatGetChatMessagesList(data)//获取消息列表 |
|
|
|
|
|
}else{ |
|
|
|
|
|
//学生 |
|
|
|
|
|
res = await apiRoute.xy_chatGetChatMessagesList(data)//获取消息列表 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = false |
|
|
this.loading = false |
|
|
this.isReachedBottom = false; |
|
|
this.isReachedBottom = false; |
|
|
if (res.code != 1){ |
|
|
if (res.code != 1){ |
|
|
@ -327,7 +347,16 @@ export default { |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let res = await apiRoute.xs_chatSendChatMessages(data) |
|
|
|
|
|
|
|
|
let res |
|
|
|
|
|
if( this.from_type == 'personnel'){ |
|
|
|
|
|
//员工 |
|
|
|
|
|
res = await apiRoute.xs_chatSendChatMessages(data) |
|
|
|
|
|
}else{ |
|
|
|
|
|
//学生 |
|
|
|
|
|
res = await apiRoute.xy_chatSendChatMessages(data) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (res.code != 1) { |
|
|
if (res.code != 1) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: res.msg, |
|
|
title: res.msg, |
|
|
@ -370,7 +399,7 @@ export default { |
|
|
this.moreShow = false |
|
|
this.moreShow = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//但文件上传回调 |
|
|
//文件上传回调 |
|
|
uplodeImageRes(resData,extraData){ |
|
|
uplodeImageRes(resData,extraData){ |
|
|
console.log('上传成功回调',resData,extraData) |
|
|
console.log('上传成功回调',resData,extraData) |
|
|
//判断是不是上传相册图片 |
|
|
//判断是不是上传相册图片 |
|
|
|