发货方式优化及消息功能优化

This commit is contained in:
Dev
2026-10-08 20:34:08 +08:00
parent f21b010ced
commit 7e3e999b74
23 changed files with 371 additions and 455 deletions
+45 -126
View File
@@ -1,145 +1,64 @@
/* pages/message/detail/index.wxss */
.message-detail {
display: flex;
flex-direction: column;
height: 100vh;
min-height: 100vh;
padding: 24rpx;
box-sizing: border-box;
background: var(--bg-page);
}
.service-info {
padding: 20rpx;
.detail-loading {
display: flex;
justify-content: center;
padding-top: 120rpx;
}
.detail-card {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 32rpx;
box-shadow: var(--shadow-card);
}
.detail-header {
display: flex;
align-items: center;
background: #fff;
border-bottom: 1rpx solid #eee;
justify-content: space-between;
}
.service-info .avatar {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
margin-right: 20rpx;
}
.service-info .nickname {
font-size: 32rpx;
.detail-title {
flex: 1;
min-width: 0;
margin-right: 16rpx;
font-size: 34rpx;
font-weight: 600;
line-height: 48rpx;
color: var(--text-primary);
}
.message-list {
flex: 1;
padding: 20rpx;
background: var(--bg-page);
.detail-time {
margin-top: 12rpx;
font-size: 24rpx;
line-height: 36rpx;
color: var(--text-tertiary);
}
.message-item {
display: flex;
margin-bottom: 30rpx;
}
.message-item.self {
flex-direction: row-reverse;
padding-right: 20rpx;
}
.message-item .avatar {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.message-item .content {
max-width: 60%;
margin: 0 20rpx;
}
.message-item .bubble {
padding: 20rpx;
border-radius: 10rpx;
background: #fff;
/* 正文:保留换行,长内容自然撑开页面滚动 */
.detail-content {
margin-top: 24rpx;
padding-top: 24rpx;
border-top: 1rpx solid var(--component-stroke, #eee);
font-size: 28rpx;
line-height: 44rpx;
color: var(--text-secondary);
white-space: pre-wrap;
word-break: break-all;
}
.message-item.self .bubble {
background: #07c160;
color: #fff;
/* 底部操作区:仅在需要跳转时出现 */
.detail-actions {
margin-top: 40rpx;
}
.message-item .msg-image {
max-width: 100%;
border-radius: 10rpx;
.detail-empty {
padding-top: 200rpx;
}
.message-item .time {
font-size: 24rpx;
color: var(--text-tertiary);
margin-top: 10rpx;
display: block;
}
.input-area {
background: #fff;
border-top: 1rpx solid #eee;
padding-bottom: env(safe-area-inset-bottom);
position: fixed; bottom: 0; left: 0; right: 0;
}
.toolbar {
display: flex;
padding: 20rpx;
border-bottom: 1rpx solid #eee;
}
.tool-item {
margin-right: 15rpx;
}
.input-box {
display: flex;
padding: 20rpx;
align-items: flex-end;
justify-content: center; align-items: center;
}
.input {
flex: 1;
background: var(--bg-page);
border-radius: 8rpx;
padding: 20rpx;
min-height: 40rpx;
max-height: 120rpx;
margin-right: 20rpx;
}
.send-btn {
width: 120rpx;
height: 64rpx;
line-height: 64rpx;
text-align: center;
background: #ddd;
color: #fff;
border-radius: 8rpx;
}
.send-btn.active {
background: #07c160;
}
.emoji-panel {
height: 400rpx;
background: #fff;
padding: 20rpx;
}
.emoji-list {
display: flex;
flex-wrap: wrap;
}
.emoji-item {
width: 64rpx;
height: 64rpx;
font-size: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}