113 lines
4.8 KiB
Plaintext
113 lines
4.8 KiB
Plaintext
|
|
<!--index.wxml-->
|
||
|
|
<view class="h-div v-center top">
|
||
|
|
<image class="img" src="/images/home/icon_top-bg.png" mode="aspectFill" />
|
||
|
|
<image class="avatar" src="/images/home/avatar.png" mode="aspectFit" />
|
||
|
|
<view class="v-div" catchtap="toSkip" data-url="/pages/account/info/index">
|
||
|
|
<text class="name">{{userInfo.chinaName}}</text>
|
||
|
|
<text class="point">{{userInfo.postName}}</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<!-- 消息 -->
|
||
|
|
<swiper class="item-bg swiper-msg" autoplay indicator-dots indicator-active-color='#ffffff'>
|
||
|
|
<swiper-item class="item" wx:for="{{notice}}" wx:key="{{item}}">
|
||
|
|
<image class="img" src="{{item}}" mode="widthFix"></image>
|
||
|
|
</swiper-item>
|
||
|
|
</swiper>
|
||
|
|
<!-- 数据统计 -->
|
||
|
|
<view class="item-bg">
|
||
|
|
<view class="h-div v-center title">
|
||
|
|
<image class="icon" src="/images/home/icon_work.png" />
|
||
|
|
<text class="txt">数据统计</text>
|
||
|
|
</view>
|
||
|
|
<view class="item-wrapper">
|
||
|
|
<view class="item-row v-div v-center" wx:for="{{tab1}}" wx:key="index" catchtap="toSkip" data-item="{{item}}">
|
||
|
|
<image src="{{'/images/home/'+item.icon+'.png'}}" />
|
||
|
|
<text>{{item.name}}</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<!-- 工作台 -->
|
||
|
|
<view class="item-bg">
|
||
|
|
<view class="h-div v-center title">
|
||
|
|
<image class="icon" src="/images/home/icon_work.png" />
|
||
|
|
<text class="txt">工作台</text>
|
||
|
|
</view>
|
||
|
|
<view class="item-wrapper">
|
||
|
|
<view class="item-row v-div v-center" wx:for="{{tab2}}" wx:key="index" catchtap="toSkip" data-item="{{item}}">
|
||
|
|
<image src="{{'/images/home/'+item.icon+'.png'}}" />
|
||
|
|
<text>{{item.name}}</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<!-- 应急指挥 -->
|
||
|
|
<view class="item-bg">
|
||
|
|
<view class="h-div v-center title">
|
||
|
|
<image class="icon" src="/images/home/icon_work.png" />
|
||
|
|
<text class="txt">应急指挥</text>
|
||
|
|
</view>
|
||
|
|
<view class="item-wrapper">
|
||
|
|
<view class="item-row v-div v-center" wx:for="{{tab3}}" wx:key="index" catchtap="toSkip" data-item="{{item}}">
|
||
|
|
<image src="{{'/images/home/'+item.icon+'.png'}}" />
|
||
|
|
<text>{{item.name}}</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<!-- 统计 -->
|
||
|
|
<view class="item-bg" wx:if="{{false}}">
|
||
|
|
<view class="h-div filter">
|
||
|
|
<image style="right: {{filterIndex==1?'0':''}};" class="filter-img {{filterIndex==1?'filter-checked':''}}" src="/images/home/icon_filter-bg.png" mode="aspectFill" />
|
||
|
|
<text catchtap="changeFilter" data-index="{{index}}" class="lab {{filterIndex==index?'lab-checked':''}}" wx:for="{{filter}}">{{item.lab}}</text>
|
||
|
|
</view>
|
||
|
|
<view class="h-div v-center title">
|
||
|
|
<image class="icon" src="/images/home/icon_static.png" />
|
||
|
|
<text class="txt flex">检查统计</text>
|
||
|
|
<view wx:if="{{false}}" class="h-div h-center tab">
|
||
|
|
<text catchtap="changeType" data-type="{{0}}" class="left {{nineType == 0?'checked':''}}">全部</text>
|
||
|
|
<text catchtap="changeType" data-type="{{1}}" class="center {{nineType == 1?'checked':''}}">九小</text>
|
||
|
|
<text catchtap="changeType" data-type="{{2}}" class="right {{nineType == 2?'checked':''}}">其它</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="h-div check-static">
|
||
|
|
<view catchtap="toSkip" data-url="/pages/check/record/index/index" class="v-div v-center flex">
|
||
|
|
<text class="val">{{checkInfo.inspectCount||5}}</text>
|
||
|
|
<text class="tips">检查次数</text>
|
||
|
|
</view>
|
||
|
|
<view class="line-static"></view>
|
||
|
|
<view catchtap="toSkip" data-url="/pages/danger/list/index" class="v-div v-center flex">
|
||
|
|
<text class="val" style="color: #FF5050;">{{checkInfo.dangerCount.dangerTotal||1}}</text>
|
||
|
|
<text class="tips">发现隐患数</text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="h-div v-center title">
|
||
|
|
<image class="icon" src="/images/home/icon_static.png" />
|
||
|
|
<text class="txt">隐患整改统计</text>
|
||
|
|
</view>
|
||
|
|
<view catchtap="toSkip" data-url="/pages/danger/list/index" class="h-div">
|
||
|
|
<ec-canvas id="d-chart" canvas-id="d-chart" ec="{{ ec }}" class="charts flex"></ec-canvas>
|
||
|
|
<view class="v-div flex">
|
||
|
|
<view style="flex:1;"></view>
|
||
|
|
<view class="h-div v-center legend flex" wx:for="{{dLegend}}" wx:key="*this">
|
||
|
|
<view class="v-div flex">
|
||
|
|
<view style="background:{{item.color}}" wx:if="{{item.color}}" class="single"></view>
|
||
|
|
<text class="flex label">{{item.name}}</text>
|
||
|
|
</view>
|
||
|
|
<text class="value">{{item.num}}</text>
|
||
|
|
</view>
|
||
|
|
<view style="flex:0.5;"></view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="space"></view>
|
||
|
|
|
||
|
|
<!-- 消息详情 -->
|
||
|
|
<view class="cu-modal {{showPop?'show':''}}">
|
||
|
|
<view class="cu-dialog pop">
|
||
|
|
<view class="cu-bar justify-end pop-header">
|
||
|
|
<view class="content text-black" style="font-weight: bold;">消息</view>
|
||
|
|
<view class="action" bindtap="handldePop">
|
||
|
|
<text class="cuIcon-close text-black"></text>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<textarea disabled class="pop-content" value="{{msgData.content}}" />
|
||
|
|
</view>
|
||
|
|
</view>
|