diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 38023f56..603a794d 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -676,19 +676,18 @@ 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( "^[A-Za-z0-9\u4e00-\u9fa5\.]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$"); + // let emailReg = new RegExp( "\w+@\w+\.\w+(\.\w+){0,1}"); - if (!phoneReg.test(data.phone)) { Notify.error("手机号格式不正确") return; } - if(!emailReg.test(data.email)){ - Notify.error("邮箱格式不正确") - return; - } + // if(!emailReg.test(data.email)){ + // Notify.error("邮箱格式不正确") + // return; + // } postKeyEmail(key_id,data).then((res)=>{ diff --git a/src/pages/plan/add/add.js b/src/pages/plan/add/add.js index a222859d..6998339e 100644 --- a/src/pages/plan/add/add.js +++ b/src/pages/plan/add/add.js @@ -218,22 +218,20 @@ export default class add extends React.Component{ } let phoneReg = new RegExp("^[1][3,4,5,6,7,8,9][0-9]{9}$"); - let emailReg = new RegExp( "^[A-Za-z0-9\u4e00-\u9fa5\.]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$"); - - - + // let emailReg = new RegExp( "\w+@\w+\.\w+(\.\w+){0,1}"); + if (!phoneReg.test(data.phone)) { Notify.error("手机号格式不正确") return; } - if(!emailReg.test(data.email)){ + // if(!emailReg.test(data.email)){ - Notify.error("邮箱格式不正确") - return; + // Notify.error("邮箱格式不正确") + // return; - } + // } planSend(plan_id,data).then((res)=>{ diff --git a/src/pages/plan/add/edit.js b/src/pages/plan/add/edit.js index eacddab9..d161bd06 100644 --- a/src/pages/plan/add/edit.js +++ b/src/pages/plan/add/edit.js @@ -275,7 +275,7 @@ export default class add extends React.Component{ } let phoneReg = new RegExp("^[1][3,4,5,6,7,8,9][0-9]{9}$"); - let emailReg = new RegExp( "^[A-Za-z0-9\u4e00-\u9fa5\.]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$"); + // let emailReg = new RegExp( "\w+@\w+\.\w+(\.\w+){0,1}"); if (!phoneReg.test(data.phone)) { @@ -283,12 +283,12 @@ export default class add extends React.Component{ Notify.error("手机号格式不正确") return; } - if(!emailReg.test(data.email)){ + // if(!emailReg.test(data.email)){ - Notify.error("邮箱格式不正确") - return; + // Notify.error("邮箱格式不正确") + // return; - } + // } diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 1441fd8b..301208be 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -71,7 +71,7 @@ export default class acclist extends React.Component{ send(e) { let phoneReg = new RegExp("^[1][3,4,5,6,7,8,9][0-9]{9}$"); - let emailReg = new RegExp( "^[A-Za-z0-9\u4e00-\u9fa5\.]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$"); + let emailReg = new RegExp( "\w+@\w+\.\w+(\.\w+){0,1}");