正在显示
4 个修改的文件
包含
28 行增加
和
16 行删除
| 1 | 1 | { |
| 2 | 2 | "pages": [ |
| 3 | + "pages/main/rewardpoint/cashout/cashout", | |
| 3 | 4 | "pages/main/guide/guide", |
| 4 | 5 | "pages/getPhone/getPhone", |
| 5 | 6 | "pages/main/smartchat/chat", |
| ... | ... | @@ -37,7 +38,7 @@ |
| 37 | 38 | "pages/main/finalpay/deductOrPayedDetail/deductOrPayedDetail", |
| 38 | 39 | |
| 39 | 40 | "pages/main/rewardpoint/home", |
| 40 | - "pages/main/rewardpoint/cashout/cashout", | |
| 41 | + | |
| 41 | 42 | "pages/main/rewardpoint/exchange/exchange", |
| 42 | 43 | "pages/main/rewardpoint/bindcard/bindcard", |
| 43 | 44 | "pages/main/rewardpoint/setpaypwd/setpaypwd", | ... | ... |
| ... | ... | @@ -20,8 +20,7 @@ Page({ |
| 20 | 20 | //输入框聚焦样式 是否自动获取焦点 |
| 21 | 21 | focusType: true, |
| 22 | 22 | valueData: '', //输入的值 |
| 23 | - dataLength: '', | |
| 24 | - | |
| 23 | + dataLength:'' | |
| 25 | 24 | }, |
| 26 | 25 | |
| 27 | 26 | /** |
| ... | ... | @@ -53,7 +52,7 @@ Page({ |
| 53 | 52 | url: '../bindcard/bindcard', |
| 54 | 53 | }) |
| 55 | 54 | }, |
| 56 | - | |
| 55 | + | |
| 57 | 56 | /** |
| 58 | 57 | * 实时监听输入框内容 |
| 59 | 58 | */ |
| ... | ... | @@ -120,14 +119,19 @@ Page({ |
| 120 | 119 | * Lifecycle function--Called when page hide |
| 121 | 120 | */ |
| 122 | 121 | onHide: function () { |
| 123 | - | |
| 122 | + | |
| 124 | 123 | }, |
| 125 | 124 | |
| 126 | 125 | /** |
| 127 | 126 | * Lifecycle function--Called when page unload |
| 128 | 127 | */ |
| 129 | 128 | onUnload: function () { |
| 130 | - | |
| 129 | + console.log('onUnload') | |
| 130 | + this.setData({ | |
| 131 | + inputNum:"", | |
| 132 | + inputNum2Fixed:"", | |
| 133 | + taxNum:"", | |
| 134 | + }) | |
| 131 | 135 | }, |
| 132 | 136 | |
| 133 | 137 | /** |
| ... | ... | @@ -176,26 +180,30 @@ Page({ |
| 176 | 180 | handleSetData(e) { |
| 177 | 181 | // 更新数据 |
| 178 | 182 | this.setData({ |
| 179 | - dataLength: e.detail.value.length, | |
| 180 | - valueData: e.detail.value | |
| 183 | + valueData: e.detail.value, | |
| 184 | + dataLength:e.detail.value.length | |
| 181 | 185 | }) |
| 186 | + console.log("valueData",this.data.valueData) | |
| 182 | 187 | // 当输入框的值等于6时(发起支付等...) |
| 183 | 188 | if (e.detail.value.length === 6) { |
| 184 | 189 | // 通知用户输入数字达到6位数可以发送接口校验密码是否正确 |
| 185 | - this.triggerEvent('initData', e.detail.value) | |
| 186 | - this.setData({ | |
| 187 | - showModal:false | |
| 188 | - }) | |
| 190 | + // this.triggerEvent('initData', e.detail.value) | |
| 189 | 191 | wx.navigateTo({ |
| 190 | 192 | url: '../pointdetail/pointdetail', |
| 191 | 193 | }) |
| 194 | + this.setData({ | |
| 195 | + showModal:false, | |
| 196 | + valueData:'', | |
| 197 | + dataLength:0 | |
| 198 | + }) | |
| 192 | 199 | } |
| 193 | 200 | }, |
| 194 | 201 | |
| 195 | 202 | closeModal:function(){ |
| 196 | 203 | this.setData({ |
| 197 | - showModal:false | |
| 204 | + showModal:false, | |
| 205 | + valueData:'' | |
| 198 | 206 | }) |
| 199 | - } | |
| 207 | + }, | |
| 200 | 208 | |
| 201 | 209 | }) |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -16,7 +16,7 @@ |
| 16 | 16 | <text wx:if="{{hasBind}}" style="text-align: right;margin-right:64rpx;font-size:28rpx;color:#999">2小时内到账</text> |
| 17 | 17 | <view style='background:#eee;height:1rpx;margin-top:14rpx'></view> |
| 18 | 18 | <view style="font-size:28rpx;color:#999;line-height:96rpx">提现金额</view> |
| 19 | - <view style="height:112rpx;display:flex;align-items: center;"> | |
| 19 | + <view style="display:flex;align-items: center;"> | |
| 20 | 20 | <text style="font-size:48rpx;color:#333;margin-right:6rpx">¥</text> |
| 21 | 21 | <input placeholder-class="placeholder_input_wrap" class="input_wrap" type="digit" maxlength="14" placeholder="当前余额{{cashNum}}元" value="{{inputNum}}" bindinput="getInput" /> |
| 22 | 22 | <image wx:if="{{inputNum&&inputNum>0}}" src="/images/clear.png" style="width:32rpx;height:32rpx;padding:36rpx" bindtap="clear"></image> | ... | ... |
| ... | ... | @@ -15,13 +15,16 @@ page{ |
| 15 | 15 | |
| 16 | 16 | .placeholder_input_wrap{ |
| 17 | 17 | color:#ccc; |
| 18 | - font-size:30rpx; | |
| 18 | + font-size:32rpx; | |
| 19 | + height: 112rpx; | |
| 20 | + text-align: center; | |
| 19 | 21 | } |
| 20 | 22 | |
| 21 | 23 | .input_wrap{ |
| 22 | 24 | width:356rpx; |
| 23 | 25 | color:#333; |
| 24 | 26 | font-size:56rpx; |
| 27 | + height: 112rpx; | |
| 25 | 28 | } |
| 26 | 29 | |
| 27 | 30 | .btn_blue_radius { | ... | ... |
请
注册
或
登录
后发表评论