Commit 35d801ce5aef26794feec92b3cf41928dbc82248

Authored by yvan.ni
1 parent 2c4431c2

提现金额必须大于0

pages/user/cardinfo/cardinfo.js
@@ -727,14 +727,19 @@ Page({ @@ -727,14 +727,19 @@ Page({
727 727
728 //--转到用户余额-- 728 //--转到用户余额--
729 to_user_money:function(){ 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 close_yu_e:function(){ 736 close_yu_e:function(){
733 this.setData({yu_e_show:0}) 737 this.setData({yu_e_show:0})
734 }, 738 },
735 go_yu_e:function(){ 739 go_yu_e:function(){
736 var th=this,free=th.data.free; 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 getApp().my_warnning("您目前没有可提现的金额",0,th); return false; 743 getApp().my_warnning("您目前没有可提现的金额",0,th); return false;
739 } 744 }
740 wx.showModal({ 745 wx.showModal({