This commit is contained in:
曹辉 2023-05-10 10:13:49 +08:00
parent 54fef52c32
commit 34bbe788b4
2 changed files with 53 additions and 33 deletions

View File

@ -113,6 +113,9 @@
</template>
<script>
import {
AppIdentification
} from '@/api/AppIdentification/index.js'
import {
getRegionAndStreetInfo,
getNurseType,
@ -201,6 +204,23 @@
title: '请审核并同意用户协议',
type: 'error'
})
} else {
const patientId = uni.getStorageSync('patientId');
AppIdentification(patientId).then(resp => {
if (resp.code == 200) {
if (res.data.loginFlag) {
that.$refs.uToast.show({
title: '您已完善',
type: 'success',
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(e => {
uni.navigateBack({
delta: 1
})
}, 1500)
} else {
information(that.query).then(res => {
if (res.code == 200) {
@ -227,6 +247,9 @@
})
}
}
})
}
}
} else {
that.$refs.uToast.show({
title: '所属区域应选择所在的区或街道,请重新选择!',
@ -294,20 +317,16 @@
},
//
getpickerParentValue(e) {
e = e.filter(ele => ele.localName != '暂不选择')
e = e.filter(ele => ele.localName != '暂无需选择')
this.addresslength = e
if (e.length == 4) {
this.address = e[0].localName + e[1].localName + e[2].localName + e[3]
.localName
this.query.areaCode = e[3].id
} else if (e.length == 3) {
this.address = e[0].localName + e[1].localName + e[2].localName
this.query.areaCode = e[2].id
} else if (e.length == 2) {
this.address = e[0].localName + e[1].localName
this.query.areaCode = e[1].id
} else if (e.length == 1) {
this.address = e[0].localName
this.query.areaCode = e[0].id
this.address = ''
this.query.areaCode = ''
if (e && e.length >= 1) {
e.forEach(el => {
this.address = this.address + el.localName
})
this.query.areaCode = e[e.length - 1].id
} else {
this.address = ''
this.query.areaCode = ''

View File

@ -167,6 +167,7 @@
//
getpickerParentValue(e) {
e = e.filter(ele => ele.localName != '暂不选择')
e = e.filter(ele => ele.localName != '暂无需选择')
this.addresslength = e
this.infolist.address = ''
this.infolist.areaCode = ''