From 571c240f957af23172fd9565bca6b91adf9a5e57 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Fri, 24 Dec 2021 16:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=82=AE=E7=AE=B1=E6=A3=80?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/key/list.js | 8 ++++---- src/pages/plan/list/list.js | 11 ++++------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index 2b1e0688..d2e076e3 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -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; - } + // } diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 301208be..96593277 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -72,10 +72,7 @@ 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; - } + // }