<!--packageD/auction/auction-apply/auction-apply/auction-apply.wxml-->
<view class="content">
  <view class="bannar">
    <image src="{{banner_img?banner_img:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/applyRegionalAgency.jpg'}}"></image>
  </view>
  <view class="title">
    <view class="line"></view>
    <view class='span'>申请信息</view>
  </view>
  <view class="items">
    <view class="lefts">
      <view class='span'>姓名</view>
      <view class='span' class="xi">*</view>
    </view>
    <input class="rights" placeholder="请输入姓名" bindinput="real_name" value="{{real_name}}"></input>
  </view>
  <view class="items">
    <view class="lefts">
      <view class='span'>手机号</view>
      <view class='span' class="xi">*</view>
    </view>
    <input class="rights" placeholder="请输入手机号" bindinput="mobile" value="{{mobile}}"></input>
  </view>
  <view class="items" bindtap="addressShowbtn">
    <view class="lefts">
      <view class='span'>所在城市</view>
      <view class='span' class="xi">*</view>
    </view>
    <view class="rights" placeholder="请选择城市">{{auctionValue.retCity?auctionValue.retCity:'请选择城市'}}</view>
  </view>
  <view class="items" catchtap="streetChoose">
    <view class="lefts">
      <view class='span'>街道</view>
      <view class='span' class="xi">*</view>
    </view>
    <input class="rights" placeholder="请选择街道" bindinput="street" value="{{street}}"></input>
  </view>
  <view class="items">
    <view class="lefts">
      <view class='span'>详细地址</view>
      <view class='span' class="xi">*</view>
    </view>
    <input class="rights" placeholder="请输入详细地址" bindinput="address" value="{{address}}"></input>
  </view>
  <view class="items">
    <view class="lefts">
      <view class='span'>身份证号码</view>
      <view class='span' class="xi">*</view>
    </view>
    <input class="rights" placeholder="请输入身份证号码" bindinput="identity_card" value="{{identity_card}}"></input>
  </view>
  <view class="items">
    <view class="lefts">
      <view class='span'>企业名称</view>
      <!-- <view class='span' class="xi">*</view> -->
    </view>
    <input class="rights" placeholder="请输入企业名称" bindinput="company" value="{{company}}"></input>
  </view>
  <view class="statusSet">
    <view class="titlemessage tittop">
      <!-- <view class="titleIcon"></view> -->
      <!-- <view>资质证件</view> -->
    </view>
    <view class="statusBox">
      <view class="statusTitle">上传身份证人像面
        <text>*</text>
      </view>
      <view class="staImg" catchtap='onRead_1'>
        <image class="{{back?'imaborder':''}}" src="{{back?back:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_up@2x.png'}}"></image>
      </view>
    </view>
    <view class="statusBox">
      <view class="statusTitle">上传身份证国徽面
        <text>*</text>
      </view>
      <view class="staImg" catchtap='onRead'>
        <image class="{{positive?'imaborder':''}}" src="{{positive?positive:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_down@2x.png'}}"></image>
      </view>
    </view>
    <view class="statusBox">
      <view class="statusTitle">手持身份证照片
        <text>*</text>
      </view>
      <view class="staImg" catchtap='onRead_2'>
        <image class="{{holdID?'imaborder':''}}" src="{{holdID?holdID:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_up@2x.png'}}"></image>
      </view>
    </view>
    <view class="statusBox">
      <view class="statusTitle">企业营业执照照片</view>
      <view class="staImg" catchtap='onRead_3'>
        <image class="{{license?'imaborder':''}}" src="{{license?license:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_up@2x.png'}}"></image>
      </view>
    </view>
    <view class="title" style="margin-top:30rpx;">
      <view class="line"></view>
      <view class='span'>备注信息</view>
    </view>
    <view class="is_area">
      <textarea placeholder="填写备注信息" bindinput='remarkinp' value="{{remark}}" wx:if="{{!shenqShow}}"></textarea>
    </view>
  </view>
  <view class="choosebtn">
    <view class="right">
      <van-checkbox value="{{auctionValue.agreementChoose}}" checked-color="#f15353" shape="square" bind:change="Chooseinp"></van-checkbox>
    </view>
    <view class="left">阅读并同意
      <text catchtap='shenqShow'>《申请协议》</text>
    </view>
  </view>
</view>

<view class="sumbit" catchtap="apply">提交</view>

<view class="dateBe {{addressShow}}">
  <view class="head">
    <view class="ll" bindtap="_closeDateLw">取消</view>
    <view class="rr" bindtap="resultAdd">确定</view>
  </view>
  <view class="main">
    <picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}" bindchange="bindChange">
      <picker-view-column id="provinceData">
        <view wx:for="{{provinceData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
      </picker-view-column>
      <picker-view-column id="cityData">
        <view wx:for="{{cityData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
      </picker-view-column>
      <picker-view-column id="districtData">
        <view wx:for="{{districtData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
      </picker-view-column>
    </picker-view>
  </view>

</view>
<van-popup show='{{showphone}}' bind:click-overlay="isCoverLayer" class="two">
  <view class="showtwo_btns">
    <view class="title" style="text-align: center;">
      <icon class="iconfont icon-pm_auction_success" style="color:#999999;font-size: 50px"></icon>
      <view class="txt">提交成功</view>
      <view class="text">请等待管理员审核</view>
    </view>
    <view class="btn_bottom" catchtap="tapoff">确认</view>
  </view>
</van-popup>
<van-popup show="{{shenqShow}}" custom-style="width:100%;height:100%;overflow:auto;" position="right" bind:close="onClose">
  <van-nav-bar title="申请协议" left-text="" right-text="" left-arrow bind:click-left="onClicksQ" />
  <view class="vip_main">
    <!-- <view class="title">申请协议：</view> -->
    <view class="vip">
      <view class="text">
        <view class="t1">
          <rich-text nodes="{{agreement}}"></rich-text>
        </view>
      </view>
    </view>
  </view>
</van-popup>
<van-popup custom-style="width:100%;height:100%;overflow:auto;" show="{{streetShow}}" position="right" overlay="{{false}}" >
	<view class="streetContent">
		<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="streetClose" />
		<van-cell-group>
			<van-cell wx:for="{{districtVal}}" wx:key="index" title="{{item.areaname}}" data-strname="{{item.areaname}}" is-link bindtap="streetConfirm" data-info="{{item}}"/>
		</van-cell-group>
	</view>
</van-popup>