<wxs src="./icon.wxs" module="icon" />
<view  id="choose_bank">
  	<view class="content">
      	<view class="bank-list">
          <view class="bank {{icon.getIconUrl(item,pay_type)}}" wx:for="{{ bank }}" wx:key="index"  catchtap="toPay" data-item="{{item}}">
            <view class="top">
              <view class="avator">
            <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_2.png" wx:if='{{item.bank_name=="中国工商银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_1.png" wx:if='{{item.bank_name=="中国银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_3.png" wx:if='{{item.bank_name=="中信银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_4.png" wx:if='{{item.bank_name=="上海银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_12.png" wx:if='{{item.bank_name=="中国建设银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_5.png" wx:if='{{item.bank_name=="光大银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_6.png" wx:if='{{item.bank_name=="民生银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_7.png" wx:if='{{item.bank_name=="北京银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_8.png" wx:if='{{item.bank_name=="平安银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_9.png" wx:if='{{item.bank_name=="交通银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_10.png" wx:if='{{item.bank_name=="招商银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_11.png" wx:if='{{item.bank_name=="广发银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_13.png" wx:if='{{item.bank_name=="浦发银行"}}'></image>
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bank_14.png" wx:if='{{item.bank_name=="邮政银行"}}'></image>

              </view>
              	<view class="right">
                  <text>{{item.bank_name}}</text>
                  <text style="font-size:14px;">{{item.bank_type_name}}</text>
					      </view>
            </view>
            <view class="bottom">
                <text>{{icon.changeBank(item.card_no)}}</text>
            </view>
            <view class="close" catchtap="deleteBank" data-item="{{item}}">
              <i class="iconfont icon-close11"></i>
            </view>
          </view>
        </view>
    </view>
    <view class="btn" bindtap="toAdd">
		  <view class="add"><text style="margin-right:0.75rem;font-size:24px;">+</text>添加银行卡</view>
	  </view>
    	<van-popup
			 show="{{ show1 }}"
 	position="bottom"
  overlay="{{ true }}"
  custom-style="width:100%;height:50%;overflow-y:scroll;"
  class="type"
		>
				<view class="title">
						付款详情
						<i class="iconfont icon-close11" catchtap="closePay"></i>
					</view>
					<view class="pay-content">
						<view class="item"><text>支付金额</text><text style="color: #ff2c29;">{{language['money']}}{{amount}}</text></view>
						<view class="item"><text>支付流水号</text><text style="color: #666666;">{{pay_sn}}</text></view>
						<view class="item"><text>支付银行</text><text style="color: #666666;">{{bank_name}}</text></view>
						<view class="item">
            <text>验证码</text>
            <input type="number" placeholder="请输入验证码" value="{{code}}" style="outline: none;border: none;text-align: right;flex: 1;text-align: left;margin-left: 20rpx;" bindinput="numInp"/>
              <view class="right {{start1?'disabled':''}}">
                <view class="codeBtn" style="text-align: center;" catchtap="sendCode">{{codetext}}</view>
              </view>
            </view>
						<view style="text-align: left;color:#666;font-size:12px;" class="item" wx:if="{{start1}}">已向手机{{icon.subPhone(payer_phone)}}发送短信</view>
						<view class="pay-btn" bindtap="pay">支付</view>
					</view>
</van-popup>
</view>
