马宇豪
2023-08-01 419ad623db22db5fa34e88ab771d2161fe12e920
pages/tabBar/firstPage/firstPage.vue
@@ -9,8 +9,8 @@
            <view class="barText">首页</view>
         </view>
      </view>
      <view  style="display: flex;flex-direction: column;padding: 10px 15px;">
         <view class="first" @click="goExamine">
      <view  class="list">
         <view class="first" @click="goExamine" v-if="role == '审核领导'">
            预警审核
         </view>
         <view class="first" 
@@ -55,6 +55,8 @@
         //获取手机状态栏高度
         this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
         uni.hideTabBar();
         this.role = uni.getStorageSync('roleName');
         console.log("role",this.role)
      },
      methods: {
         goExamine() {
@@ -84,15 +86,14 @@
<style>
.navBarBox .navBar {
   background-color:lightgrey;
   height: 45px;
   display: flex;
   flex-direction: row;
   justify-content: center;
   align-items: center;
   font-size: 16px;
   /* text-align: center; */
   font-weight: 600;
   background-color:#fff;
     height: 50px;
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: center;
     box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.fix{
   position: sticky;
@@ -105,6 +106,12 @@
.statusBar{
   background-color:lightgrey;
}
.list{
   display: flex;
   flex-direction: column;
   padding: 10px 15px;
}
.first{
   width: 100%;
   height: 110px;
@@ -117,4 +124,9 @@
   font-size: 18px;
   margin-top: 40px;
}
.barText{
   text-align: center;
   font-size: 16px;
   font-weight: 600;
}
</style>