Files
zeronline b01a5f91c3
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
提交修改
2026-06-29 16:49:54 +08:00

26 lines
601 B
JavaScript

const app = getApp()
Component({
properties: {
active: { type: String, value: 'home' },
themeMode: { type: String, value: 'light' },
tabs: {
type: Array,
value: [
{ key: 'home', label: '打卡', icon: '📋' },
{ key: 'feed', label: '广场', icon: '🌊' },
{ key: 'profile', label: '我的', icon: '👤' },
],
},
},
lifetimes: {
attached() {
this.setData({ themeMode: app.globalData.themeMode })
},
},
methods: {
onSwitch(e) {
this.triggerEvent('switch', { key: e.currentTarget.dataset.key })
}
}
})