Commit 05cdd109 by wangyalan-git

提现金额限制

parent 4cf20802
...@@ -145,9 +145,9 @@ Page({ ...@@ -145,9 +145,9 @@ Page({
console.log('点击事件') console.log('点击事件')
util.buttonClicked(this); util.buttonClicked(this);
let that = this; let that = this;
var stockAmount = /^\d{1,}$/ var stockAmount = /^[0-9]+(.[0-9]{1,})?$/
if (!stockAmount.test(that.data.amount)) { if (!stockAmount.test(that.data.amount)) {
wx.showToast({ title: '请填写金额', icon: 'none' }) wx.showToast({ title: '请正确填写金额', icon: 'none' })
return return
} }
if ((parseInt(that.data.amount) <= 0) || (parseInt(that.data.amount) > parseInt(that.data.defaultAmount))) { if ((parseInt(that.data.amount) <= 0) || (parseInt(that.data.amount) > parseInt(that.data.defaultAmount))) {
......
...@@ -205,9 +205,9 @@ Page({ ...@@ -205,9 +205,9 @@ Page({
// wx.showToast({ title: '请填写银行卡号', icon: 'none' }) // wx.showToast({ title: '请填写银行卡号', icon: 'none' })
// return // return
// } // }
var stockAmount = /^\d{1,}$/ var stockAmount = /^[0-9]+(.[0-9]{1,})?$/
if ((!stockAmount.test(that.data.amount))) { if ((!stockAmount.test(that.data.amount))) {
wx.showToast({ title: '请填写提现金额且要大于100元', icon: 'none' }) wx.showToast({ title: '请正确填写提现金额', icon: 'none' })
return return
} }
if (parseInt(that.data.amount) < parseInt(100)) { if (parseInt(that.data.amount) < parseInt(100)) {
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<view class="notice-container"> <view class="notice-container">
<text class='txt-notice-title'>【温馨提醒】</text> <text class='txt-notice-title'>【温馨提醒】</text>
<text class='txt-notice'></text> <text class='txt-notice'></text>
<text class='txt-notice'>1、单次提现申请需满¥100\n2、申请提现需要扣除6%的手续费 \n 3.银行开户行: 所办理银行卡的卡户支行 \n4.请仔细核对数据是否正确,不正确的数据会导致审核将不通过或者汇款失败。</text> <text class='txt-notice'>1、单次提现申请需满¥100\n2、申请提现需要扣除6%的手续费 \n 3、银行开户行: 所办理银行卡的卡户支行 \n4、请仔细核对数据是否正确,不正确的数据会导致审核将不通过或者汇款失败。</text>
</view> </view>
<view class="coupon-notice-window" wx:if="{{how}}"> <view class="coupon-notice-window" wx:if="{{how}}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment