|
|
|
<!--pages/home/home.wxml-->
|
|
|
|
<scroll-view scroll-y="true" style="height:{{pageHeight}} ;">
|
|
|
|
<view style="overflow: auto; padding: 0 15px;">
|
|
|
|
<!--轮播图-->
|
|
|
|
<view class="card">
|
|
|
|
<swiper indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
|
|
|
|
<block wx:for-items="{{swiperData}}" wx:key="*this">
|
|
|
|
<swiper-item>
|
|
|
|
<image src="{{item.imgurl}}" mode="aspectFill" style="width: 100%;height:100%"/>
|
|
|
|
</swiper-item>
|
|
|
|
</block>
|
|
|
|
</swiper>
|
|
|
|
</view>
|
|
|
|
<!--子系统列表-->
|
|
|
|
<view class="list card" style="display: flex; flex-wrap: wrap;">
|
|
|
|
<view style="min-width: 25%; margin: 10px 0px;text-align: center;" wx:for="{{itemList}}" wx:for-item="item" wx:key="*this" data-key="{{item.itemName}}" bindtap="jumpToSubSystem">
|
|
|
|
<image src="{{item.picPath}}" style="width: 29.97px;height: 28.93px;" />
|
|
|
|
<view>{{item.itemName}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!--最近7天统计-->
|
|
|
|
<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 class="count">巡检次数</view>
|
|
|
|
<view><text class="fontStyle">{{sevenDaysCount}}</text>次</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="display: flex; justify-content: space-around;">
|
|
|
|
<view class="flex" style="padding-left:10px ;">
|
|
|
|
<view style="margin:10px 0px;" class="only">发现问题个数</view>
|
|
|
|
<view style="margin:10px 0px;"><text class="fontStyle">{{sevenDaysQuestionCount}}</text></view>
|
|
|
|
<view style="margin:10px 0px;" class="only">个</view>
|
|
|
|
</view>
|
|
|
|
<view class="flex">
|
|
|
|
<view style="margin:10px 0px;" class="only">问题处理个数</view>
|
|
|
|
<view style="margin:10px 0px;"><text class="fontStyle">{{sevenDaysHandleCount}}</text></view>
|
|
|
|
<view style="margin:10px 0px;" class="only">个</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!--总巡巡检统计-->
|
|
|
|
<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 class="count">巡检次数</view>
|
|
|
|
<view><text class="fontStyle">{{allCount}}</text>次</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="display: flex; justify-content: space-around;">
|
|
|
|
<view class="flex">
|
|
|
|
<view style="margin:10px 0px;" class="only">发现问题个数</view>
|
|
|
|
<view style="margin:10px 0px;"><text class="fontStyle">{{allQuestionCount}}</text></view>
|
|
|
|
<view style="margin:10px 0px;" class="only"> 个</view>
|
|
|
|
</view>
|
|
|
|
<view class="flex">
|
|
|
|
<view style="margin:10px 0px;" class="only">问题处理个数</view>
|
|
|
|
<view style="margin:10px 0px;"><text class="fontStyle">{{allHandleCount}}</text></view>
|
|
|
|
<view style="margin:10px 0px;" class="only"> 个</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="height: 48px;"></view>
|
|
|
|
</view>
|
|
|
|
</scroll-view>
|