|
|
|
|
/* 微信风格聊天页面样式 */
|
|
|
|
|
.container {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 头部导航栏 - 现代填充风格 */
|
|
|
|
|
.header-full {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 92rpx;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
border-bottom: 1rpx solid #e0e0e0;
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-left,
|
|
|
|
|
.header-right {
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-left {
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
padding-left: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-right {
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
padding-right: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-center {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title-large {
|
|
|
|
|
font-size: 38rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #000000;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-btn {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 70rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
border-radius: 35rpx;
|
|
|
|
|
transition: background-color 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-btn:active {
|
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-btn .icon-back {
|
|
|
|
|
font-size: 44rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-btn {
|
|
|
|
|
margin-left: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-btn .icon-search {
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-btn .icon-more {
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 微信风格的消息类型切换 */
|
|
|
|
|
.tabs-wechat {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
height: 76rpx;
|
|
|
|
|
border-bottom: 1rpx solid #e0e0e0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tab-item {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #666666;
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tab-item.active {
|
|
|
|
|
color: #07c160;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tab-item.active::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 20rpx;
|
|
|
|
|
right: 20rpx;
|
|
|
|
|
height: 4rpx;
|
|
|
|
|
background-color: #07c160;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.clear-unread {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #1677ff;
|
|
|
|
|
padding: 0 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 消息列表 - 微信风格 */
|
|
|
|
|
.message-list-wechat {
|
|
|
|
|
flex: 1;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 提示消息 */
|
|
|
|
|
.message-tips {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
color: #999999;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 消息项 - 微信风格 */
|
|
|
|
|
.message-item-wechat {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 20rpx 30rpx;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 头像容器 */
|
|
|
|
|
.avatar-container-wechat {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-right: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 头像 - 微信风格 */
|
|
|
|
|
.avatar-wechat {
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
background-color: #07c160;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 未读红点 */
|
|
|
|
|
.unread-dot {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -6rpx;
|
|
|
|
|
right: -6rpx;
|
|
|
|
|
width: 28rpx;
|
|
|
|
|
height: 28rpx;
|
|
|
|
|
border-radius: 14rpx;
|
|
|
|
|
background-color: #ff3b30;
|
|
|
|
|
border: 3rpx solid #ffffff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 未读数字角标 - 微信风格 */
|
|
|
|
|
.unread-badge-wechat {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -8rpx;
|
|
|
|
|
right: -8rpx;
|
|
|
|
|
min-width: 36rpx;
|
|
|
|
|
height: 36rpx;
|
|
|
|
|
padding: 0 10rpx;
|
|
|
|
|
border-radius: 18rpx;
|
|
|
|
|
background-color: #ff3b30;
|
|
|
|
|
border: 3rpx solid #ffffff;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 消息内容区域 */
|
|
|
|
|
.message-content-wechat {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
min-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 消息头部:名称和时间 */
|
|
|
|
|
.message-header-wechat {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.name-wechat {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #000000;
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.time-wechat {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #999999;
|
|
|
|
|
margin-left: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 消息文本 */
|
|
|
|
|
.message-text-wechat {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #999999;
|
|
|
|
|
line-height: 40rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.unread-dot-small {
|
|
|
|
|
color: #ff3b30;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
margin-right: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-content-text {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 空状态提示 - 微信风格 */
|
|
|
|
|
.empty-state-wechat {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 150rpx 0;
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-icon-wechat {
|
|
|
|
|
font-size: 120rpx;
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-text-wechat {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #666666;
|
|
|
|
|
margin-bottom: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-subtext {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 滚动条样式优化 */
|
|
|
|
|
.message-list-wechat::-webkit-scrollbar {
|
|
|
|
|
width: 6rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-list-wechat::-webkit-scrollbar-track {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-list-wechat::-webkit-scrollbar-thumb {
|
|
|
|
|
background: #cccccc;
|
|
|
|
|
border-radius: 3rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-list-wechat::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background: #999999;
|
|
|
|
|
}
|