纸通宝SAAS仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

44 lines
2.1 KiB

<!--pages/client/bank-add/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">添加银行卡</view>
</cu-custom>
<view class="flex flex-center" style="padding:32rpx">
<text class="text-xxl">安全绑卡,快捷支付</text>
</view>
<view class="cu-form-group margin-top">
<view class="title">持卡人姓名:</view>
<input id="name" maxlength="16" style="width:65%" value="{{form.name}}" placeholder="请输入持卡人姓名" bindinput="bindForm"></input>
</view>
<view class="cu-form-group">
<view class="title">银行卡卡号:</view>
<input id="cardNo" maxlength="24" style="width:65%; flex:1" type="number" value="{{form.cardNo}}" bindinput="bindForm"
placeholder="请输入银行卡卡号" bindinput="bindForm"></input>
<text class="cuIcon-scan text-blue" style="font-size:48rpx" bindtap="scanCard"/>
</view>
<view class="cu-form-group" wx:if="{{form.cardName}}">
<image class="cu-avatar sm round" src="{{'https://medou.oss-cn-shenzhen.aliyuncs.com/bank/' + form.cardName + '.png'}}"></image>
<view style="margin-left:24rpx;flex:1">{{bankName}}</view>
<view class="text-gray" style="margin-left:24rpx">{{cardType}}</view>
</view>
<view class="cu-form-group margin-top" wx:if="{{form.type == 4}}">
<view class="title">手机号:</view>
<input id="phone" maxlength="11" type="number" placeholder="请输入银行预留手机号码" bindinput="bindForm"></input>
</view>
<view class="cu-form-group" wx:if="{{form.type == 4}}">
<view class="title">验证码:</view>
<input id="verificationCode" maxlength="6" type="number" placeholder="请输入验证码" bindinput="bindForm"></input>
<van-button size="small" plain type="info" custom-style="width:220rpx" disabled="{{codeEnable}}"
bind:click="fetchCaptcha">
<van-count-down class="count-down" time="{{ 60000 }}" use-slot auto-start="{{false}}" bind:change="onCountChange"
bind:finish="onFinished">
<text class="text-sm">{{second}}</text>
</van-count-down>
</van-button>
</view>
<view style="margin-top:20rpx;padding:80rpx 32rpx">
<van-button block type="info" bind:click="submitForm">{{form.type == 4 ? '提交' : '下一步'}}</van-button>
</view>