From fb1cb66f7f7c932d5886103829c65bbabc8f8f82 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Fri, 7 May 2021 09:30:48 +0800 Subject: [PATCH] 推荐人的优化 --- packageA/pages/profile/profile.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packageA/pages/profile/profile.js b/packageA/pages/profile/profile.js index a81c0c6..f9a751b 100644 --- a/packageA/pages/profile/profile.js +++ b/packageA/pages/profile/profile.js @@ -1010,13 +1010,8 @@ Page({ if (tjrname == "" || tjrname == null) { app.my_warnning("请输入推荐人", 0, this); return false; - }; - if(ut.check_mobile(tjrname).code==-1){ - app.my_warnning("请输入推荐人正确的手机号", 0, this); - return false; - } - - if(tjrname==user.mobile){ + }; + if(tjrname==user.mobile || tjrname==user.erpvipno ){ app.my_warnning("推荐人不能是自己", 0, this); return false; } -- libgit2 0.21.4