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.
54 lines
2.9 KiB
54 lines
2.9 KiB
<!--pages/setting/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>
|
|
|
|
<van-field id="name" maxlength="16" value="{{form.name}}" label="持卡人姓名:" placeholder="请输入持卡人姓名" bind:change="bindForm"/>
|
|
<van-field id="idno" maxlength="20" label="身份证号码:" placeholder="请输入身份证号码" bind:change="bindForm"/>
|
|
<van-field id="cardNo" maxlength="20" type="number" label="银行卡卡号:" placeholder="请输入银行卡卡号" bind:change="bindForm">
|
|
<text slot="button" class="cuIcon-scan text-blue" style="font-size:48rpx" bindtap="scanCard"/>
|
|
</van-field>
|
|
|
|
<van-cell wx:if="{{form.cardName}}">
|
|
<view slot="title" class="flex">
|
|
<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>
|
|
</van-cell>
|
|
|
|
<view style="height:24rpx"></view>
|
|
<van-field id="phone" maxlength="11" label="手机号:" type="number" placeholder="请输入银行预留手机号码" wx:if="{{form.type == 4}}" bind:change="bindForm"/>
|
|
<van-field id="verificationCode" maxlength="20" type="number" label="验证码:" placeholder="请输入验证码" wx:if="{{form.type == 4}}" bind:change="bindForm">
|
|
<van-button slot="button" size="small" round 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>
|
|
</van-field>
|
|
|
|
<!-- <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" round 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>
|
|
|
|
<notification id="qn-notification"/>
|