Commit 35d801ce5aef26794feec92b3cf41928dbc82248
1 parent
2c4431c2
提现金额必须大于0
Showing
1 changed file
with
7 additions
and
2 deletions
pages/user/cardinfo/cardinfo.js
... | ... | @@ -727,14 +727,19 @@ Page({ |
727 | 727 | |
728 | 728 | //--转到用户余额-- |
729 | 729 | to_user_money:function(){ |
730 | - this.setData({yu_e_show:1}) | |
730 | + //提现小于0的值也不提现 | |
731 | + if(!this.data.free.VIPRebate || parseFloat(this.data.free.VIPRebate)<=0){ | |
732 | + getApp().my_warnning("您目前没有可提现的金额",0,th); return false; | |
733 | + } | |
734 | + this.setData({yu_e_show:1}) | |
731 | 735 | }, |
732 | 736 | close_yu_e:function(){ |
733 | 737 | this.setData({yu_e_show:0}) |
734 | 738 | }, |
735 | 739 | go_yu_e:function(){ |
736 | 740 | var th=this,free=th.data.free; |
737 | - if(!th.data.free.VIPRebate){ | |
741 | + //提现小于0的值也不提现 | |
742 | + if(!th.data.free.VIPRebate || parseFloat(th.data.free.VIPRebate)<=0){ | |
738 | 743 | getApp().my_warnning("您目前没有可提现的金额",0,th); return false; |
739 | 744 | } |
740 | 745 | wx.showModal({ | ... | ... |