This commit is contained in:
曹辉 2022-11-15 15:37:32 +08:00
parent 9c94b1c9ba
commit 5b5fe6aabf

View File

@ -31,8 +31,8 @@
<span>护理站</span> <span>护理站</span>
<text class='addition'>{{nurseStationName}}</text> <text class='addition'>{{nurseStationName}}</text>
</view> </view>
<view class="radio-content" @tap="changeRadio"> <view class="radio-content" >
<view class="radio-right"> <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>
</view> </view>
@ -116,6 +116,12 @@
}, },
// //
getInfo() { getInfo() {
if (this.radio == 1) {
this.$refs.uToast.show({
title: '请审核并同意用户协议',
type: 'error'
})
} else {
nurseAppLoginSysUser(this.appPersonallist).then(res => { nurseAppLoginSysUser(this.appPersonallist).then(res => {
console.log(res) console.log(res)
if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) { if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
@ -131,19 +137,18 @@
url: '/pages/login/login', url: '/pages/login/login',
duration: '1500' duration: '1500'
}) })
} else if (this.radio == 1) {
this.$refs.uToast.show({
title: '请审核并同意用户协议',
type: 'error'
})
} else { } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.msg, title: res.msg,
type: 'error' type: 'error'
}) })
} }
}) })
}
},
tapradio() {
this.radio = 2;
this.maskshow = false;
}, },
// //
gologin() { gologin() {