<view id="add_bank_second">
  	<view class="content">
        <view class="item">
					<text style="width:128rpx;text-align: left;display: inline-block;">银行</text>
					<input type="text" disabled="true" placeholder="请选择所属银行" value="{{bank_name}}"/>
					<i class="iconfont icon-advertise-next" bindtap="openBank"></i>
				</view>
        	<view class="item">
						<text style="width:128rpx;text-align: left;display: inline-block;">卡类型</text>
						<input type="text" disabled="true" placeholder="请选择银行卡类型" value="{{bank_type}}"/>
						<i class="iconfont icon-advertise-next" bindtap="openCard"></i>
					</view>
					<view class="item" wx:if="{{radio1==1}}">
							<text style="width:128rpx;text-align: left;display: inline-block;">安全码</text>
							<input type="number"  placeholder="卡背面末三位" value="{{cvv}}" bindinput="cvvInp"/>
					</view>
          
					<view class="item" style="justify-content:space-between;"  wx:if="{{radio1==1}}">
							<text style="width:128rpx;text-align: left;display: inline-block;">有效期</text>
							<picker mode="date" value="{{date}}" bindchange="bindDateChange" style="flex:1" fields="month">
              <view class="picker">
                {{date}}
              </view>
  </picker>
							<i class="iconfont icon-advertise-next"  bindTap="openDate"></i>
					</view>
          <view class="tip">
						提醒:后续只能绑定该持卡人的银行卡
					</view>
          <view class="item" wx:if="{{bank.length<=0}}">
							<text style="width:128rpx;text-align: left;display: inline-block;">姓名</text>
							<input type="text"  placeholder="请输入姓名" value="{{payer_name}}" bindinput="nameInp"/>
					</view>
					<view class="item" wx:if="{{bank.length<=0}}">
							<text style="width:128rpx;text-align: left;display: inline-block;">证件类型</text>
							<input type="text" disabled="true" placeholder="请选择证件类型" value="{{id_type}}"/>
							<i class="iconfont icon-advertise-next" bindtap="openType"></i>
						</view>
					<view class="item"  wx:if="{{bank.length<=0}}">
							<text style="width:128rpx;text-align: left;display: inline-block;">证件号</text>
							<input type="text"  placeholder="请输入证件号" value="{{id_no}}" bindinput="idInp"/>
					</view>
					<view class="item">
							<text style="width:128rpx;text-align: left;display: inline-block;">手机号</text>
							<input type="number"  placeholder="请填写银行卡预留手机号" value="{{payer_phone}}" bindinput="phoneInp"/>
					</view>
					<view class="check">
						<van-checkbox value="{{checked}}" style="margin-right:32rpx;" checked-color="#ff2c29" bind:change="toSelect"></van-checkbox>
						<view>
							<text style="color:#b0b0b0;">同意</text>
							<text style="color:#ff8988;" bindtap="openAgg">《用户协议》</text>
						</view>
					</view>
          <view class="bank-btn" bindtap="addBank">
						下一步
					</view>
    </view>
</view>
<van-popup
  show="{{ show2 }}"
 	position="bottom"
  overlay="{{ true }}"
  custom-style="width:100%;height:60%;overflow-y:scroll;"
  class="bank"
>
	<view class="title">
						所属银行
						<i class="iconfont icon-close11" bindtap="closeBank"></i>
					</view>
					<view class="content">
							<ul>
							<van-radio-group value="{{radio}}" bind:change="bankChange"> 
								<li wx:for="{{datas}}" wx:key="index" class="radio">
									<text>{{item.text}}</text>
									<van-radio name="{{item.id}}"  checked-color="#ff2c29"></van-radio>
								</li>
							</van-radio-group>
							</ul>
							<view class="btn" bindtap="confirm">
								确定
							</view>
						</view>
</van-popup>
	<van-popup
			 show="{{ show3 }}"
 	position="bottom"
  overlay="{{ true }}"
  custom-style="width:100%;height:60%;overflow-y:scroll;"
  class="card"
		>
					<view class="title">
						银行卡类型
						<i class="iconfont icon-close11" bindtap="closeCard"></i>
					</view>
					<view class="content">
							<ul>
							<van-radio-group value="{{radio1}}" bind:change="cardChange"> 
								<li wx:for="{{card}}" wx:key="index" class="radio">
									<text>{{item.text}}</text>
									<van-radio name="{{item.id}}" checked-color="#ff2c29"></van-radio>
								</li>
							</van-radio-group>
							</ul>
							<view class="btn" bindtap="cardConfirm">
								确定
							</view>
						</view>
</van-popup>
	<van-popup
			 show="{{ show4 }}"
 	position="bottom"
  overlay="{{ true }}"
  custom-style="width:100%;height:60%;overflow-y:scroll;"
  class="type"
		>
					<view class="title">
						证件类型
						<i class="iconfont icon-close11" bindtap="closeType"></i>
					</view>
					<view class="content">
							<ul>
							<van-radio-group value="{{radio2}}" bind:change="idChange"> 
								<li wx:for="{{idType}}" wx:key="index" class="radio">
									<text>{{item.text}}</text>
									<van-radio name="{{item.id}}" checked-color="#ff2c29"></van-radio>
								</li>
							</van-radio-group>
							</ul>
							<view class="btn" bindtap="typeConfirm">
								确定
							</view>
						</view>
</van-popup>
<van-popup
			class="message"
		show="{{ show5 }}"
 	
  overlay="{{ true }}"
  custom-style="width:80%;height:70%;overflow-y:scroll;"
		>
					<view class="title">
					用户协议
						<i class="iconfont icon-close11" bindtap="closeAgg"></i>
					</view>
					<view class="content">
						<rich-text nodes="{{user_agrt}}"></rich-text>
					</view>
</van-popup>
 