lyuis 7 miesięcy temu
rodzic
commit
b97e73913b
2 zmienionych plików z 27 dodań i 9 usunięć
  1. 26 8
      pages/msg/im.vue
  2. 1 1
      pages/msg/index.vue

+ 26 - 8
pages/msg/im.vue

@@ -10,14 +10,24 @@
 				
 				<!-- 中间用户信息 -->
 				<view class="navbar-center">
-					<view class="user-info">
+					<view v-if="userType==1" class="user-info">
 						<view class="avatar-container">
-							<image :src="postPushInfo.company ? postPushInfo.company.companyLogo : '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
+							<image :src="postPushInfo.hr&&postPushInfo.hr.hrImg || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
 							<view class="status-indicator"></view>
 						</view>
 						<view class="user-details">
-							<view class="user-name">{{ postPushInfo.company ? postPushInfo.company.companyLegalPerson : '未知' }}</view>
-							<view class="user-title">{{ postPushInfo.company ? postPushInfo.company.companyName : '未知公司' }}</view>
+							<view class="user-name">{{ postPushInfo.user&&postPushInfo.user.userName || '未知' }}</view>
+							<view class="user-title">{{ postPushInfo.company ? postPushInfo.company.companyName : '未知公司' }} · {{postPushInfo.hr&&postPushInfo.hr.hrPosition || '未知'}}</view>
+						</view>
+					</view>
+					<view v-else class="user-info">
+						<view class="avatar-container">
+							<image :src="resumesInfo.avatar || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
+							<view class="status-indicator"></view>
+						</view>
+						<view class="user-details">
+							<view class="user-name">{{ resumesInfo.userName || '未知' }}</view>
+							<view class="user-title">{{ postPushInfo.ruleClassifyName || '未知岗位' }}</view>
 						</view>
 					</view>
 				</view>
@@ -1031,6 +1041,8 @@
 				this.getInterviewList()
 			} else {
 				this.resumesId = d.resumesId
+				this.postPushId = d.postPushId
+				this.getPostPushInfo(this.postPushId)
 				//获取简历信息
 				this.getResumesInfo(this.resumesId)
 			}
@@ -1119,6 +1131,7 @@
 			},
 			// 显示更多选项
 			showMoreOptions() {
+				return this.$queue.showToast('waiting...')
 				// 可以添加更多选项的弹窗或菜单
 				// console.log('显示更多选项');
 				uni.navigateTo({
@@ -1564,7 +1577,10 @@
 				this.$Request.getT("/app/interviewRecord/isSendView", data).then(res => {
 					if (res.code == 0) {
 						if (res.data) {
-							this.mianshiShow = true
+							//this.mianshiShow = true
+							uni.navigateTo({
+								url:`/pages/msg/interviewInvitation?postPushId=${this.postPushId}&resumesId=${this.resumesId}&interviewerId=${this.resumesInfo.userId}`
+							})
 						} else {
 							uni.showToast({
 								title: '已发送过面试邀请',
@@ -1807,7 +1823,7 @@
 					companyId: uni.getStorageSync('companyId')
 				}).then(res => {
 					if (res.code == 0) {
-						let title = res.data.resumesName
+						let title = res.data.userName
 						uni.setNavigationBarTitle({
 							title: title
 						})
@@ -1828,12 +1844,14 @@
 					postPushId: id
 				}).then(res => {
 					if (res.code == 0) {
-						let title = res.data.company.companyName
+						if(this.userType==1){
+						let title = res.data.company?res.data.company.companyName:'聊天'
 						uni.setNavigationBarTitle({
 							title: title
 						})
+						}
 						this.postPushInfo = res.data
-						this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
+						this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare&&this.postPushInfo.positionWelfare.split(',')||[]
 					}
 				})
 			},

+ 1 - 1
pages/msg/index.vue

@@ -73,7 +73,7 @@
 									{{item.userName}}
 								</view>
 								<text class="text-grey"
-									style="font-size: 22rpx;margin-left: 10rpx;">{{item.stationName}}
+									style="font-size: 22rpx;margin-left: 10rpx;"><text v-if="item.companyName">{{item.companyName}} |</text> {{item.stationName}}
 								</text>
 							</view>
 							<view class="text-grey">{{item.messageTime?getMonthOrDay(item.messageTime):''}}</view>