This commit is contained in:
曹辉 2022-11-15 16:11:05 +08:00
parent 4fc97c5c2f
commit 10b1233d11
3 changed files with 33 additions and 27 deletions

View File

@ -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,7 +52,6 @@
}, },
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: '密码输入不一致,请重新输入',
@ -59,14 +59,22 @@
duration: '1500' duration: '1500'
}) })
} else { } else {
updatePassword(this.phonenumber, this.password, this.verification).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '密码修改成功', title: '密码修改成功',
type: 'success', type: 'success',
url: '/pages/login/login', url: '/pages/login/login',
duration: '1500' duration: '1500'
}) })
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error'
})
} }
}) })
}
}, },
// //
getCode() { getCode() {

View File

@ -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'

View File

@ -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 { } else if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
nurseAppLoginSysUser(this.appPersonallist).then(res => {
console.log(res)
if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '密码输入不一致,请重新输入', title: '密码输入不一致,请重新输入',
type: 'error', type: 'error',
duration: '1500' duration: '1500'
}) })
} else if (res.code == 200) { } else {
nurseAppLoginSysUser(this.appPersonallist).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '注册成功,前往登录', title: '注册成功,前往登录',
type: 'success', type: 'success',