处理patienmsg保错

This commit is contained in:
zoujiandong 2025-08-25 14:46:40 +08:00
parent d53228c901
commit b6120d9a40

View File

@ -145,98 +145,97 @@
}; };
</script> </script>
<style scoped> <style lang="scss" scoped>
.content { .content {
background-color: #f5f5f5; background-color: #f5f5f5;
min-height: 100vh; min-height: 100vh;
} }
/* 导航栏右侧按钮样式 */ //
.nav-right { .nav-right {
display: flex; display: flex;
align-items: center; align-items: center;
} }
/* 消息列表样式 */ //
.message-list { .message-list {
background-color: #ffffff; background-color: #ffffff;
margin-top: 20rpx; margin-top: 20rpx;
.message-item {
display: flex;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #f0f0f0;
background-color: #ffffff;
&:last-child {
border-bottom: none;
}
.message-avatar {
margin-right: 20rpx;
.avatar-placeholder {
width: 80rpx;
height: 80rpx;
background-color: #ff6b6b;
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
}
}
.message-content {
flex: 1;
.message-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.patient-name {
font-size: 32rpx;
color: #333333;
font-weight: 500;
}
.message-time {
font-size: 24rpx;
color: #999999;
}
.message-preview {
margin-top: 5rpx;
.preview-text {
font-size: 28rpx;
color: #666666;
}
}
}
}
//
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100rpx 0;
.empty-text {
margin-top: 20rpx;
font-size: 28rpx;
color: #999999;
}
}
} }
.message-item { //
display: flex;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #f0f0f0;
background-color: #ffffff;
}
.message-item:last-child {
border-bottom: none;
}
.message-avatar {
margin-right: 20rpx;
}
.avatar-placeholder {
width: 80rpx;
height: 80rpx;
background-color: #ff6b6b;
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
}
.message-content {
flex: 1;
}
.message-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.patient-name {
font-size: 32rpx;
color: #333333;
font-weight: 500;
}
.message-time {
font-size: 24rpx;
color: #999999;
}
.message-preview {
margin-top: 5rpx;
}
.preview-text {
font-size: 28rpx;
color: #666666;
}
/* 空状态样式 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100rpx 0;
}
.empty-text {
margin-top: 20rpx;
font-size: 28rpx;
color: #999999;
}
/* 底部标签栏样式 */
.tab-bar { .tab-bar {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@ -248,39 +247,43 @@
align-items: center; align-items: center;
border-top: 1rpx solid #e0e0e0; border-top: 1rpx solid #e0e0e0;
z-index: 999; z-index: 999;
}
.tab-item { .tab-item {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; position: relative;
height: 100%; height: 100%;
}
.tab-bar .tab-item:nth-child(2){
border: 2rpx solid red;
border-top: none;
border-bottom: :none;
}
.tab-text {
font-size: 28rpx;
color: #999999;
transition: color 0.3s;
}
.tab-item.active .tab-text { &:nth-child(2) {
color: #8B2316; border: 2rpx solid #ccc;
font-weight: 500; border-top: none;
} border-bottom: none;
}
.tab-line { .tab-text {
position: absolute; font-size: 28rpx;
bottom: 0; color: #999999;
width: 60rpx; transition: color 0.3s;
height: 4rpx; }
background-color: #8B2316;
border-radius: 2rpx; &.active {
.tab-text {
color: #8B2316;
font-weight: 500;
}
.tab-line {
position: absolute;
bottom: 0;
width: 60rpx;
height: 4rpx;
background-color: #8B2316;
border-radius: 2rpx;
}
}
}
} }
</style> </style>