cashout.wxml
4.2 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
71
72
73
74
75
76
77
78
79
80
<view style="background:#f5f5f5;width:100%;height:1600rpx">
<view style="height:26rpx"></view>
<view class='card_rectangle_bg_row' style='padding:26rpx;flex-direction:column'>
<view style="padding-top:10rpx">
<text style="font-size:28rpx;color:#333">到账银行卡:</text>
<view wx:if="{{hasBind}}" style="display:flex;float:right">
<image src="/images/reward_point.png" style="width:64rpx;height:64rpx;margin:0 14rpx"></image>
<view style="font-size:30rpx;color:#333;line-height:64rpx">招商银行(9214)</view>
<image hidden="{{true}}" src="/images/arrow_right.png" style="width:64rpx;height:64rpx"></image>
</view>
<view wx:else style="display:flex;float:right" bindtap="bindCard">
<view style="font-size:30rpx;color: #FA4B4B;line-height:64rpx;margin-bottom:30rpx">未绑定银行卡</view>
<image src="/images/arrow_right.png" style="width:64rpx;height:64rpx"></image>
</view>
</view>
<text wx:if="{{hasBind}}" style="text-align: right;margin-right:64rpx;font-size:28rpx;color:#999">2小时内到账</text>
<view style='background:#eee;height:1rpx;margin-top:14rpx'></view>
<view style="font-size:28rpx;color:#999;line-height:96rpx">提现金额</view>
<view style="height:112rpx;display:flex;align-items: center;">
<text style="font-size:48rpx;color:#333;margin-right:6rpx">¥</text>
<input placeholder-class="placeholder_input_wrap" class="input_wrap" type="digit" maxlength="14" placeholder="当前余额{{cashNum}}元" value="{{inputNum}}" bindinput="getInput" />
<image wx:if="{{inputNum&&inputNum>0}}" src="/images/clear.png" style="width:32rpx;height:32rpx;padding:36rpx" bindtap="clear"></image>
<text style="height:100%;font-size:30rpx;color: #357AEB;line-height:112rpx;margin: auto;" bindtap="cashAll">全部提现</text>
</view>
<view wx:if="{{inputNum&&inputNum>cashNum}}">
<view style='background:#eee;height:2rpx;margin:16rpx 0 26rpx 0'></view>
<view style="font-size:30rpx;color: #FA4B4B;line-height: 42rpx;">超过可提现金额</view>
</view>
</view>
<view class="view_bottom">
<button wx:if="{{hasBind}}" class="btn_blue_radius" style="margin:20rpx" bindtap='cashOut'> 提现</button>
<button wx:else class="btn_gray_radius" style="margin:20rpx"> 提现</button>
</view>
<!-- 密码支付弹窗 -->
<view wx:if="{{showModal}}" class="mask"></view>
<view wx:if="{{showModal}}" class="modal_lg" style="padding:30rpx">
<view style="width:100%;display:flex">
<text style="font-size:36rpx;color:#333;width: 100%;text-align: center;">请输入支付密码</text>
<text style="font-size:36rpx;color:#333;float:right;width" bindtap='closeModal'>x</text>
</view>
<view style="font-size:28rpx;color:#999;margin-top:40rpx">提现</view>
<view style="font-size:54rpx;color:#333;margin-top:10rpx">300.00</view>
<view style="margin-top:30rpx;width: 100%;">
<text style="font-size:28rpx;color:#333;float:left">服务费</text>
<text style="font-size:28rpx;color:#333;float:right">¥75.00</text>
</view>
<view style="margin-top:12rpx;width: 100%;">
<text style="font-size:28rpx;color:#333;float:left">费率</text>
<text style="font-size:28rpx;color: #FA4B4B;float:right">25%</text>
</view>
<view style="margin:26rpx 0;display:flex">
<!-- <view wx:for="{{pwdList}}" wx:key="" wx:for-index="idx">
<input wx:if="{{idx==0}}" class="pwd_wrap_bg" length="1" type="number"></input>
<input wx:else class="pwd_wrap_bg b-l-n" length="1" type="number"></input>
</view>
</view> -->
<!-- 模拟输入框 -->
<view class='pay-box {{focusType ? "focus-border" : ""}}' bindtap="handleFocus">
<block wx:for="{{pwdList}}" wx:key="" wx:for-index="idx">
<view class=' password-box' style='{{idx == 0 ? "":"border-left:none"}}'>
<view wx:if="{{(dataLength === item - 1)&& focusType}}" class="cursor"></view>
<view wx:if="{{dataLength >= item}}" class="input-black-dot"></view>
</view>
</block>
</view>
<!-- 隐藏input框 -->
<input focus="{{isFocus}}" maxlength="6" type="number" style="position:fixed;color:#fff;font-size:8rpx;height: 96rpx;padding-left: 2rpx;" bindinput="handleSetData" bindfocus="handleUseFocus" bindblur="handleUseFocus" />
</view>
</view>
</view>