<!--packageH/flightInformation/flightInformation.wxml-->
<view id="flightInformation">
  <view class="posBtn">
    <view class="btnposA" catchtap="goDetail">
      <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/flightInformationreplay.png" alt=""></image>
    </view>
  </view>
  <view class="banner">
    <swiper style="height:{{imgheights}}rpx;">
      <block>
        <swiper-item>
          <image src="{{info.banner_one.img_url}}" mode="widthFix" bindload="imageLoad" catchtap="linkUrl"
            data-img="{{info.banner_one.min_url}}"></image>
        </swiper-item>
        <swiper-item>
          <image src="{{info.banner_two.img_url}}" mode="widthFix" bindload="imageLoad" catchtap="linkUrl"
            data-img="{{info.banner_two.min_url}}"></image>
        </swiper-item>
        <swiper-item>
          <image src="{{info.banner_three.img_url}}" mode="widthFix" bindload="imageLoad" catchtap="linkUrl"
            data-img="{{info.banner_three.min_url}}"></image>
        </swiper-item>
      </block>
    </swiper>
  </view>
  <view class="isForm">
    <view class="title">
      <view class="left">
        <view class="line"></view>
        填写表单
      </view>
      <view class="span" catchtap="popShow">注意事项</view>
    </view>
    <view class="formConten">
      <dsfrom datas="{{dfData}}" params="{{'flight'}}" bind:traCheckedData="traCheckedData" wx:if="{{dfData}}"
        class="dsfrom" bindgofunarr="dfsave"></dsfrom>
    </view>
  </view>
  <!-- 航班信息二期 -->
  <view class="pLine" catchtap="search" data-key="des">
    <van-field value="{{form.destination}}" placeholder="请输入出发地" input-align="left" required bind:input="inpDes"
      readonly="{{true}}" />
    <icon class="iconfont icon-sousuo1"></icon>
  </view>
  <view class="pLine" catchtap="search" data-key="ter">
    <van-field value="{{form.terminus}}" placeholder="请输入目的地" input-align="left" required bind:input="inpTerm"
      readonly="{{true}}" />
    <icon class="iconfont icon-sousuo1"></icon>
  </view>
  <view class="pLine" catchtap="search" data-key="fli">
    <van-field value="{{form.flight}}" placeholder="请输入航班号" input-align="left" required bind:input="inpFlight"
      readonly="{{true}}" />
    <icon class="iconfont icon-sousuo1"></icon>
  </view>
  <view class="pLine" catchtap="calendarTap">
    <van-field value="{{form.isDateName}}" placeholder="请选择飞行计划日期" input-align="left" required :="true"
      readonly="{{true}}" />
    <van-icon name="arrow-down" />
  </view>
  <!-- <view class="selectBox" catchtap="tapShow">
    <view class="boxCen">
      <view class="span">*</view>
      {{ start_name && destination_name && flight_name ? start_name + "-" + destination_name + "-" + flight_name : "请选择航班信息" }}
    </view>
    <van-icon name="arrow-down" />
  </view> default-date='{minDate}'-->
  <view class="btns" wx:if="{{info.is_submit}}" catchtap="gofunarr">提交</view>
  <view class="btns_no" wx:if="{{!info.is_submit}}">提交</view>
</view>
<van-calendar show="{{calendarShow}}" default-date="{{minDate}}" bind:confirm="onConfirm" bind:close="onClose"
  min-date="{{minDate}}" max-date="{{maxDate}}" />
<view wx:if="{{show}}" id="misnad">
  <van-popup show="{{show}}">
    <view class="popbox">
      <view class="title">说明</view>
      <view class="contenTxt">
        <rich-text nodes="{{information}}"></rich-text>
      </view>
    </view>
    <view class="is_icon">
      <icon class="iconfont icon-adsystem_icon_cancle" catchtap="popClose"></icon>
    </view>
  </van-popup>
</view>

<van-popup show="{{selectShow}}" position="bottom" custom-style="width:100%;height:80%;" bind:close="selectShowClose">
  <view class="" style="position: fixed;width:100%;">
    <van-search value="{{ form.destination }}" shape="round" placeholder="请输入搜索关键词" bind:change="searchGinfo"
      data-key="des" wx:if="{{noKey == 'des'}}" />
    <van-search value="{{ form.terminus }}" shape="round" placeholder="请输入搜索关键词" bind:change="searchGinfo"
      data-key="ter" wx:if="{{noKey == 'ter'}}" />
    <van-search value="{{ form.flight }}" shape="round" placeholder="请输入搜索关键词" bind:change="searchFlight" data-key="fli"
      wx:if="{{noKey == 'fli'}}" />
  </view>

  <view style="padding-top: 120rpx;">
    <view wx:for="{{moreList}}" wx:key="index" class="selectBoxDiv" catchtap="tapSelect" data-item="{{item}}">
      <block wx:if="{{noKey == 'des'}}">
        <view>{{item.flight_city_name}}</view>
        <van-icon name="success" wx:if="{{item.id == start_id}}" color="#f14e4e" />
      </block>
      <block wx:if="{{noKey == 'ter'}}">
        <view>{{item.flight_city_name}}</view>
        <van-icon name="success" wx:if="{{item.id == destination_id}}" color="#f14e4e" />
      </block>
      <block wx:if="{{noKey == 'fli'}}">
        <view>{{item.flight_number}}</view>
        <van-icon name="success" wx:if="{{item.id == flight_id}}" color="#f14e4e" />
      </block>
    </view>
    <view class="btnMore" wx:if="{{page < morePage}}" catchtap="tapMore">点击加载更多</view>
  </view>
</van-popup>
<!-- <view wx:if="{{columnsShow}}" class="columnsShow">
  <view class="diyTitle">
    <view class="tapBtn">
      <view class='span' catchtap="tapCanle">取消</view>
      <view class='span' style="color: #f14e4e;" catchtap="onConfirm">确认</view>
    </view>
    <view class="selection">
      <view class='span'>起始地</view>
      <view class='span'>目的地</view>
      <view class='span'>航班号</view>
    </view>
  </view>
  <picker-view indicator-style="height: 50px;" style="width: 100%; height: 476rpx;background:#fff;"
    value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}" bindchange="bindChange">
    <picker-view-column id="provinceData">
      <view wx:for="{{columns}}" wx:key="index"
        style="line-height: 50px;text-align: center;color: #f14e4e;font-size: 32rpx;color: #f14e4e;">
        {{item.text}}</view>
    </picker-view-column>
    <picker-view-column id="cityData">
      <view wx:for="{{columns[pickerValue[0]].children}}" wx:key="index"
        style="line-height: 50px;text-align: center;color: #f14e4e;font-size: 32rpx;">{{item.text}}</view>
    </picker-view-column>
    <picker-view-column id="districtData">
      <view wx:for="{{columns[pickerValue[0]].children[pickerValue[1]].children}}" wx:key="index"
        style="line-height: 50px;text-align: center;color: #f14e4e;font-size: 32rpx;">{{item.text}}</view>
    </picker-view-column>
  </picker-view>
</view> -->