取消邮箱检验

This commit is contained in:
red-deng-deng 2021-12-24 16:51:57 +08:00
parent 20a5a9d607
commit 571c240f95
2 changed files with 8 additions and 11 deletions

View File

@ -173,12 +173,12 @@ export default class acclist extends React.Component{
Notify.error("手机号格式不正确")
return;
}
if(!emailReg.test(data.email)){
// if(!emailReg.test(data.email)){
Notify.error("邮箱格式不正确")
return;
// Notify.error("邮箱格式不正确")
// return;
}
// }

View File

@ -73,9 +73,6 @@ export default class acclist extends React.Component{
let phoneReg = new RegExp("^[1][3,4,5,6,7,8,9][0-9]{9}$");
let emailReg = new RegExp( "\w+@\w+\.\w+(\.\w+){0,1}");
let plan_id = this.state.plan_id;
let data ={
phone: this.state.phone_radio > -1 ? this.state.phone_list[this.state.phone_radio] : this.state.phone ,
@ -88,12 +85,12 @@ export default class acclist extends React.Component{
Notify.error("手机号格式不正确")
return;
}
if(!emailReg.test(data.email)){
// if(!emailReg.test(data.email)){
Notify.error("邮箱格式不正确")
return;
// Notify.error("邮箱格式不正确")
// return;
}
// }