From 419ad623db22db5fa34e88ab771d2161fe12e920 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期二, 01 八月 2023 16:08:25 +0800
Subject: [PATCH] 提交上拉加载

---
 pages/tabBar/firstPage/firstPage.vue |   34 +++++++++++++++++++++++-----------
 1 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/pages/tabBar/firstPage/firstPage.vue b/pages/tabBar/firstPage/firstPage.vue
index 010e28c..2d7b90d 100644
--- a/pages/tabBar/firstPage/firstPage.vue
+++ b/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>
\ No newline at end of file

--
Gitblit v1.9.2