Explorar el Código

feat:在线状态

jianghaili hace 7 meses
padre
commit
3e007c71e2

+ 1 - 1
my/enterpriseInfo/enterpriseInfo.vue

@@ -156,7 +156,7 @@
 								<view class="hr-avatar">
 									<image :src="hr.hrImg" mode="aspectFill" />
 								</view>
-								<view class="online-dot"></view>
+								<view class="online-dot"  :style="{'background':hr&&hr.onlineStatus=='ONLINE'?'#00D26A':'#999'}"></view>
 							</view>
 							<view class="hr-text">
 								<view class="hr-name">{{ hr.name }}</view>

+ 2 - 1
my/jilu/mianshiDetail.vue

@@ -254,7 +254,8 @@ export default {
 				width:20,
 				height:20,
 					callout: {
-						content: res.data.detailedAddress,
+						// content: res.data.detailedAddress,
+						content: res.data.address,
 						color: '#000', //文字颜色
 						fontSize: 10, //文本大小
 						padding: 5, //附近留白

+ 1 - 1
pages/index/game/order.vue

@@ -93,7 +93,7 @@
 						{{info.hr&&info.hr.hrPosition||''}}
 					</view>
 				    <view>
-						{{info.respondTime||'未沟通'}}
+						{{info.respondTime||(info.user&&(info.user.onlineMinutes=='从未在线'?'不久前在线':info.user.onlineMinutes))}}
 					</view>
 				</view>
 			</view>

+ 34 - 1
pages/index/index.vue

@@ -391,8 +391,14 @@
 								<view class="qyList-box-item-box">
 									<view class="qyList-box-item-info flex justify-between align-center">
 										<view class="qyList-box-item-info-l">
-											<view class="" style="color: #212121;font-size: 38rpx;font-weight: 800;">
+											<view class="online-name" style="color: #212121;font-size: 38rpx;font-weight: 800;">
 												{{ item.userName }}
+												<view class="online-txt" :style="{ 'background': item.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#eee', 'color': item.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 1)' : '#999' }">
+													<view class="dot-icon"
+														:style="{ 'background': item.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 1)' : '#999' }">
+													</view>
+													{{ item.onlineStatus == 'ONLINE' ? '在线' : '离线' }}
+												</view>
 											</view>
 											<view class="flex align-center flex-wrap"
 												style="color: #999999;font-size: 26rpx;margin-top: 10rpx;">
@@ -1877,6 +1883,33 @@ export default {
 	align-items: center;
 	flex: 1;
 }
+.online-name{
+	display: flex;
+	align-items: center;
+	gap: 12rpx;
+}
+.online-txt {
+	border-radius: 8rpx;
+	background: rgba(213, 255, 231, 1);
+	color: rgba(29, 209, 104, 1);
+	font-family: DM Sans;
+	font-size: 16rpx;
+	font-weight: 400;
+	line-height: 20rpx;
+	padding: 8rpx;
+	box-sizing: border-box;
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	gap: 8rpx;
+	border: 1rpx solid #fff;
+	.dot-icon {
+		width: 10rpx;
+		height: 10rpx;
+		border-radius: 50%;
+		background-color: #00DD9A;
+	}
+}
 
 .txt-desc-box {
 	gap: 16rpx;

+ 2 - 2
pages/msg/im.vue

@@ -13,7 +13,7 @@
 					<view v-if="userType==1" class="user-info">
 						<view class="avatar-container">
 							<image :src="postPushInfo.hr&&postPushInfo.hr.hrImg || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
-							<view class="status-indicator"></view>
+							<view class="status-indicator"  :style="{ 'background': postPushInfo.user&&postPushInfo.user.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#999' }"></view>
 						</view>
 						<view class="user-details">
 							<view class="user-name">{{ postPushInfo.user&&postPushInfo.user.userName || '未知' }}</view>
@@ -23,7 +23,7 @@
 					<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 class="status-indicator" :style="{ 'background': postPushInfo.user&&postPushInfo.user.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#999' }"></view>
 						</view>
 						<view class="user-details">
 							<view class="user-name">{{ resumesInfo.userName || '未知' }}</view>

+ 1 - 1
pages/msg/index.vue

@@ -64,7 +64,7 @@
 				<view class="flex padding-tb ">
 					<view class="avatar-container">
 						<u-image shape="circle" width='80rpx' height="80rpx" :src="item.avatar"></u-image>
-						<view class="online-dot"></view>
+						<!-- <view class="online-dot"></view> -->
 					</view>
 					<view class="flex-sub margin-left-sm">
 						<view class="flex justify-between align-center">