首页优化
This commit is contained in:
@@ -29,7 +29,7 @@ Page({
|
||||
bannerCurrent: 0, // 当前轮播下标
|
||||
currentBanner: {}, // 当前轮播的标题数据
|
||||
bannerNavigation: {
|
||||
type: 'dots',
|
||||
type: 'dots-bar',
|
||||
minShowNum: 2,
|
||||
},
|
||||
bannerImageProps: {
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
duration="{{500}}"
|
||||
interval="{{5000}}"
|
||||
navigation="{{bannerNavigation}}"
|
||||
paginationPosition="top-right"
|
||||
imageProps="{{bannerImageProps}}"
|
||||
t-class-nav="entry-swiper__nav"
|
||||
list="{{bannerList}}"
|
||||
height="416rpx"
|
||||
bind:change="onBannerChange"
|
||||
|
||||
@@ -33,12 +33,12 @@ page {
|
||||
/* ============ 分类 Tabs ============ */
|
||||
.home-page-container .t-tabs {
|
||||
background: var(--bg-card) !important;
|
||||
margin-bottom: 20rpx;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.home-page-container .t-tabs .t-tabs__nav {
|
||||
background-color: transparent;
|
||||
line-height: 80rpx;
|
||||
line-height: 72rpx;
|
||||
font-size: 28rpx;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ page {
|
||||
|
||||
.t-tabs.t-tabs--top .t-tabs__item,
|
||||
.t-tabs.t-tabs--bottom .t-tabs__item {
|
||||
height: 86rpx !important;
|
||||
height: 72rpx !important;
|
||||
}
|
||||
|
||||
.t-tabs.t-tabs--top .t-tabs__scroll {
|
||||
@@ -110,13 +110,17 @@ page {
|
||||
--td-swiper-nav-dot-active-color: #ffffff;
|
||||
}
|
||||
|
||||
.entry-swiper__nav {
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.entry-swiper__caption {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 2;
|
||||
padding: 48rpx 24rpx 24rpx;
|
||||
padding: 48rpx 24rpx 56rpx;
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -193,7 +197,9 @@ page {
|
||||
--td-tab-nav-bg-color: var(--bg-card);
|
||||
--td-tab-border-color: transparent;
|
||||
--td-tab-item-color: var(--text-tertiary);
|
||||
--td-tab-item-height: 72rpx;
|
||||
--td-tab-track-color: var(--brand);
|
||||
margin-bottom: 12rpx;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
@@ -203,6 +209,10 @@ page {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.home-page-tabs .t-tabs__content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.home-page-margin {
|
||||
display: block;
|
||||
height: 20rpx;
|
||||
|
||||
Reference in New Issue
Block a user