修改注册页面

This commit is contained in:
du 2024-06-06 10:41:11 +08:00
parent 9bd4faaf3a
commit 720cd6e8c3
2 changed files with 5 additions and 13 deletions

View File

@ -14,7 +14,6 @@ Page({
password: '', password: '',
showLogin: true, showLogin: true,
newname:'', newname:'',
newaccountNumber:'',
newphone:'', newphone:'',
newpassword:'', newpassword:'',
address:'', address:'',
@ -87,13 +86,6 @@ Page({
}) })
return return
} }
if (!this.data.newaccountNumber) {
wx.showToast({
title: '请输入账号',
icon: 'none'
})
return
}
if (!this.data.newphone) { if (!this.data.newphone) {
wx.showToast({ wx.showToast({
title: '请输入手机号', title: '请输入手机号',
@ -121,7 +113,6 @@ Page({
mobiletel: this.data.newphone, mobiletel: this.data.newphone,
syspassword: this.data.newpassword, syspassword: this.data.newpassword,
sysuserid: utils.uuid(), sysuserid: utils.uuid(),
sysusername: this.data.newaccountNumber,
} }
app.axios("POST", "app", "/login/register", paramss).then(res => { app.axios("POST", "app", "/login/register", paramss).then(res => {
if (res.code == 1) { if (res.code == 1) {
@ -131,6 +122,11 @@ Page({
title: '注册成功', title: '注册成功',
icon: 'none' icon: 'none'
}) })
}else{
wx.showToast({
title: res.message,
icon: 'none'
})
} }
}) })
}, },

View File

@ -30,10 +30,6 @@
<text class="lab">姓名</text> <text class="lab">姓名</text>
<input type="text" value="{{newname}}" placeholder="请输入姓名" bindinput="inputMethed" data-type="newname" /> <input type="text" value="{{newname}}" placeholder="请输入姓名" bindinput="inputMethed" data-type="newname" />
</view> </view>
<view class="h-div v-center in-bg">
<text class="lab">账号</text>
<input type="text" value="{{newaccountNumber}}" placeholder="请输入账号" bindinput="inputMethed" data-type="newaccountNumber" />
</view>
<view class="h-div v-center in-bg"> <view class="h-div v-center in-bg">
<text class="lab">手机号码</text> <text class="lab">手机号码</text>
<input type="text" value="{{newphone}}" placeholder="请输入手机号码" bindinput="inputMethed" data-type="newphone" /> <input type="text" value="{{newphone}}" placeholder="请输入手机号码" bindinput="inputMethed" data-type="newphone" />