From 9461caf2a459a7ed1eb16f8f439c02cfbcf1930b Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期三, 02 八月 2023 15:06:08 +0800 Subject: [PATCH] 新增功能 --- pages/tabBar/firstPage/firstPage.vue | 43 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 35 insertions(+), 8 deletions(-) diff --git a/pages/tabBar/firstPage/firstPage.vue b/pages/tabBar/firstPage/firstPage.vue index 2d7b90d..0e42cb6 100644 --- a/pages/tabBar/firstPage/firstPage.vue +++ b/pages/tabBar/firstPage/firstPage.vue @@ -11,25 +11,33 @@ </view> <view class="list"> <view class="first" @click="goExamine" v-if="role == '审核领导'"> - 预警审核 + <view class="icon"> + <image src="../../../static/examine.png" class="img"></image>预警审核 + </view> </view> <view class="first" @click="goCurrent" style="background-color:rgb(249, 130, 180) ;" > - 信息查看 + <view class="icon"> + <image src="../../../static/look.png" class="img"></image>信息查看 + </view> </view> <view class="first" style="background-color: rgb(41, 203, 280);" @click="goWeather" > - 实时气象 + <view class="icon"> + <image src="../../../static/we.png" class="img"></image>实时气象 + </view> </view> <view class="first" - style="background-color: rgb(11, 246, 158) ;" + style="background-color: rgb(11, 246, 158) ;margin-bottom: 35px;" @click="goCount" > - 统计分析 + <view class="icon"> + <image src="../../../static/count.png" class="img"></image>统计分析 + </view> </view> </view> @@ -107,9 +115,16 @@ background-color:lightgrey; } .list{ - display: flex; - flex-direction: column; - padding: 10px 15px; + margin: 12px 12px 0; + padding: 12px; + box-sizing: border-box; + display: flex; + flex-direction: column; + justify-content: space-between; + width: calc(100% - 24px); + background: #fff; + border-radius: 5px; + box-shadow: 0 3px 12px rgba(0,0,0,0.05); } .first{ @@ -123,10 +138,22 @@ border: 1px solid lightgrey; font-size: 18px; margin-top: 40px; + color: #2c2c2c; + font-weight: 600; +} +.icon{ + display: flex; + align-items: center; + justify-content: center; } .barText{ text-align: center; font-size: 16px; font-weight: 600; } +.img{ + width: 20px; + height: 20px; + margin-right: 6px; +} </style> \ No newline at end of file -- Gitblit v1.9.2