对接一键开门 修改首页引导页自适应样式

This commit is contained in:
zhouyanli
2026-05-19 17:52:57 +08:00
parent 5539e737d7
commit 99c36c0d83
9 changed files with 271 additions and 249 deletions

View File

@@ -2,7 +2,7 @@
<view class="content-class">
<view class="nar-top">
<!-- 这里是状态栏占位 -->
<view class="status_bar"></view>
<view class="status_bar" :style="{ height: statusBarHeight + 'px' }"></view>
<!-- 导航栏 -->
<view class="nav-bar">
<text class="nav-title">首页</text>
@@ -134,6 +134,7 @@ const noticeText = ref('暂无公告')
const allCount = ref(0) // 全部巡检
const pendingCount = ref(0) //待巡检
const InspectedCount = ref(0) //已巡检
const statusBarHeight = ref(uni.getSystemInfoSync().statusBarHeight || 0)
// =======方法=======
@@ -214,7 +215,7 @@ const getInspectionData = () =>{
getTodayInspection().then(res =>{
if(res.code === 200){
if(res.data){
allCount.value = res.data.unfinishedPoints
allCount.value = res.data.totalTasks
pendingCount.value = res.data.unfinishedTasks
InspectedCount.value = res.data.completedTasks
}else{
@@ -288,8 +289,8 @@ const clickItem = index => {
}
.status_bar {
height: 46px;
width: 100%;
flex-shrink: 0;
}
/* 导航栏 */
@@ -300,7 +301,7 @@ const clickItem = index => {
}
.nav-title {
font-size: 14px;
font-size: 32rpx;
font-weight: 400;
}