修改
This commit is contained in:
parent
4fc97c5c2f
commit
10b1233d11
@ -18,7 +18,8 @@
|
||||
<view class="lefttext">
|
||||
手机号
|
||||
</view>
|
||||
<input class="righttext" style='left:23%' type="text" placeholder="请输入" maxlength="11" v-model="phonenumber"/>
|
||||
<input class="righttext" style='left:23%' type="text" placeholder="请输入" maxlength="11"
|
||||
v-model="phonenumber" />
|
||||
</view>
|
||||
<!-- <view class="item">
|
||||
<view class="lefttext">
|
||||
@ -51,7 +52,6 @@
|
||||
},
|
||||
methods: {
|
||||
pwdlogin() {
|
||||
updatePassword(this.phonenumber, this.password, this.verification).then(res => {
|
||||
if (this.password !== this.newpassword) {
|
||||
this.$refs.uToast.show({
|
||||
title: '密码输入不一致,请重新输入',
|
||||
@ -59,14 +59,22 @@
|
||||
duration: '1500'
|
||||
})
|
||||
} else {
|
||||
updatePassword(this.phonenumber, this.password, this.verification).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '密码修改成功',
|
||||
type: 'success',
|
||||
url: '/pages/login/login',
|
||||
duration: '1500'
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: res.msg,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
//点击获取验证码
|
||||
getCode() {
|
||||
|
||||
@ -61,7 +61,6 @@
|
||||
})
|
||||
}, 1500);
|
||||
} else {
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title: res.msg,
|
||||
type: 'error'
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<span>护理站</span>
|
||||
<text class='addition'>{{nurseStationName}}</text>
|
||||
</view>
|
||||
<view class="radio-content" >
|
||||
<view class="radio-content">
|
||||
<view class="radio-right" @tap="changeRadio">
|
||||
<view class="radio" :class="radio == 2 ? 'radio-default':''">
|
||||
<view :class="radio == 2 ? 'radio-active':''"></view>
|
||||
@ -121,16 +121,15 @@
|
||||
title: '请审核并同意用户协议',
|
||||
type: 'error'
|
||||
})
|
||||
} else {
|
||||
nurseAppLoginSysUser(this.appPersonallist).then(res => {
|
||||
console.log(res)
|
||||
if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
|
||||
} else if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
|
||||
this.$refs.uToast.show({
|
||||
title: '密码输入不一致,请重新输入',
|
||||
type: 'error',
|
||||
duration: '1500'
|
||||
})
|
||||
} else if (res.code == 200) {
|
||||
} else {
|
||||
nurseAppLoginSysUser(this.appPersonallist).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '注册成功,前往登录',
|
||||
type: 'success',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user