From 720cd6e8c303da38eb4c4d9f4f077c08e2eb017c Mon Sep 17 00:00:00 2001 From: du <1176658673@qq.com> Date: Thu, 6 Jun 2024 10:41:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/index.js | 14 +++++--------- pages/login/index.wxml | 4 ---- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/pages/login/index.js b/pages/login/index.js index 1291392..9d02d15 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -14,7 +14,6 @@ Page({ password: '', showLogin: true, newname:'', - newaccountNumber:'', newphone:'', newpassword:'', address:'', @@ -87,13 +86,6 @@ Page({ }) return } - if (!this.data.newaccountNumber) { - wx.showToast({ - title: '请输入账号', - icon: 'none' - }) - return - } if (!this.data.newphone) { wx.showToast({ title: '请输入手机号', @@ -121,7 +113,6 @@ Page({ mobiletel: this.data.newphone, syspassword: this.data.newpassword, sysuserid: utils.uuid(), - sysusername: this.data.newaccountNumber, } app.axios("POST", "app", "/login/register", paramss).then(res => { if (res.code == 1) { @@ -131,6 +122,11 @@ Page({ title: '注册成功', icon: 'none' }) + }else{ + wx.showToast({ + title: res.message, + icon: 'none' + }) } }) }, diff --git a/pages/login/index.wxml b/pages/login/index.wxml index 258b681..35c906f 100644 --- a/pages/login/index.wxml +++ b/pages/login/index.wxml @@ -30,10 +30,6 @@ 姓名 - - 账号 - - 手机号码