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