Browse Source

feat:首页样式修改

master
zhaobing’ 1 year ago
parent
commit
cc87f35963
  1. 16
      weapp/pages/home/home.wxml
  2. 26
      weapp/pages/home/home.wxss

16
weapp/pages/home/home.wxml

@ -18,43 +18,43 @@
</view>
</view>
<!--最近7天统计-->
<view class="card">
<text>最近7天统计</text>
<view class="card2">
<view class="image-container">
<image src="/images/sevenDays.png" class="background-image"></image>
<view class="overlay-content">
<image src="/images/check.png" style="width:36px;height:36px;margin-right: 10px;" />
<view>
<view>巡检次数</view>
<view>{{sevenDaysCount}}次</view>
<view><text class="fontStyle">{{sevenDaysCount}}</text>次</view>
</view>
</view>
</view>
<view style="display: flex; justify-content: space-around;">
<view style="margin:10px 0px;">发现问题个数</view>
<view style="margin:10px 0px;">{{sevenDaysQuestionCount}}个</view>
<view style="margin:10px 0px;"><text class="fontStyle">{{sevenDaysQuestionCount}}</text>个</view>
<view style="margin:10px 0px;">问题处理个数</view>
<view style="margin:10px 0px;">{{sevenDaysHandleCount}}个</view>
<view style="margin:10px 0px;"><text class="fontStyle">{{sevenDaysHandleCount}}</text>个</view>
</view>
</view>
<!--总巡巡检统计-->
<view class="card">
<text>总巡检统计</text>
<view class="card2">
<view class="image-container">
<image src="/images/xunjian.png" class="background-image"></image>
<view class="overlay-content">
<image src="/images/check.png" style="width:36px;height:36px;margin-right: 10px;" />
<view>
<view>巡检次数</view>
<view>{{allCount}}次</view>
<view><text class="fontStyle">{{allCount}}</text>次</view>
</view>
</view>
</view>
<view style="display: flex; justify-content: space-around;">
<view style="margin:10px 0px;">发现问题个数</view>
<view style="margin:10px 0px;">{{allQuestionCount}}个</view>
<view style="margin:10px 0px;"><text class="fontStyle">{{allQuestionCount}}</text>个</view>
<view style="margin:10px 0px;">问题处理个数</view>
<view style="margin:10px 0px;">{{allHandleCount}}个</view>
<view style="margin:10px 0px;"><text class="fontStyle">{{allHandleCount}}</text>个</view>
</view>
</view>

26
weapp/pages/home/home.wxss

@ -13,6 +13,20 @@
/* padding: 10px; */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 12px;
margin-bottom: 12px;
}
.card2 {
background-color: #fff;
/* border: 0px 1px 1px 1px solid #ddd; */
border-bottom: 1px solid #ddd; /* 底部的边框 */
border-top: none;
border-radius: 8px;
/* padding: 10px; */
/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
margin-bottom: 12px;
}
.image-container {
@ -46,4 +60,14 @@
/* .slide-image {
width: 100%;
height: 100%;
} */
} */
.fontStyle{
width: 18px;
height: 17px;
font-family: D-DINExp;
font-weight: DINExp;
font-size: 16px;
color: #1684FF;
letter-spacing: 0;
text-align: center;
}
Loading…
Cancel
Save