265 lines
4.3 KiB
Plaintext
265 lines
4.3 KiB
Plaintext
/* 评论显示测试页面样式 */
|
|
.container {
|
|
padding: 20rpx;
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 30rpx;
|
|
padding: 20rpx;
|
|
background: #fff;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.title {
|
|
display: block;
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.subtitle {
|
|
display: block;
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.section-title {
|
|
display: block;
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 20rpx;
|
|
padding-bottom: 10rpx;
|
|
border-bottom: 2rpx solid #e0e0e0;
|
|
}
|
|
|
|
/* 调试信息样式 */
|
|
.debug-section {
|
|
background: #fff;
|
|
padding: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
border-radius: 16rpx;
|
|
border-left: 4rpx solid #2196F3;
|
|
}
|
|
|
|
.debug-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.debug-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.debug-label {
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.debug-value {
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.debug-value.success {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.debug-value.error {
|
|
color: #F44336;
|
|
}
|
|
|
|
/* 操作按钮样式 */
|
|
.action-section {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.action-btn {
|
|
flex: 1;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
background: #2196F3;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 12rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.action-btn.secondary {
|
|
background: #666;
|
|
}
|
|
|
|
.action-btn[disabled] {
|
|
background: #ccc;
|
|
}
|
|
|
|
/* 评论组件样式 */
|
|
.comment-component-section {
|
|
background: #fff;
|
|
padding: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
/* 复制商品详情页面的评论样式 */
|
|
.comments-wrap {
|
|
margin: 20rpx 0;
|
|
padding: 28rpx;
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
|
|
border: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.comments-wrap .comments-head {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-bottom: 20rpx;
|
|
border-bottom: 1rpx solid #f5f5f5;
|
|
}
|
|
|
|
.comments-wrap .comments-head .comments-title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.comments-title-label {
|
|
color: #222222;
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
}
|
|
|
|
.comments-title-count {
|
|
color: #666666;
|
|
font-size: 26rpx;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
margin-left: 8rpx;
|
|
}
|
|
|
|
.comments-rate-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: #fff5f5;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
border: 1rpx solid #ffe5e5;
|
|
}
|
|
|
|
.comments-rate-wrap .comments-good-rate {
|
|
color: #fa4126;
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
}
|
|
|
|
.comment-item-wrap {
|
|
margin-top: 24rpx;
|
|
padding: 20rpx;
|
|
background: #fafafa;
|
|
border-radius: 12rpx;
|
|
border: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.comment-item-wrap .comment-item-head {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.comment-item-wrap .comment-item-head .comment-item-avatar {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 30rpx;
|
|
border: 2rpx solid #fff;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.comment-item-wrap .comment-item-head .comment-head-right {
|
|
margin-left: 20rpx;
|
|
flex: 1;
|
|
}
|
|
|
|
.comment-head-right .comment-username {
|
|
font-size: 26rpx;
|
|
color: #333333;
|
|
line-height: 1.2;
|
|
font-weight: 500;
|
|
margin-bottom: 6rpx;
|
|
display: block;
|
|
}
|
|
|
|
.comment-rating {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.star {
|
|
font-size: 24rpx;
|
|
color: #ddd;
|
|
margin-right: 2rpx;
|
|
}
|
|
|
|
.star.filled {
|
|
color: #FFD700;
|
|
}
|
|
|
|
.comment-item-wrap .comment-item-content {
|
|
margin-top: 16rpx;
|
|
color: #555555;
|
|
line-height: 1.5;
|
|
font-size: 26rpx;
|
|
font-weight: 400;
|
|
padding: 16rpx;
|
|
background: #fff;
|
|
border-radius: 8rpx;
|
|
border-left: 3rpx solid #fa4126;
|
|
}
|
|
|
|
.no-comments {
|
|
text-align: center;
|
|
padding: 60rpx 20rpx;
|
|
background: #f9f9f9;
|
|
border-radius: 12rpx;
|
|
border: 2rpx dashed #ddd;
|
|
}
|
|
|
|
.no-comments-text {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 数据显示样式 */
|
|
.raw-data-section,
|
|
.processed-data-section {
|
|
background: #fff;
|
|
padding: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.data-display {
|
|
background: #f5f5f5;
|
|
padding: 20rpx;
|
|
border-radius: 8rpx;
|
|
font-size: 24rpx;
|
|
color: #333;
|
|
word-break: break-all;
|
|
white-space: pre-wrap;
|
|
} |