提交修改
CI / Server (Go) (push) Has been cancelled
CI / Web (Next.js) (push) Has been cancelled
CI / Mobile (React Native) (push) Has been cancelled
CI / Admin (React) (push) Has been cancelled
CI / Docker Build (push) Has been cancelled

This commit is contained in:
zeronline
2026-06-29 16:49:54 +08:00
parent 545329ac40
commit b01a5f91c3
43 changed files with 740 additions and 338 deletions
+8
View File
@@ -1,6 +1,9 @@
const app = getApp()
Component({
properties: {
active: { type: String, value: 'home' },
themeMode: { type: String, value: 'light' },
tabs: {
type: Array,
value: [
@@ -10,6 +13,11 @@ Component({
],
},
},
lifetimes: {
attached() {
this.setData({ themeMode: app.globalData.themeMode })
},
},
methods: {
onSwitch(e) {
this.triggerEvent('switch', { key: e.currentTarget.dataset.key })
+1 -1
View File
@@ -1,4 +1,4 @@
<view class="nav-bar">
<view data-theme="{{themeMode}}" class="nav-bar">
<view wx:for="{{tabs}}" wx:key="key" class="nav-item" data-key="{{item.key}}" bindtap="onSwitch">
<text class="nav-icon">{{item.icon}}</text>
<text class="nav-label {{active===item.key?'active':''}}">{{item.label}}</text>
+4 -4
View File
@@ -3,8 +3,8 @@
align-items: center;
justify-content: space-around;
padding: 8px 0 24px;
border-top: 0.5px solid #E5E5EA;
background: rgba(245,245,247,0.95);
border-top: 0.5px solid var(--color-border);
background: var(--color-nav-bg);
position: fixed;
bottom: 0;
left: 0;
@@ -20,5 +20,5 @@
padding: 4px;
}
.nav-icon { font-size: 22px; }
.nav-label { font-size: 10px; color: #86868B; }
.nav-label.active { color: #FF6B35; font-weight: 600; }
.nav-label { font-size: 10px; color: var(--color-text-secondary); }
.nav-label.active { color: var(--color-primary); font-weight: 600; }