提交 e7607933c96b68481b2b0549511c2eaf50bb7574

作者 wangyu
1 个父辈 da890ccc

提现相关 光标位置问题 待解决

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