对接一键开门 修改首页引导页自适应样式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user