- 首页重构:KV 头图/金刚区/可领权益包/折扣商户分类宫格,暖米底色与切图规范统一 - 查询弹层 hhrs-winner-sheet:登录→资格→证件两段式查询,六态文案与 CTA;未中奖引导看权益包明细(参加指南内容待运营) - 底部导航改自定义组件单条呈现,移除 pages.json 原生 tabBar(H5 下双导航叠加问题);我的页换肤对齐首页主色 - 修复内容不足一屏时露 html 白底(html 兜底色 + 我的页撑满屏高);App.vue 修复微信 WebView 导航栏高度误报 - 删除原生 tabBar 遗留的 4 张旧图标,新增 12 张 hhrs2_ 切图 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
52 lines
1.8 KiB
Vue
52 lines
1.8 KiB
Vue
<script>
|
|
export default {
|
|
onLaunch: function() {
|
|
console.log('App Launch')
|
|
},
|
|
onShow: function() {
|
|
console.log('App Show')
|
|
},
|
|
onHide: function() {
|
|
console.log('App Hide')
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss">
|
|
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
|
@import "uview-ui/index.scss";
|
|
|
|
/* xuchao: 全站统一字体栈:系统字体优先,中文回退顺序兼顾 iOS/鸿蒙/Android/Windows */
|
|
page,
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC',
|
|
'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Hiragino Sans GB',
|
|
Arial, Helvetica, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* xuchao: html 层兜底暖米底色 —— 内容不足一屏的页面(如 我的)在固定导航上方
|
|
不会露出默认白底形成白带;有自己底色的页面不受影响 */
|
|
html {
|
|
background-color: #FDECE2;
|
|
}
|
|
|
|
/* xuchao: 修复默认导航栏在微信 WebView 内顶部超宽空白(参加/使用指南、协议等页)——
|
|
uni-app 内置 H5 导航栏高度为 calc(44px + env(safe-area-inset-top)),页面模板带
|
|
viewport-fit=cover 时,部分 Android 微信 WebView 会误报状态栏高度(而 H5 视口本
|
|
就位于微信原生标题栏下方、并未被遮挡),导致导航栏被垫高。强制回退固定 44px。
|
|
标准浏览器/ iOS 中该 env 值为 0,此覆盖无副作用 */
|
|
uni-page-head .uni-page-head {
|
|
height: 44px !important;
|
|
padding-top: 7px !important;
|
|
}
|
|
uni-page-head .uni-page-head ~ .uni-placeholder {
|
|
height: 44px !important;
|
|
}
|
|
uni-page-head[uni-page-head-type='default'] ~ uni-page-wrapper {
|
|
height: calc(100% - 44px) !important;
|
|
}
|
|
.uni-app--showtabbar uni-page-head[uni-page-head-type='default'] ~ uni-page-wrapper {
|
|
height: calc(100% - 44px) !important;
|
|
}
|
|
</style>
|