<view class='tab'>
  <view class='top'>
    <view class="{{index==0?'select':''}}" catchtap='tab' data-index='0'>基本信息</view>
    <view class="{{index==1?'select':''}}" catchtap='tab' data-index='1'>申请材料</view>
    <view class="{{index==2?'select':''}}" catchtap='tab' data-index='2'>常见问题</view>
  </view>
</view>
<swiper style="height: {{clientHeight?clientHeight+'px':'auto'}}" current='{{current_index}}' bindchange='swiper'>
  <!-- 办事指南模块 -->
  <swiper-item>
    <scroll-view scroll-y="{{true}}" style="height: {{clientHeight?clientHeight+'px':'auto'}}">
      <view>
        <view style='background-color:#fff;margin-top:20rpx;position:relative;'>
          <view class='content'>
            <view class='title'>
              基本信息
            </view>
            <view class='content_text'>
              <view class='guide'>
                <view class='guide-title'>事项类型: </view>
                <view>{{guide.preService.serviceType?guide.preService.serviceType:'无'}}</view>
              </view>
              <view class='guide'>
                <view class='guide-title'>实施主体: </view>
                <view>{{guide.preService.deptName?guide.preService.deptName:'无'}}</view>
              </view>
              <view class='guide'>
                <view class='guide-title'>行使层级: </view>
                <view>{{guide.preService.performLevel?guide.preService.performLevel:'无'}}</view>
              </view>
              <view class='guide'>
                <view class='guide-title'>办理对象: </view>
                <view>{{guide.preService.forUser?guide.preService.forUser:'无'}}</view>
              </view>
              <view class='guide'>
                <view class='guide-title'>办理类型: </view>
                <view>{{guide.preService.infoType?guide.preService.infoType:'无'}}</view>
              </view>
              <view class='guide'>
                <view class='guide-title'>法定期限: </view>
                <view>{{guide.preService.legalDays?guide.preService.legalDays+'天':'无'}}</view>
              </view>
              <block wx:if='{{show}}'>
                <view class='guide'>
                  <view class='guide-title'>承诺期限: </view>
                  <view>{{guide.preService.promiseDays?guide.preService.promiseDays+'天':'无'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>办理形式: </view>
                  <view>{{guide.preService.preServiceExt.handleType?guide.preService.preServiceExt.handleType:'无'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>支持预约办理: </view>
                  <view>{{guide.preService.preServiceExt.isReservation=='N'?'否':'是'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>支持物流快递: </view>
                  <view>{{guide.preService.preServiceExt.isExpress?guide.preService.preServiceExt.isExpress:'无'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>咨询电话: </view>
                  <view>{{guide.preService.contactPhone?guide.preService.contactPhone:'无'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>监督投诉: </view>
                  <view>{{guide.preService.monitorComplain?guide.preService.monitorComplain:'无'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>办理时间: </view>
                  <view style='width:480rpx;'>{{guide.preService.officeTime?guide.preService.officeTime:'无'}}</view>
                </view>
                <view class='guide'>
                  <view class='guide-title'>办理地点: </view>
                  <view class='address'>{{guide.preService.trafficGuide?guide.preService.trafficGuide:'无'}}</view>
                </view>
                <!-- <view>实施单位: 区农业农村局</view>
              <view>办理地点: 洛龙区行政服务中心</view>
              <view>办公时间: 上午8:00-12:00   下午2:30-5:30</view>
              <view>咨询电话: 0379-69101110</view> -->
              </block>
            </view>
            <!-- <view class='btn' bindtap='call' data-phone='{{guide.preService.contactPhone}}'>
            <image src='../../../images/icon_phone.png'></image>
            <text>我要咨询</text>
          </view> -->
            <view style='height:1rpx;width:100%;background-color:#efefef;margin-top:30rpx;'></view>
            <view class='show' catchtap='show'>
              {{showText}}
            </view>
          </view>
          <view class='keep' catchtap="{{guide.isCollect=='0'||!guide.isCollect?'keep':''}}">
            <image wx:if="{{guide.isCollect=='0'||!guide.isCollect}}" src='{{keepImg}}'></image>
            <image wx:if="{{guide.isCollect!='0'&&guide.isCollect}}" src='../../../images/keep_check.png'></image>
            <text>收藏</text>
          </view>
        </view>
        <view style='background-color:#fff;margin-top:30rpx;'>
          <view class='basis kind-list-item-hd-show' data-value='basis' bindtap="kindToggle">
            <text>设定依据</text>
            <image src='../../../images/icon_show.png'></image>
          </view>
        </view>
        <block>
          <view class="basis-content kind-list-item-bd {{expand=='basis'&dis?'kind-list-item-bd-show':''}}">
            <view class="navigator-box {{expand=='basis'&dis?'navigator-box-show':''}}">
              {{guide.preService.legalStandard?guide.preService.legalStandard:'无'}}
            </view>
          </view>
        </block>
        <view style='background-color:#fff;' data-value='circuit' bindtap="kindToggle">
          <view class='basis'>
            <text>办理流程图</text>
            <image src='../../../images/icon_show.png'></image>
          </view>
        </view>
        <block>
          <view wx:if="{{expand=='circuit'}}" class="basis-content kind-list-item-bd {{expand=='circuit'&dis?'kind-list-item-bd-show':''}}">
            <view class="navigator-box {{expand=='circuit'&dis?'navigator-box-show':''}}">
              <image catchtap='previewimg' data-url='{{guide.preService.flowContent}}' wx:if='{{guide.preService.flowContent}}' style='width:100%' mode='widthFix' src='{{guide.preService.flowContent}}'></image>
              <text wx:if='{{!guide.preService.flowContent}}'>无</text>
            </view>
          </view>
          <view wx:if="{{expand!='circuit'}}" style='height:30rpx;'></view>
        </block>
        <view style='background-color:#fff;' data-value='stuff' bindtap="kindToggle">
          <view class='basis'>
            <text>办理材料</text>
            <image src='../../../images/icon_show.png'></image>
          </view>
        </view>
        <block>
          <view class="basis-content kind-list-item-bd {{expand=='stuff'&dis?'kind-list-item-bd-show':''}}">
            <view class="navigator-box {{expand=='stuff'&dis?'navigator-box-show':''}} stuff">
              <block wx:for='{{guide.preService.preServiceMaterialList}}' wx:key='{{index}}'>
                <view class='stuff-show'>
                  <view class='stuff-title'>
                    <text>{{index+1}}.{{item.name}}</text>
                  </view>
                  <view class='stuff-but'>
                    <block wx:for='{{item.preServiceTableList}}' wx:for-item='i' wx:for-index='ind' wx:key='{{i.unid}}'>
                      <view catchtap='mask' data-url='{{i.fileUrl}}' data-docname='{{i.name}}'>{{i.type==2?'[示例范文]':'[空白表格]'}}</view>
                    </block>
                  </view>
                </view>
                <!-- <image style='width:30rpx;height:30rpx;' src='../../../images/right.png'></image> -->
              </block>
              <view wx:if='{{guide.preService.preServiceMaterialList.length==0}}'>
                无
              </view>
            </view>
          </view>
        </block>
        <view style='background-color:#fff;' data-value='sample' bindtap="kindToggle">
          <view class='basis'>
            <text>办理结果样本</text>
            <image src='../../../images/icon_show.png'></image>
          </view>
        </view>
        <block>
          <view class="basis-content kind-list-item-bd {{expand=='sample'&dis?'kind-list-item-bd-show':''}}">
            <view class="navigator-box {{expand=='sample'&dis?'navigator-box-show':''}}">
              <image catchtap='previewimg' data-url='{{guide.preService.resultExample}}' wx:if='{{guide.preService.resultExample}}' style='width:100%' mode='widthFix' src='{{guide.preService.resultExample}}'></image>
              <text wx:if='{{!guide.preService.resultExample}}'>无</text>
            </view>
          </view>
        </block>
        <view style='background-color:#fff;' data-value='result' bindtap="kindToggle">
          <view class='basis'>
            <text>办理结果说明</text>
            <image src='../../../images/icon_show.png'></image>
          </view>
        </view>
        <block>
          <view class="basis-content kind-list-item-bd {{expand=='result'&dis?'kind-list-item-bd-show':''}}">
            <view class="navigator-box {{expand=='result'&dis?'navigator-box-show':''}}">
              {{guide.preService.resultDesc?guide.preService.resultDesc:'无'}}
            </view>
          </view>
        </block>
        <view style='height:50rpx;width:100%;'></view>
      </view>
    </scroll-view>
  </swiper-item>
  <!-- 材料下载模块 -->
  <swiper-item>
    <scroll-view scroll-y="{{true}}" style="height: {{clientHeight?clientHeight+'px':'auto'}}">
      <view style="padding-bottom:50rpx;">
        <block wx:for='{{guide.preService.preServiceMaterialList}}' wx:for-item='item' wx:key='{{index}}'>
          <view class='material'>
            <view class='material_content'>
              <view class='material_title'>{{index+1}}.{{item.name}}</view>
              <view class='material_btn'>
                <block wx:for='{{item.preServiceTableList}}' wx:for-item='i' wx:for-index='ind' wx:key='{{i.unid}}'>
                  <view style='margin-top:30rpx;' catchtap='mask' data-url='{{i.fileUrl}}' data-docname='{{i.name}}'>{{i.type==2?'示例范文':'空白表格'}}</view>
                </block>
              </view>
            </view>
          </view>
        </block>
        <view wx:if='{{guide.preService.preServiceMaterialList.length==0}}' class='noList'>
          <image src='../../../images/list_null.png'></image>
          <view>暂无数据</view>
        </view>
      </view>
    </scroll-view>
  </swiper-item>
  <!-- 常见问题 -->
  <swiper-item>
    <scroll-view scroll-y="{{true}}" style="height: {{clientHeight?clientHeight+'px':'auto'}}">
      <view wx:if='{{guide.preService.preServiceNoticeList.length!=0}}'>
        <block wx:for='{{guide.preService.preServiceNoticeList}}' wx:for-item='question' wx:key='{{question.unid}}'>
          <view class='problem'>
            <view class='problem_content'>
              <view class='question'>
                <view>A1</view>
                <text>{{question.title}}</text>
              </view>
              <view class='question answer'>
                <view>Q1</view>
                <text>{{question.content}}</text>
              </view>
            </view>
          </view>
        </block>
      </view>
      <view wx:if='{{guide.preService.preServiceNoticeList.length==0}}' class='noList'>
        <image src='../../../images/list_null.png'></image>
        <view>暂无数据</view>
      </view>
    </scroll-view>
  </swiper-item>
</swiper>







<!-- 遮罩层 -->
<view class='mask' wx:if='{{mask}}'>
  <view>
    <view class='mask_content'>
      <view>{{docName}}</view>
      <view class="button" catchtap='preview'>
        <text>在线预览</text>
      </view>
      <view class="button" catchtap='copy'>
        <text>复制下载</text>
      </view>
    </view>
    <view class='clear'>
      <image catchtap='clear' src='../../../images/clear.png'></image>
    </view>
  </view>
</view>
<view class='fixed'>
  <view catchtap="{{guide.preService.preServiceExt.isOnline=='Y'?'navigator':''}}" class="{{guide.preService.preServiceExt.isOnline=='Y'?'':'stop-nav'}}" data-url='/pages/handle/write/write?unid={{guide.preService.unid}}&search={{search}}' style='margin-left:0rpx;'>我要办理</view>
  <view catchtap="{{guide.preService.preServiceExt.isReservation=='Y'?'navigator':''}}" class="{{guide.preService.preServiceExt.isReservation=='Y'?'':'stop-nav'}}" data-url='/pages/handle/reservation/index?unid={{guide.preService.unid}}' data-type="reservation">我要预约</view>
  <view catchtap="navigator" data-unid="{{guide.preService.unid}}" data-type="switchTab" data-url='/pages/interaction/index'>我要咨询</view>
</view>