feat: 首页、分类页加载数据逻辑重构
This commit is contained in:
@@ -142,8 +142,8 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
border: 1rpx solid #bbb;
|
||||
background: #f0f0f0;
|
||||
border: 1rpx solid rgba(50, 46, 37, 0.08);
|
||||
background: #f5edd8;
|
||||
}
|
||||
|
||||
.cat-card__thumb-img {
|
||||
@@ -261,4 +261,46 @@
|
||||
.cat-empty__text {
|
||||
font-size: 28rpx;
|
||||
color: @text-gray;
|
||||
}
|
||||
|
||||
// ── Skeleton ──
|
||||
@keyframes skeleton-pulse {
|
||||
0% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
.cat-card--skeleton {
|
||||
pointer-events: none;
|
||||
|
||||
.cat-card__thumb {
|
||||
background: #e8e2d5;
|
||||
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.cat-card__title,
|
||||
.cat-card__subtitle {
|
||||
background: #e8e2d5;
|
||||
border-radius: 8rpx;
|
||||
color: transparent;
|
||||
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.cat-card__title {
|
||||
width: 60%;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.cat-card__subtitle {
|
||||
width: 80%;
|
||||
height: 24rpx;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user