feat: 首页、分类页加载数据逻辑重构

This commit is contained in:
R524809
2026-04-30 16:44:45 +08:00
parent c112c70bab
commit 7126d3a941
63 changed files with 805 additions and 433 deletions
+44 -2
View File
@@ -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;
}
}