Commit 0d002d183f14f7b3412bc75eaa9f47b0fe0289f6
1 parent
f3f252db
会员资料,保存点击无反应·~~
Showing
1 changed file
with
8 additions
and
5 deletions
pages/user/userinfo/userinfo.js
... | ... | @@ -699,15 +699,18 @@ Page({ |
699 | 699 | |
700 | 700 | return false; |
701 | 701 | } |
702 | + | |
703 | + | |
702 | 704 | var consumption = th.data.consumption;//消费密码 |
703 | 705 | var isstcsp = th.data.isstcsp; |
704 | 706 | if(isstcsp==1){ |
705 | 707 | |
706 | - if (consumption.length < 6|| consumption==""){ | |
707 | - | |
708 | - getApp().my_warnning("消费密码不能为空及小于6位数", 0, th); | |
709 | - return false; | |
710 | - } | |
708 | + if (consumption==null || consumption=="" || consumption==undefined ){ | |
709 | + getApp().my_warnning("消费密码不能为空", 0, th); return false; | |
710 | + } | |
711 | + if (consumption.length < 6){ | |
712 | + getApp().my_warnning("消费密码不能小于6位", 0, th); return false; | |
713 | + } | |
711 | 714 | } |
712 | 715 | var sex = th.data.isGender;//性别 |
713 | 716 | ... | ... |