Commit fb1cb66f7f7c932d5886103829c65bbabc8f8f82
1 parent
74db414b
推荐人的优化
Showing
1 changed file
with
2 additions
and
7 deletions
packageA/pages/profile/profile.js
@@ -1010,13 +1010,8 @@ Page({ | @@ -1010,13 +1010,8 @@ Page({ | ||
1010 | if (tjrname == "" || tjrname == null) { | 1010 | if (tjrname == "" || tjrname == null) { |
1011 | app.my_warnning("请输入推荐人", 0, this); | 1011 | app.my_warnning("请输入推荐人", 0, this); |
1012 | return false; | 1012 | return false; |
1013 | - }; | ||
1014 | - if(ut.check_mobile(tjrname).code==-1){ | ||
1015 | - app.my_warnning("请输入推荐人正确的手机号", 0, this); | ||
1016 | - return false; | ||
1017 | - } | ||
1018 | - | ||
1019 | - if(tjrname==user.mobile){ | 1013 | + }; |
1014 | + if(tjrname==user.mobile || tjrname==user.erpvipno ){ | ||
1020 | app.my_warnning("推荐人不能是自己", 0, this); | 1015 | app.my_warnning("推荐人不能是自己", 0, this); |
1021 | return false; | 1016 | return false; |
1022 | } | 1017 | } |