Browse Source

优化消息页面

LinWuTai 5 days ago
parent
commit
8dab9be720
1 changed files with 8 additions and 5 deletions
  1. 8 5
      pages/chat/chat.vue

+ 8 - 5
pages/chat/chat.vue

@@ -32,11 +32,11 @@
 						</view>
 						<view class="tag" v-show="!item.read"></view>
 					</view>
-					<!-- <view class="other-box">
+					<view class="other-box">
 						<view class="date">
-							{{item.createTime}}
+							{{getDate(item.createTime)}}
 						</view>
-					</view> -->
+					</view>
 				</view>
 				<view class="line-box"></view>
 			</view>
@@ -83,6 +83,9 @@
 		pageSize: 10
 	})
 	const list = ref([])
+	function getDate(date) {
+		return date.split(' ')[0]
+	}
 	
 	function onSearchConfirm() {
 		searchForm.value.pageNumber = 1
@@ -244,8 +247,8 @@
 					// 	}
 					// }
 					.content-box {
-						// width: 85%;
-						width: 100%;
+						width: 85%;
+						// width: 100%;
 						display: flex;
 						flex-direction: column;
 						justify-content: space-around;