diff --git a/miniprogram/src/custom-tab-bar/index.jsx b/miniprogram/src/custom-tab-bar/index.jsx index 99415b8..a9e39c0 100644 --- a/miniprogram/src/custom-tab-bar/index.jsx +++ b/miniprogram/src/custom-tab-bar/index.jsx @@ -7,7 +7,7 @@ import './index.scss'; const LIST = [ { pagePath: '/pages/booking/index', text: '活动', icon: 'book' }, { pagePath: '/pages/hall/index', text: '大厅', icon: 'hall' }, - { pagePath: '/pages/index/index', text: '首页', icon: 'star', center: true }, + { pagePath: '/pages/index/index', text: 'OPC', icon: 'star', center: true }, { pagePath: '/pages/content/index', text: '资讯', icon: 'shield' }, { pagePath: '/pages/mine/index', text: '我的', icon: 'user' } ]; diff --git a/miniprogram/src/custom-tab-bar/index.scss b/miniprogram/src/custom-tab-bar/index.scss index e97f5e5..431f8e6 100644 --- a/miniprogram/src/custom-tab-bar/index.scss +++ b/miniprogram/src/custom-tab-bar/index.scss @@ -113,15 +113,18 @@ align-items: center; justify-content: center; text-align: center; - padding-top: 16rpx; /* 三字整体略靠下 */ + padding-top: 10rpx; /* OPC 大写字母视觉重心偏上,减少顶部偏移 */ } .home-text { - font-size: 30rpx; + font-size: 28rpx; font-weight: 800; line-height: 1; - letter-spacing: 2rpx; - color: #23315c; + letter-spacing: 3rpx; + background: linear-gradient(135deg, #6b8bff, #8f7bff); + -webkit-background-clip: text; + background-clip: text; + color: transparent; } /* 激活:底座点亮 + 星星辉光 */ @@ -129,6 +132,14 @@ color: #6284ff; } +.tab-item--home.tab-item--active .home-text { + background: linear-gradient(135deg, #4d7cfe, #7a5ff0); + -webkit-background-clip: text; + background-clip: text; + color: transparent; + filter: drop-shadow(0 2rpx 8rpx rgba(98,132,255,0.5)); +} + .tab-item--home.tab-item--active .home-blob { border-color: rgba(98, 132, 255, 0.9); box-shadow: