|
@@ -259,7 +259,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="time-favorite flex justify-between align-center">
|
|
<view class="time-favorite flex justify-between align-center">
|
|
|
<view class="time-text">
|
|
<view class="time-text">
|
|
|
- {{conversationInfo.createTime&&conversationInfo.createTime.substring(0,10)}} 沟通的职位-亚马逊{{resumesInfo.intentionRuleClassifyName}}
|
|
|
|
|
|
|
+ {{conversationInfo.createTime&&conversationInfo.createTime.substring(0,10)}} 沟通的职位-{{resumesInfo.intentionRuleClassifyName}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -411,8 +411,8 @@
|
|
|
{{item.content}}已拒绝
|
|
{{item.content}}已拒绝
|
|
|
</view>
|
|
</view>
|
|
|
<view class="chat-listitem-text bg-style" style="margin-left: 20rpx;"
|
|
<view class="chat-listitem-text bg-style" style="margin-left: 20rpx;"
|
|
|
- v-if="item.content && (item.messageType === 96 || item.messageType === 97)">{{item.content}}</view>
|
|
|
|
|
- <view v-if="item.content && item.messageType === 99"
|
|
|
|
|
|
|
+ v-if="item.content && (item.messageType === 96 || item.messageType === 97)" @click="goToInterviewDetail(item)">{{item.content}}</view>
|
|
|
|
|
+ <view v-if="item.content && item.messageType === 99" @click="goToInterviewDetail(item)"
|
|
|
class="chat-listitem-text"
|
|
class="chat-listitem-text"
|
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
@@ -421,7 +421,7 @@
|
|
|
您收到了{{item.content}}
|
|
您收到了{{item.content}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="item.content && item.messageType === 98"
|
|
|
|
|
|
|
+ <view v-if="item.content && item.messageType === 98" @click="goToInterviewDetail(item)"
|
|
|
class="chat-listitem-text"
|
|
class="chat-listitem-text"
|
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
@@ -532,8 +532,8 @@
|
|
|
{{item.content}}已拒绝
|
|
{{item.content}}已拒绝
|
|
|
</view>
|
|
</view>
|
|
|
<view class="chat-listitem-text bg-style" style="margin-right: 20rpx;"
|
|
<view class="chat-listitem-text bg-style" style="margin-right: 20rpx;"
|
|
|
- v-if="item.content && (item.messageType === 96 || item.messageType === 97)">{{item.content}}</view>
|
|
|
|
|
- <view v-if="item.content && item.messageType === 99"
|
|
|
|
|
|
|
+ v-if="item.content && (item.messageType === 96 || item.messageType === 97)" @click="goToInterviewDetail(item)">{{item.content}}</view>
|
|
|
|
|
+ <view v-if="item.content && item.messageType === 99" @click="goToInterviewDetail(item)"
|
|
|
class="chat-listitem-text textColor"
|
|
class="chat-listitem-text textColor"
|
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
@@ -542,7 +542,7 @@
|
|
|
您发送了{{item.content}}
|
|
您发送了{{item.content}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="item.content && item.messageType === 98"
|
|
|
|
|
|
|
+ <view v-if="item.content && item.messageType === 98" @click="goToInterviewDetail(item)"
|
|
|
class="chat-listitem-text textColor"
|
|
class="chat-listitem-text textColor"
|
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
|
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
@@ -738,7 +738,7 @@
|
|
|
</u-select>
|
|
</u-select>
|
|
|
|
|
|
|
|
<u-action-sheet :list="list" @click="click" v-model="show"></u-action-sheet>
|
|
<u-action-sheet :list="list" @click="click" v-model="show"></u-action-sheet>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- ——————————————————————————-废弃 开始——————————————————————---- -->
|
|
|
<u-popup v-model="mianshiShow" mode="bottom" z-index="998" :mask-close-able="false" border-radius="14"
|
|
<u-popup v-model="mianshiShow" mode="bottom" z-index="998" :mask-close-able="false" border-radius="14"
|
|
|
@close="cleanMs" :closeable="true">
|
|
@close="cleanMs" :closeable="true">
|
|
|
<view class="mianshiTitle">面试邀请</view>
|
|
<view class="mianshiTitle">面试邀请</view>
|
|
@@ -791,6 +791,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</u-popup>
|
|
</u-popup>
|
|
|
|
|
+ <!-- ——————————————————————————-废弃 结束——————————————————————---- -->
|
|
|
<u-toast ref="uToast" />
|
|
<u-toast ref="uToast" />
|
|
|
<u-picker v-model="msTime" mode="time" :params="params" @confirm="mianshiConfirm" confirm-color="#016BF6">
|
|
<u-picker v-model="msTime" mode="time" :params="params" @confirm="mianshiConfirm" confirm-color="#016BF6">
|
|
|
</u-picker>
|
|
</u-picker>
|
|
@@ -1246,6 +1247,13 @@
|
|
|
// this.recordsInter = null
|
|
// this.recordsInter = null
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ goToInterviewDetail(item){
|
|
|
|
|
+ if(item.recordId){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: `/my/jilu/bossMianshiDetail?recordId=${item.recordId}`
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 返回上一页
|
|
// 返回上一页
|
|
|
goBack() {
|
|
goBack() {
|
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|
|
@@ -1520,7 +1528,7 @@
|
|
|
title: '已接受面试邀请'
|
|
title: '已接受面试邀请'
|
|
|
})
|
|
})
|
|
|
that.msshow = false;
|
|
that.msshow = false;
|
|
|
- that.setChatSave(97)
|
|
|
|
|
|
|
+ that.setChatSave(97,res.data)
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
title: res.msg,
|
|
@@ -1563,7 +1571,7 @@
|
|
|
title: '已拒绝来自' + item.company.companyName + '的面试邀请'
|
|
title: '已拒绝来自' + item.company.companyName + '的面试邀请'
|
|
|
})
|
|
})
|
|
|
that.msshow = false;
|
|
that.msshow = false;
|
|
|
- that.setChatSave(96)
|
|
|
|
|
|
|
+ that.setChatSave(96,res.data)
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
title: res.msg,
|
|
@@ -2456,42 +2464,46 @@
|
|
|
return result
|
|
return result
|
|
|
},
|
|
},
|
|
|
getDateDiff(data) {
|
|
getDateDiff(data) {
|
|
|
- // 传进来的data必须是日期格式,不能是时间戳
|
|
|
|
|
- //var str = data;
|
|
|
|
|
- //将字符串转换成时间格式
|
|
|
|
|
- var timePublish = new Date(data);
|
|
|
|
|
- var timeNow = new Date();
|
|
|
|
|
- var minute = 1000 * 60;
|
|
|
|
|
- var hour = minute * 60;
|
|
|
|
|
- var day = hour * 24;
|
|
|
|
|
- var month = day * 30;
|
|
|
|
|
- var result = "2";
|
|
|
|
|
-
|
|
|
|
|
- var diffValue = timeNow - timePublish;
|
|
|
|
|
- var diffMonth = diffValue / month;
|
|
|
|
|
- var diffWeek = diffValue / (7 * day);
|
|
|
|
|
- var diffDay = diffValue / day;
|
|
|
|
|
- var diffHour = diffValue / hour;
|
|
|
|
|
- var diffMinute = diffValue / minute;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- if (diffMonth > 3) {
|
|
|
|
|
- result = timePublish.getFullYear() + "-";
|
|
|
|
|
- result += timePublish.getMonth() + "-";
|
|
|
|
|
- result += timePublish.getDate();
|
|
|
|
|
- } else if (diffMonth > 1) { //月
|
|
|
|
|
- result = data.substring(0, 10);
|
|
|
|
|
- } else if (diffWeek > 1) { //周
|
|
|
|
|
- result = data.substring(0, 10);
|
|
|
|
|
- } else if (diffDay > 1) { //天
|
|
|
|
|
- result = data.substring(0, 10);
|
|
|
|
|
- } else if (diffHour > 1) { //小时
|
|
|
|
|
- result = parseInt(diffHour) + "小时前";
|
|
|
|
|
- } else if (diffMinute > 1) { //分钟
|
|
|
|
|
- result = parseInt(diffMinute) + "分钟前";
|
|
|
|
|
|
|
+ // 1️⃣ 手动解析字符串,避免 iOS 时区问题
|
|
|
|
|
+ let timePublish;
|
|
|
|
|
+ if (typeof data === 'string') {
|
|
|
|
|
+ // 格式:2026-01-05 18:46:39
|
|
|
|
|
+ const parts = data.split(/[- :]/);
|
|
|
|
|
+ // 注意:月份从 0 开始
|
|
|
|
|
+ timePublish = new Date(parts[0], parts[1] - 1, parts[2], parts[3] || 0, parts[4] || 0, parts[5] || 0);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ timePublish = new Date(data);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ const timeNow = new Date();
|
|
|
|
|
+ const publishYear = timePublish.getFullYear();
|
|
|
|
|
+ const publishMonth = timePublish.getMonth() + 1;
|
|
|
|
|
+ const publishDate = timePublish.getDate();
|
|
|
|
|
+ const publishHour = timePublish.getHours().toString().padStart(2, '0');
|
|
|
|
|
+ const publishMinute = timePublish.getMinutes().toString().padStart(2, '0');
|
|
|
|
|
+
|
|
|
|
|
+ const oneDay = 1000 * 60 * 60 * 24;
|
|
|
|
|
+ // 用本地时间差计算天数
|
|
|
|
|
+ const diffDays = Math.floor((timeNow.setHours(0, 0, 0, 0) - timePublish.setHours(0, 0, 0, 0)) / oneDay);
|
|
|
|
|
+
|
|
|
|
|
+ const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
|
|
|
+ const weekStr = weekDays[timePublish.getDay()];
|
|
|
|
|
+ const sameYear = publishYear === timeNow.getFullYear();
|
|
|
|
|
+
|
|
|
|
|
+ let result = '';
|
|
|
|
|
+
|
|
|
|
|
+ if (diffDays === 0) {
|
|
|
|
|
+ result = `${publishHour}:${publishMinute}`;
|
|
|
|
|
+ } else if (diffDays === 1) {
|
|
|
|
|
+ result = `昨天 ${publishHour}:${publishMinute}`;
|
|
|
|
|
+ } else if (diffDays < 7) {
|
|
|
|
|
+ result = `${weekStr} ${publishHour}:${publishMinute}`;
|
|
|
|
|
+ } else if (sameYear) {
|
|
|
|
|
+ result = `${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
|
|
|
} else {
|
|
} else {
|
|
|
- result = "刚刚";
|
|
|
|
|
|
|
+ result = `${publishYear}年${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
return result;
|
|
return result;
|
|
|
},
|
|
},
|
|
|
// 发送心跳包
|
|
// 发送心跳包
|
|
@@ -2701,12 +2713,6 @@
|
|
|
// });
|
|
// });
|
|
|
// return;
|
|
// return;
|
|
|
// }
|
|
// }
|
|
|
- if(type == 96){
|
|
|
|
|
- this.content = '已拒绝面试邀请'
|
|
|
|
|
- }
|
|
|
|
|
- if(type == 97){
|
|
|
|
|
- this.content = '已接受面试邀请'
|
|
|
|
|
- }
|
|
|
|
|
let userId = this.$queue.getData('userId');
|
|
let userId = this.$queue.getData('userId');
|
|
|
if (type === 4) {
|
|
if (type === 4) {
|
|
|
this.content = url;
|
|
this.content = url;
|
|
@@ -2751,7 +2757,23 @@
|
|
|
messageType: type,
|
|
messageType: type,
|
|
|
chatConversationId: this.chatConversationId
|
|
chatConversationId: this.chatConversationId
|
|
|
}
|
|
}
|
|
|
- } else {
|
|
|
|
|
|
|
+ } else if (type == 96){
|
|
|
|
|
+ data = {
|
|
|
|
|
+ userId: this.byUserId,
|
|
|
|
|
+ content: '已拒绝面试邀请',
|
|
|
|
|
+ messageType: type,
|
|
|
|
|
+ chatConversationId: this.chatConversationId,
|
|
|
|
|
+ recordId:url
|
|
|
|
|
+ }
|
|
|
|
|
+ }else if(type == 97){
|
|
|
|
|
+ data = {
|
|
|
|
|
+ userId: this.byUserId,
|
|
|
|
|
+ content: '已接受面试邀请',
|
|
|
|
|
+ messageType: type,
|
|
|
|
|
+ chatConversationId: this.chatConversationId,
|
|
|
|
|
+ recordId:url
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
data = {
|
|
data = {
|
|
|
userId: this.byUserId,
|
|
userId: this.byUserId,
|
|
|
content: this.content,
|
|
content: this.content,
|