bbc34c5bd6
- nav-bar 加 tone="brand":透明底 + 深棕字,压在色带上;默认分支不动 - 首页/记录页顶部加 252rpx 品牌橘色带(下沿大圆角,z-index:-1 垫背后), 盖住 nav + 切换条,门面卡在色带下方 - 切换条压在色带上:chip 半透明白 + 深棕字,选中实白 - page 加 position:relative 供色带绝对定位锚定 - 新增 --band-a/--band-b/--band-ink token(取自 preview-v3 定稿) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
35 lines
872 B
JavaScript
35 lines
872 B
JavaScript
const app = getApp();
|
|
|
|
Component({
|
|
options: { addGlobalClass: true },
|
|
properties: {
|
|
title: { type: String, value: '肉垫计划' },
|
|
showBack: { type: Boolean, value: false },
|
|
// tone="brand":透明底 + 深棕字,压在品牌色带上(首页/记录页)。
|
|
// 默认空 = 原来的奶白毛玻璃,另外 7 个页面都靠它,别动默认分支
|
|
tone: { type: String, value: '' }
|
|
},
|
|
data: {
|
|
statusBarHeight: 20,
|
|
navBarHeight: 44
|
|
},
|
|
lifetimes: {
|
|
attached() {
|
|
this.setData({
|
|
statusBarHeight: app.globalData.statusBarHeight,
|
|
navBarHeight: app.globalData.navBarHeight
|
|
});
|
|
}
|
|
},
|
|
methods: {
|
|
onBack() {
|
|
const pages = getCurrentPages();
|
|
if (pages.length > 1) {
|
|
wx.navigateBack();
|
|
} else {
|
|
wx.switchTab({ url: '/pages/home/home' });
|
|
}
|
|
}
|
|
}
|
|
});
|