add.wxml
3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!--packageIndex/pages/bankAccount/add/add.wxml-->
<block>
<view class="tips flex">
账户信息<text>(首次申请提现时需要您输入正确的银行账户信息)</text>
</view>
<view class="form">
<!-- <mp-cells ext-class="my-cells"> -->
<block wx:for="{{form}}" wx:key="index">
<view class=" flex {{item.upload?'id-card-wrap':'item'}}">
<block wx:if="{{item.pickerData&&item.pickerData.length}}">
<picker bindchange="bindPickerChange" range-key="{{item.pickerKey}}" range="{{item.pickerData}}" data-item="{{item}}" mode="selector" >
<mp-cell value="{{item.label}}" ext-class="my-cells">
<view slot="footer" class="flex_sc">
<input value="{{ formData[item.key] }}" clearable label="{{item.label}}" placeholder="{{item.placeholder}}" class="input" is-link disabled="true" input-align="right" placeholder-class="placeStyle" />
<mp-icon class="icon-right" icon="arrow" size="{{13}}" color="#BEC1C7"></mp-icon>
</view>
</mp-cell>
<!-- <van-field value="{{ formData[item.key] }}" clearable label="{{item.label}}" placeholder="{{item.placeholder}}" border="{{false}}" label-class="label" input-class="input" is-link readonly input-align="right" /> -->
</picker>
</block>
<block wx:elif="{{item.upload}}">
<block wx:if="{{isEnabled}}">
<view class="upload-wrap" data-item="{{item}}">
<view class="label">{{item.label}}</view>
<block wx:if="{{ !formData[item.key]}}">
<view class="upload" catch:tap="upload" data-item="{{item}}">
<glsx-image src="/bankAccount/{{item.icon}}.png" class="bank-icon"></glsx-image>
<view class="text">上传照片</view>
</view>
</block>
<view wx:else class="select-url">
<image webp src="{{formData[item.key]}}" class="bank-img"></image>
<glsx-image src="/bankAccount/del.png" class="del-icon" catch:tap="del" data-item="{{item}}"></glsx-image>
</view>
</view>
</block>
</block>
<block wx:else>
<mp-cell value="{{item.label}}" ext-class="my-cells">
<view slot="footer">
<input value="{{ formData[item.key] }}" placeholder="{{item.placeholder}}" placeholder-style="color: #CECECE;" class="input" input-align="right" maxlength="{{item.maxlength}}" type="{{item.type}}" bindinput="bindInput" data-item="{{item}}" placeholder-class="placeStyle" />
</view>
</mp-cell>
</block>
</view>
</block>
<!-- </mp-cells> -->
</view>
<!-- disabled="{{btnDisabled}}" -->
<button class="button text-center" disabled="{{btnDisabled}}" hover-class="btn-hover" loading="{{submitLoading}}" bindtap="submit">提交</button>
</block>
<Dialog show="{{ showModal }}" mask="true" bindbuttontap="bindButton" buttons="{{buttons}}" statusIcon="{{success}}">
<view class="suggest-box">
{{dialogText}}
</view>
</Dialog>
<Dialog show="{{ repeatShowModal }}" mask="true" bindbuttontap="repeatConfirm" buttons="{{repeatButtons}}" title="提示">
<view class="suggest-box">
建议您不要添加同一个人的多张卡片,避免提现时个人税务汇算累积
</view>
</Dialog>
<!-- <dialog show="{{showModal}}" confirmText="{{success?'去兑换':'我知道了'}}" cancelText="我知道了" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}"> -->
<!-- </dialog> -->
<glsx-privacy appletName="积分商城"></glsx-privacy>