正在显示
6 个修改的文件
包含
62 行增加
和
20 行删除
| ... | ... | @@ -143,9 +143,9 @@ App({ |
| 143 | 143 | // baseUrl: "http://47.96.75.229:20000/", |
| 144 | 144 | // baseUrl: "http://192.144.144.220:20000/", |
| 145 | 145 | // baseUrl: "http://154.8.229.55:20000/", |
| 146 | - // baseUrl: "http://47.110.250.177:20000/", | |
| 146 | + baseUrl: "http://47.110.250.177:20000/", | |
| 147 | 147 | // baseUrl: "http://47.110.158.110:20000/", |
| 148 | - baseUrl: "https://api.workai.com.cn/", | |
| 148 | + // baseUrl: "https://api.workai.com.cn/", | |
| 149 | 149 | OSSUrl: "", //"https://oss.workai.com.cn/", |
| 150 | 150 | OSSImgHeader:"https://hropublic.oss-cn-beijing.aliyuncs.com/weixin/", |
| 151 | 151 | userInfo: null, | ... | ... |
| ... | ... | @@ -2,7 +2,22 @@ |
| 2 | 2 | <view> |
| 3 | 3 | |
| 4 | 4 | <view> |
| 5 | - | |
| 5 | + <view style="margin:30rpx;color:#333;font-size:44rpx;display:flex;font-family: PingFangSC-Medium, PingFang SC;">添加银行卡</view> | |
| 6 | + <view class="light_yellow_bg"> | |
| 7 | + <image style="width:28rpx;height:28rpx;margin-left:20rpx" src="/images/warn_yellow.png"></image> | |
| 8 | + <text style="margin-left:12rpx;color:#faad14;font-size:28rpx;">请绑定持卡人本人的银行卡</text> | |
| 9 | + </view> | |
| 10 | + <view style="margin:30rpx 30rpx 0 30rpx;height:100rpx;"> | |
| 11 | + <text style="color:#999;font-size:30rpx;width:100rpx;line-height:100rpx">持卡人</text> | |
| 12 | + <input class="input_wrap" style="float:right;text-align: right;" placeholder-class="placeholder_input_wrap" placeholder="持卡人姓名" ></input> | |
| 13 | + </view> | |
| 14 | + <view style='background:#eee;height:1rpx;'></view> | |
| 15 | + <view style="margin-left:30rpx;height:100rpx;display:flex"> | |
| 16 | + <text style="color:#999;font-size:30rpx;width:110rpx;line-height:100rpx">卡号</text> | |
| 17 | + <input class="input_wrap" style="float:right;text-align: right;" placeholder-class="placeholder_input_wrap" placeholder="持卡人本人银行卡号" ></input> | |
| 18 | + <image src="/images/camera.png" style="width:32rpx;height: 32rpx;padding: 30rpx;float:right;margin:auto" bindtap="takephoto"></image> | |
| 19 | + </view> | |
| 20 | + <view style='background:#eee;height:1rpx;'></view> | |
| 6 | 21 | </view> |
| 7 | 22 | |
| 8 | 23 | <view class="view_bottom"> | ... | ... |
| ... | ... | @@ -8,15 +8,27 @@ |
| 8 | 8 | flex-direction: row; |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | +.light_yellow_bg{ | |
| 12 | + width: 350px; | |
| 13 | +height: 40px; | |
| 14 | +background: #FEF6E9; | |
| 15 | +border-radius: 6px; | |
| 16 | +margin:auto; | |
| 17 | +display: flex; | |
| 18 | +align-items: center; | |
| 19 | +} | |
| 20 | + | |
| 11 | 21 | .placeholder_input_wrap{ |
| 12 | - color:#ccc; | |
| 13 | - font-size:30rpx; | |
| 22 | + color:#999; | |
| 23 | + font-size:32rpx; | |
| 24 | + height: 100rpx; | |
| 14 | 25 | } |
| 15 | 26 | |
| 16 | 27 | .input_wrap{ |
| 17 | - width:356rpx; | |
| 28 | + width:520rpx; | |
| 18 | 29 | color:#333; |
| 19 | - font-size:56rpx; | |
| 30 | + font-size:34rpx; | |
| 31 | + height: 100rpx; | |
| 20 | 32 | } |
| 21 | 33 | |
| 22 | 34 | .btn_blue_radius { | ... | ... |
| ... | ... | @@ -5,10 +5,14 @@ Page({ |
| 5 | 5 | * Page initial data |
| 6 | 6 | */ |
| 7 | 7 | data: { |
| 8 | + taxpercent:25,//暂时固定为25% | |
| 8 | 9 | showModal:false, |
| 9 | - hasBind:true, | |
| 10 | + hasBind:false, | |
| 11 | + rightNum:false, | |
| 10 | 12 | cashNum:6989.88, |
| 11 | 13 | inputNum:"", |
| 14 | + inputNum2Fixed:"", | |
| 15 | + taxNum:"", | |
| 12 | 16 | pwdList: [1, 2, 3, 4, 5, 6], |
| 13 | 17 | //输入框聚焦状态 |
| 14 | 18 | isFocus: false, |
| ... | ... | @@ -59,8 +63,10 @@ Page({ |
| 59 | 63 | } else { |
| 60 | 64 | money = e.detail.value.substring(0, e.detail.value.length - 1); |
| 61 | 65 | } |
| 66 | + var flag = (money&&money>0&&money<=this.data.cashNum)?true:false | |
| 62 | 67 | this.setData({ |
| 63 | - inputNum: money | |
| 68 | + inputNum: money, | |
| 69 | + rightNum:flag | |
| 64 | 70 | }) |
| 65 | 71 | }, |
| 66 | 72 | |
| ... | ... | @@ -69,7 +75,8 @@ Page({ |
| 69 | 75 | */ |
| 70 | 76 | clear:function(){ |
| 71 | 77 | this.setData({ |
| 72 | - inputNum: "" | |
| 78 | + inputNum: "", | |
| 79 | + rightNum:false | |
| 73 | 80 | }) |
| 74 | 81 | }, |
| 75 | 82 | |
| ... | ... | @@ -78,7 +85,8 @@ Page({ |
| 78 | 85 | */ |
| 79 | 86 | cashAll:function(){ |
| 80 | 87 | this.setData({ |
| 81 | - inputNum: this.data.cashNum | |
| 88 | + inputNum: this.data.cashNum, | |
| 89 | + rightNum:true | |
| 82 | 90 | }) |
| 83 | 91 | }, |
| 84 | 92 | |
| ... | ... | @@ -87,9 +95,10 @@ Page({ |
| 87 | 95 | */ |
| 88 | 96 | cashOut:function(){ |
| 89 | 97 | var inputnum = this.data.inputNum |
| 90 | - var maxnum = this.data.cashNum | |
| 91 | - if(inputnum&&inputnum>0&&inputnum<=maxnum){ | |
| 98 | + if(this.data.rightNum){ | |
| 92 | 99 | this.setData({ |
| 100 | + inputNum2Fixed:parseFloat(inputnum).toFixed(2), | |
| 101 | + taxNum:parseFloat(inputnum*this.data.taxpercent/100).toFixed(2), | |
| 93 | 102 | showModal: !this.data.showModal?true:this.data.showModal, |
| 94 | 103 | }) |
| 95 | 104 | }else{ | ... | ... |
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | <text style="font-size:28rpx;color:#333">到账银行卡:</text> |
| 7 | 7 | <view wx:if="{{hasBind}}" style="display:flex;float:right"> |
| 8 | 8 | <image src="/images/reward_point.png" style="width:64rpx;height:64rpx;margin:0 14rpx"></image> |
| 9 | - <view style="font-size:30rpx;color:#333;line-height:64rpx">招商银行(9214)</view> | |
| 9 | + <view style="font-size:30rpx;color:#333;line-height:64rpx;margin:0 14rpx">招商银行(9214)</view> | |
| 10 | 10 | <image hidden="{{true}}" src="/images/arrow_right.png" style="width:64rpx;height:64rpx"></image> |
| 11 | 11 | </view> |
| 12 | 12 | <view wx:else style="display:flex;float:right" bindtap="bindCard"> |
| ... | ... | @@ -32,7 +32,7 @@ |
| 32 | 32 | |
| 33 | 33 | </view> |
| 34 | 34 | <view class="view_bottom"> |
| 35 | - <button wx:if="{{hasBind}}" class="btn_blue_radius" style="margin:20rpx" bindtap='cashOut'> 提现</button> | |
| 35 | + <button wx:if="{{hasBind&&rightNum}}" class="btn_blue_radius" style="margin:20rpx" bindtap='cashOut'> 提现</button> | |
| 36 | 36 | <button wx:else class="btn_gray_radius" style="margin:20rpx"> 提现</button> |
| 37 | 37 | </view> |
| 38 | 38 | |
| ... | ... | @@ -44,14 +44,14 @@ |
| 44 | 44 | <text style="font-size:36rpx;color:#333;float:right;width" bindtap='closeModal'>x</text> |
| 45 | 45 | </view> |
| 46 | 46 | <view style="font-size:28rpx;color:#999;margin-top:40rpx">提现</view> |
| 47 | - <view style="font-size:54rpx;color:#333;margin-top:10rpx">300.00</view> | |
| 47 | + <view style="font-size:54rpx;color:#333;margin-top:10rpx">{{inputNum2Fixed}}</view> | |
| 48 | 48 | <view style="margin-top:30rpx;width: 100%;"> |
| 49 | 49 | <text style="font-size:28rpx;color:#333;float:left">服务费</text> |
| 50 | - <text style="font-size:28rpx;color:#333;float:right">¥75.00</text> | |
| 50 | + <text style="font-size:28rpx;color:#333;float:right">¥{{taxNum}}</text> | |
| 51 | 51 | </view> |
| 52 | 52 | <view style="margin-top:12rpx;width: 100%;"> |
| 53 | 53 | <text style="font-size:28rpx;color:#333;float:left">费率</text> |
| 54 | - <text style="font-size:28rpx;color: #FA4B4B;float:right">25%</text> | |
| 54 | + <text style="font-size:28rpx;color: #FA4B4B;float:right">{{taxpercent}}%</text> | |
| 55 | 55 | </view> |
| 56 | 56 | |
| 57 | 57 | <view style="margin:26rpx 0;display:flex"> | ... | ... |
请
注册
或
登录
后发表评论