From 7c8b156c2bd775b1927a7f7ddcdbf919756fea40 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 17 Jan 2024 10:29:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- common/style/layout.css | 7 ++--- components/NavBar.vue | 2 +- pages.json | 10 +++---- pages/home/home.vue | 64 ++++++++++++++++++++++++++--------------- pages/login/login.vue | 3 +- 6 files changed, 53 insertions(+), 35 deletions(-) diff --git a/App.vue b/App.vue index 3d97b1b..f6ef8a2 100644 --- a/App.vue +++ b/App.vue @@ -3,7 +3,7 @@ onLaunch: function() { // #ifdef APP-PLUS plus.screen.lockOrientation('portrait-primary'); - plus.navigator.setFullscreen(true); + // plus.navigator.setFullscreen(true); // #endif }, onHide: function() { diff --git a/common/style/layout.css b/common/style/layout.css index 33a0ab7..234f4fb 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -1,10 +1,9 @@ page { - background-color: #f6f6f6 !important; + background-color: #f6f6f6!important; min-height: 100% !important; height: 100% !important; } uni-page-body { - background-color: #f6f6f6 !important; min-height: 100% !important; height: 100% !important; } @@ -109,7 +108,7 @@ uni-button:after { .zd_content { width: 100%; height: auto; - padding: 92rpx 14rpx 82rpx 14rpx; + padding: calc(var(--status-bar-height) + 92rpx) 14rpx 82rpx 14rpx; } .zd_wrapper { width: 100%; @@ -279,7 +278,7 @@ uni-button:after { margin: 0 40rpx 10rpx 0; border-radius: 30rpx; } -.btn-disabled, .submit-button:disabled { +.btn-disabled, .submit-button[disabled] { background-color: #c9c9c9; border: 1px solid #c9c9c9; color: #fff; diff --git a/components/NavBar.vue b/components/NavBar.vue index a03af93..1d2a635 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -53,7 +53,7 @@ .header _fj() position fixed - _wh(100%, 72rpx) + _wh(100%, calc(var(--status-bar-height) + 72rpx)) background-color $red z-index 200 padding 0 20rpx diff --git a/pages.json b/pages.json index 1ebae9a..d92e22c 100644 --- a/pages.json +++ b/pages.json @@ -256,11 +256,11 @@ } ], "globalStyle": { - // "pageOrientation": "landscape", - "navigationBarTextStyle": "white", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#d7592f", - "backgroundColor": "#ffffff" + "navigationBarTextStyle": "black",//导航栏标题颜色及状态栏前景颜色,仅支持 black/white + "navigationBarTitleText": "印尼海亮铜箔",//导航栏标题文字内容 + "navigationBarBackgroundColor": "#ff6a00",//导航栏背景颜色(同状态栏背景色) + "backgroundColor": "#ffffff",//下拉显示出来的窗口的背景色 + "onReachBottomDistance": 50//页面上拉触底事件触发时距页面底部距离,单位只支持px }, "uniIdRouter": {} } diff --git a/pages/home/home.vue b/pages/home/home.vue index 27c97a6..a51ffb6 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -1,21 +1,23 @@