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 @@ 姓名 - - 账号 - - 手机号码