<!--index.wxml-->
<view class="h-div v-center top">
  <image class="img" src="/images/home/icon_top-bg.png" mode="aspectFill" />
  <image class="avatar" catchtap="toSkip" data-url="/pages/account/info/index" 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 catchtap="toMsgDetail" data-item="{{item}}" class="img" src="{{baseImgUrl+item.coverImg}}" mode="widthFix"></image>
    <text class="title ellipsis">{{item.title}}</text>
  </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="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>