Files
xingque/pages/dingdan/dingdan.wxss

262 lines
4.9 KiB
Plaintext

/* pages/dingdan/dingdan.wxss */
.dingdan-page {
min-height: 100vh;
background-color: #f8f9fa;
padding-bottom: 20rpx;
}
.dingdan-tabs-scroll {
width: 100%;
height: 90rpx;
white-space: nowrap;
background-color: #ffffff;
border-bottom: 1rpx solid #f0f0f0;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
}
.dingdan-tabs-container {
display: flex;
align-items: center;
height: 100%;
padding: 0 20rpx;
}
.dingdan-tab-item {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 60rpx;
padding: 0 30rpx;
margin-right: 20rpx;
border-radius: 30rpx;
background-color: #f5f5f5;
color: #666666;
font-size: 28rpx;
transition: all 0.3s ease;
position: relative;
flex-shrink: 0;
}
.dingdan-tab-item:last-child {
margin-right: 0;
}
.dingdan-tab-item.tab-active {
background-color: #e8f5e9;
color: #2e7d32;
font-weight: 500;
box-shadow: 0 4rpx 12rpx rgba(46, 125, 50, 0.1);
}
.tab-active-line {
width: 40rpx;
height: 4rpx;
background-color: #4caf50;
border-radius: 2rpx;
margin-top: 6rpx;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.8); }
to { opacity: 1; transform: scale(1); }
}
.tab-text {
font-weight: 400;
}
.dingdan-list-container {
padding: 20rpx;
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 400rpx;
}
.loading-spinner {
width: 60rpx;
height: 60rpx;
border: 6rpx solid #e0e0e0;
border-top-color: #4caf50;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20rpx;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.loading-text {
font-size: 28rpx;
color: #999999;
}
.empty-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 500rpx;
padding-top: 80rpx;
}
.empty-image {
width: 200rpx;
height: 200rpx;
margin-bottom: 30rpx;
opacity: 0.6;
}
.empty-text {
font-size: 32rpx;
color: #999999;
margin-bottom: 10rpx;
}
.empty-subtext {
font-size: 26rpx;
color: #cccccc;
}
.dingdan-card {
display: flex;
align-items: center;
background-color: #ffffff;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dingdan-card:active {
transform: translateY(-2rpx);
box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.08);
}
.dingdan-card-left {
flex-shrink: 0;
margin-right: 24rpx;
}
.dingdan-image {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
background-color: #f5f5f5;
}
.dingdan-card-center {
flex: 1;
height: 160rpx;
display: flex;
align-items: flex-start;
}
.dingdan-jieshao {
font-size: 28rpx;
line-height: 40rpx;
color: #333333;
font-weight: 400;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
}
.dingdan-card-right {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-between;
height: 160rpx;
margin-left: 20rpx;
}
.dingdan-zhuangtai {
font-size: 24rpx;
color: #ff6b6b;
font-weight: 500;
padding: 6rpx 16rpx;
border-radius: 20rpx;
background-color: #fff5f5;
white-space: nowrap;
}
/* ✅ 修正后的价格样式 - 简单明了 */
.dingdan-jine {
display: flex;
align-items: center; /* 垂直居中 */
}
.jine-symbol {
font-size: 28rpx;
color: #333333;
font-weight: 500;
margin-right: 4rpx; /* 添加右边距,让符号和数字有间隔 */
}
.jine-number {
font-size: 32rpx; /* 整数和小数一样大 */
color: #333333;
font-weight: 600;
}
.load-more-container {
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx 0;
}
.load-more-line {
width: 80rpx;
height: 1rpx;
background-color: #e0e0e0;
margin: 0 20rpx;
}
.load-more-text {
font-size: 26rpx;
color: #999999;
white-space: nowrap;
}
.no-more-container {
text-align: center;
padding: 40rpx 0;
}
.no-more-text {
font-size: 26rpx;
color: #cccccc;
}
@media (max-width: 375px) {
.dingdan-image {
width: 140rpx;
height: 140rpx;
}
.dingdan-card-center {
height: 140rpx;
}
.dingdan-card-right {
height: 140rpx;
}
.jine-number {
font-size: 30rpx;
}
}