修改注册页面
This commit is contained in:
parent
9bd4faaf3a
commit
720cd6e8c3
|
|
@ -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'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -30,10 +30,6 @@
|
|||
<text class="lab">姓名</text>
|
||||
<input type="text" value="{{newname}}" placeholder="请输入姓名" bindinput="inputMethed" data-type="newname" />
|
||||
</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">
|
||||
<text class="lab">手机号码</text>
|
||||
<input type="text" value="{{newphone}}" placeholder="请输入手机号码" bindinput="inputMethed" data-type="newphone" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user