Files
xingque/pages/messages/messages.wxss
2026-07-09 00:17:03 +08:00

400 lines
5.8 KiB
Plaintext

/* pages/messages/messages.wxss */
.msg-page {
background: #f5f5f5;
min-height: 100vh;
}
/* 顶部搜索 + 通知 */
.header {
display: flex;
align-items: center;
padding: 20rpx 24rpx;
background: #fff;
border-bottom: 1rpx solid #e8e8e8;
}
.im-status-bar {
display: flex;
align-items: center;
padding: 16rpx 24rpx;
background: #fff1f0;
border-bottom: 1rpx solid #ffccc7;
}
.im-status-bar--warn {
background: linear-gradient(90deg, #fff7e6 0%, #fff1f0 100%);
}
.im-status-icon {
font-size: 28rpx;
margin-right: 12rpx;
color: #fa541c;
}
.im-status-text {
font-size: 26rpx;
color: #cf1322;
font-weight: 500;
}
.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: flex-start;
padding: 24rpx;
border-bottom: 1rpx solid #f0f0f0;
transition: background 0.15s;
}
.order-group-item {
padding: 22rpx 24rpx;
}
.order-compact {
margin-top: 8rpx;
padding-top: 8rpx;
border-top: 1rpx solid #f3f3f3;
}
.order-compact-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8rpx;
margin-bottom: 4rpx;
}
.order-id-tag {
font-size: 20rpx;
color: #999;
background: #f0f0f0;
padding: 2rpx 10rpx;
border-radius: 6rpx;
}
.order-id-text {
font-size: 22rpx;
color: #576b95;
}
.order-status-inline {
font-size: 20rpx;
color: #07c160;
background: #e8f8ef;
padding: 2rpx 10rpx;
border-radius: 6rpx;
}
.order-desc-compact {
display: block;
font-size: 24rpx;
color: #888;
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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;
}
.avatar-round {
border-radius: 50%;
}
.user-meta-row {
margin-bottom: 4rpx;
}
.user-meta {
font-size: 24rpx;
color: #333;
}
.user-meta.sub {
color: #666;
font-size: 22rpx;
}
.order-block {
background: #f7f8fa;
border-radius: 12rpx;
padding: 16rpx 18rpx;
margin-bottom: 10rpx;
}
.order-id {
display: block;
font-size: 24rpx;
color: #576b95;
margin-bottom: 6rpx;
}
.order-desc {
display: block;
font-size: 26rpx;
color: #333;
line-height: 1.5;
word-break: break-all;
}
.order-status {
display: inline-block;
font-size: 22rpx;
color: #07c160;
margin-top: 8rpx;
padding: 2rpx 12rpx;
background: #e8f8ef;
border-radius: 8rpx;
}
.info {
flex: 1;
min-width: 0;
}
.top-line {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8rpx;
}
.name-col {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.uid-tag {
font-size: 22rpx;
color: #999;
margin-top: 2rpx;
}
.name {
font-size: 30rpx;
color: #1a1a1a;
font-weight: 500;
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 {
padding: 16rpx 24rpx 8rpx;
background: #fff;
}
.kefu-btn {
width: 100%;
height: 88rpx;
line-height: 88rpx;
background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
font-weight: 700;
box-shadow: 0 8rpx 24rpx rgba(7, 193, 96, 0.35);
border: none;
}
.kefu-btn::after {
border: none;
}
/* 操作弹窗 */
.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;
}