优化多个页面样式及组件功能,优化课程、发现、训练、首页等核心页面样式

This commit is contained in:
future
2026-06-08 14:54:36 +08:00
parent 51bdf15613
commit 33d1140fbf
7 changed files with 222 additions and 87 deletions
+23 -14
View File
@@ -126,7 +126,7 @@ function goMyCourses() {
<style lang="scss" scoped>
.tab-page {
min-height: 100vh;
background-color: #f0f4f8;
background: $gradient-sky;
padding-bottom: 160rpx;
}
@@ -137,15 +137,15 @@ function goMyCourses() {
.tab-page__title {
display: block;
font-size: 40rpx;
font-weight: 700;
color: #1a202c;
font-weight: $font-weight-bold;
color: $text-dark;
}
.tab-page__subtitle {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
color: #64748b;
color: $text-muted;
}
.tab-page__actions {
@@ -157,26 +157,34 @@ function goMyCourses() {
.tab-page__btn {
flex: 1;
height: 80rpx;
border-radius: 999rpx;
background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
border-radius: $radius-full;
background: $gradient-orange;
display: flex;
align-items: center;
justify-content: center;
box-shadow: $shadow-orange-glow;
transition: all 0.2s ease;
}
.tab-page__btn:active {
transform: scale(0.97);
background: $accent-orange-dark;
}
.tab-page__btn--ghost {
background: #fff;
border: 1px solid #e2e8f0;
background: $bg-white;
border: 1px solid $border-light;
box-shadow: $shadow-sm;
}
.tab-page__btn-text {
font-size: 28rpx;
font-weight: 600;
color: #fff;
font-weight: $font-weight-bold;
color: $text-inverse;
}
.tab-page__btn-text--ghost {
color: #1a4a6f;
color: $primary-deep;
}
.bottom-placeholder {
@@ -191,8 +199,9 @@ function goMyCourses() {
.skeleton-item {
margin-bottom: 24rpx;
padding: 20rpx;
background: #fff;
border-radius: 20rpx;
background: $bg-white;
border-radius: $radius-md;
box-shadow: $shadow-sm;
}
.skeleton-img {
@@ -201,7 +210,7 @@ function goMyCourses() {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
border-radius: 16rpx;
border-radius: $radius-sm;
}
.skeleton-text {
+16 -10
View File
@@ -48,7 +48,7 @@ function goPointsMall() {
<style lang="scss" scoped>
.tab-page {
min-height: 100vh;
background-color: #f0f4f8;
background: $gradient-sky;
padding-bottom: 160rpx;
}
@@ -59,15 +59,15 @@ function goPointsMall() {
.tab-page__title {
display: block;
font-size: 40rpx;
font-weight: 700;
color: #1a202c;
font-weight: $font-weight-bold;
color: $text-dark;
}
.tab-page__subtitle {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
color: #64748b;
color: $text-muted;
}
.discover-links {
@@ -79,23 +79,29 @@ function goPointsMall() {
.discover-link {
padding: 24rpx 28rpx;
border-radius: 20rpx;
background: #fff;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
border-radius: $radius-md;
background: $bg-white;
box-shadow: $shadow-sm;
border: 1px solid $border-light;
transition: all 0.2s ease;
}
.discover-link:active {
transform: scale(0.98);
}
.discover-link__title {
display: block;
font-size: 28rpx;
font-weight: 600;
color: #1e2a3a;
font-weight: $font-weight-bold;
color: $text-dark;
}
.discover-link__desc {
display: block;
margin-top: 6rpx;
font-size: 22rpx;
color: #64748b;
color: $text-muted;
}
.bottom-placeholder {
+2 -2
View File
@@ -116,7 +116,7 @@ onMounted(() => {
left: 0;
width: 100%;
height: 100%;
z-index: 0;
z-index: 1;
pointer-events: none;
}
@@ -144,7 +144,7 @@ onMounted(() => {
z-index: 1;
height: 100vh;
width: 100%;
background: linear-gradient(180deg, #D6EEF8 0%, #E4F2FA 15%, #EEF6FB 30%, #F5FAFD 50%, #FAFCFE 70%, #FFFFFF 100%);
// background: linear-gradient(180deg, #D6EEF8 0%, #E4F2FA 15%, #EEF6FB 30%, #F5FAFD 50%, #FAFCFE 70%, #FFFFFF 100%);
}
/* 主内容区域 */
+16 -10
View File
@@ -53,7 +53,7 @@ function goCheckIn() {
<style lang="scss" scoped>
.tab-page {
min-height: 100vh;
background-color: #f0f4f8;
background: $gradient-sky;
padding-bottom: 160rpx;
}
@@ -64,15 +64,15 @@ function goCheckIn() {
.tab-page__title {
display: block;
font-size: 40rpx;
font-weight: 700;
color: #1a202c;
font-weight: $font-weight-bold;
color: $text-dark;
}
.tab-page__subtitle {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
color: #64748b;
color: $text-muted;
}
.train-cards {
@@ -84,23 +84,29 @@ function goCheckIn() {
.train-card {
padding: 28rpx 32rpx;
border-radius: 24rpx;
background: #fff;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
border-radius: $radius-md;
background: $bg-white;
box-shadow: $shadow-sm;
border: 1px solid $border-light;
transition: all 0.2s ease;
}
.train-card:active {
transform: scale(0.98);
}
.train-card__title {
display: block;
font-size: 30rpx;
font-weight: 700;
color: #1e2a3a;
font-weight: $font-weight-bold;
color: $text-dark;
}
.train-card__desc {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
color: #64748b;
color: $text-muted;
}
.bottom-placeholder {