<!--pages/party-member/internalIndex/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">党员内部</text>
  </view>
</view>
<view class="logo">
  <image class="img" src="/images/logo.png"/>
<view>
  做干部群众和党员队伍的
  <view>领头雁！</view>
</view>
</view>

<scroll-view scroll-x class="bg-white nav">
  <view class="flex text-center">
    <view class="cu-item flex-sub {{index==curTab?'text-blue cur':''}}" wx:for="{{tabs}}" wx:key catchtap="tabSelect" data-index="{{index}}">
      {{item.lab}}
    </view>
  </view>
</scroll-view>
<view class="filter" wx:if="{{curTab==0||curTab==1}}">
  <picker mode="date" value="{{startTime}}" bindchange="startTimeChange">
    <view class="picker">
      开始时间: {{startTime}}
    </view>
  </picker>
  <view class="line"></view>
  <picker mode="date" value="{{endTime}}" bindchange="endTimeChange">
    <view class="picker">
      结束时间: {{endTime}}
    </view>
  </picker>
</view>
<scroll-view scroll-y style="height: calc(100vh - 280rpx - {{topBarH}}px);" refresher-enabled bindrefresherrefresh="refresh" bindscrolltolower="dropDown" lower-threshold="300" refresher-triggered="{{freshIng}}">
  <!-- 云服务 -->
  <view wx:if="{{curTab==0}}" catchtap="toserveDetail" data-item="{{item}}" class="item h-div serve" wx:for="{{list}}">
    <view class="content">
      <view class="title">标题：{{item.title}}</view>
      <view class="des">{{item.detail}}</view>
      <view class="time">发布人：{{item.chinaName}}</view>
      <view class="time">时间：{{item.startTime}}至{{item.endTime}}</view>
    </view>
  </view>
  <!-- 云诉求 -->
  <view wx:if="{{curTab==1}}">
    <view catchtap="toescalationDetail" data-item="{{item}}" class="item h-div serve" wx:for="{{list}}">

      <view class="content">
        <view class="title">{{item.content}}</view>
        <view class="time">时间：{{item.createTime}}</view>
        <view class="time">处置状态：{{item.difficultyState==1?"待处置":item.difficultyState==2?"已处置":"已取消"}}</view>

      </view>
    </view>
  </view>
  <!-- 云学习 -->
  <swiper wx:if="{{curTab==2}}" 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.coverPath}}" mode="widthFix"></image>
        <text class="title ellipsis">{{item.title}}</text>
      </swiper-item>
    </swiper>
  <view wx:if="{{curTab==2}}" class="studyOption" wx:for="{{list}}" wx:key="{{item}}" catchtap="toMsgDetail" data-item="{{item}}">
    <view class="study_left">
      <image src="{{baseImgUrl+item.coverPath}}" />
      <!-- <view>政策法规</view> -->
    </view>
    <view class="study_right">
      <view class="study_right_title">{{item.title}}</view>
    </view>
  </view>
  <!-- 云公开 -->
  <view wx:if="{{curTab==3}}">
    <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.coverPath}}" mode="widthFix"></image>
        <text class="title ellipsis">{{item.title}}</text>
      </swiper-item>
    </swiper>
    <view class="study">
      <view class="studyOption" wx:for="{{list}}" wx:key="{{item}}" catchtap="toMsgDetail" data-item="{{item}}">
        <view class="study_left">
          <image src="{{baseImgUrl+item.coverPath}}" />
          <!-- <view>政策法规</view> -->
        </view>
        <view class="study_right">
          <view class="study_right_title">{{item.title}}</view>
          <!-- <view class="study_right_con">
        <view>部门名称</view>
        <view>{{item.createTime}}</view>
      </view> -->
        </view>
      </view>
    </view>
  </view>


  <empty wx:if="{{list.length==0}}" />
  <view class="space"></view>
</scroll-view>
<view wx:if="{{curTab==0}}" class="option">
  <view catchtap="escalationAppeal" class="btn">上报服务</view>
</view>
<view wx:if="{{curTab==1}}" class="option">
  <view catchtap="escalationDifficulty" class="btn">上报诉求</view>
</view>








<!-- 为民服务 -->
<!-- <view class="service" catchtap="toAppeal">
  <image class="serviceFuwuImg" src="/images/theMasses/fuwu.png" />
  <view class="service_con">
    <image class="serviceTitleImg" src="/images/theMasses/title.png" />
    <view class="con">点击直接上报群众问题！</view>
  </view>
</view> -->
<!-- 学习内容 -->
<!-- <notice notice="{{notice}}" list="{{list}}" type="partyMember"/> -->