diff --git a/apps/user-h5/index.html b/apps/user-h5/index.html index d79c458..6acb5af 100644 --- a/apps/user-h5/index.html +++ b/apps/user-h5/index.html @@ -4,6 +4,33 @@ 愈心谷 + diff --git a/apps/user-h5/src/styles/app.css b/apps/user-h5/src/styles/app.css index 114d560..9a6e58e 100644 --- a/apps/user-h5/src/styles/app.css +++ b/apps/user-h5/src/styles/app.css @@ -64,6 +64,25 @@ html.mp-embed body{ padding-top:var(--yxg-page-top); min-height:100%; } +/* 小程序原生顶栏:桃色顶区对齐 nav-bar,隐藏 H5 AppHeader,洗底不冲顶 */ +html.mp-embed.mp-native-header{ + background-color:#ffd1c7; + background-image:none; +} +html.mp-embed.mp-native-header body{ + background:transparent; +} +html.mp-embed.mp-native-header .app-shell.mp-embed::before{ + background-color:#ffd1c7; +} +html.mp-embed.mp-native-header .app-header{ + display:none !important; +} +html.mp-embed.mp-native-header .app-shell .home, +html.mp-embed.mp-native-header .app-shell .ps, +html.mp-embed.mp-native-header .app-shell .yxg-page{ + padding-top:var(--yxg-page-top); +} .app-footer{ position:relative; z-index:1;