Files
xingque/pages/messages/messages.wxss

255 lines
3.6 KiB
Plaintext

/* pages/messages/messages.wxss */
.msg-page {
background: #f5f5f5;
min-height: 100vh;
}
/* 顶部搜索 + 通知 */
.header {
display: flex;
align-items: center;
padding: 20rpx 24rpx;
background: #fff;
}
.search-bar {
flex: 1;
display: flex;
align-items: center;
background: #f5f5f5;
border-radius: 36rpx;
padding: 0 24rpx;
height: 68rpx;
}
.search-input {
flex: 1;
height: 68rpx;
font-size: 28rpx;
color: #333;
}
.search-icon {
font-size: 28rpx;
margin-left: 10rpx;
color: #999;
}
.notify-switch {
margin-left: 20rpx;
flex-shrink: 0;
}
.notify-text {
font-size: 24rpx;
color: #666;
padding: 10rpx 20rpx;
background: #f0f0f0;
border-radius: 30rpx;
}
/* TAB 栏 */
.tab-row {
display: flex;
background: #fff;
border-bottom: 1rpx solid #e8e8e8;
}
.tab-item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 88rpx;
position: relative;
font-size: 28rpx;
color: #666;
}
.tab-item.active {
color: #07c160;
font-weight: 600;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60rpx;
height: 6rpx;
background: #07c160;
border-radius: 3rpx;
}
.tab-label {
line-height: 1;
}
.tab-badge {
background: #fa5151;
color: #fff;
font-size: 20rpx;
border-radius: 20rpx;
padding: 2rpx 10rpx;
margin-left: 8rpx;
line-height: 1.2;
}
/* 会话列表 */
.conversation-list {
background: #fff;
}
.conversation-item {
display: flex;
align-items: center;
padding: 24rpx;
border-bottom: 1rpx solid #f0f0f0;
transition: background 0.15s;
}
.conversation-item:active {
background: #f5f5f5;
}
.has-unread {
background: #fafafa;
}
.avatar {
width: 96rpx;
height: 96rpx;
border-radius: 12rpx;
margin-right: 20rpx;
background: #eee;
flex-shrink: 0;
}
.info {
flex: 1;
min-width: 0;
}
.top-line {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8rpx;
}
.name {
font-size: 30rpx;
color: #1a1a1a;
font-weight: 500;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.time {
font-size: 22rpx;
color: #999;
flex-shrink: 0;
margin-left: 16rpx;
}
.bottom-line {
display: flex;
justify-content: space-between;
align-items: center;
}
.last-msg {
font-size: 26rpx;
color: #888;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.unread-dot {
background: #fa5151;
color: #fff;
font-size: 20rpx;
border-radius: 50%;
min-width: 36rpx;
height: 36rpx;
line-height: 36rpx;
text-align: center;
margin-left: 12rpx;
flex-shrink: 0;
}
.load-tip {
text-align: center;
padding: 24rpx;
color: #999;
font-size: 24rpx;
}
.empty {
text-align: center;
padding: 200rpx 0;
color: #bbb;
font-size: 28rpx;
}
/* 客服入口 */
.kefu-entry {
text-align: center;
padding: 100rpx 0;
}
.kefu-btn {
width: 300rpx;
background: #07c160;
color: #fff;
border-radius: 40rpx;
font-size: 28rpx;
}
/* 操作弹窗 */
.action-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 10000;
display: flex;
align-items: flex-end;
animation: fadeIn 0.2s ease-out;
}
.action-sheet {
width: 100%;
background: #fff;
border-radius: 24rpx 24rpx 0 0;
padding: 20rpx 20rpx 60rpx;
animation: slideInUp 0.25s ease-out;
}
.action-btn {
text-align: center;
padding: 28rpx 0;
font-size: 32rpx;
color: #333;
border-bottom: 1rpx solid #eee;
}
.action-btn:active {
background: #f5f5f5;
}
.cancel {
color: #999;
margin-top: 12rpx;
border-bottom: none;
}