This commit is contained in:
2024-01-23 10:59:59 +08:00
parent 6b3bacb4d0
commit 0a14553558
2 changed files with 21 additions and 7 deletions

View File

@ -513,15 +513,27 @@
},
//
homeshow() {
const value = uni.getStorageSync('userinfo');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
this.showhome = true
this.getpersnoal()
// this.myInfo()
} else {
this.gologin();
}
},
//
gomanagefamily() {
const value = uni.getStorageSync('userinfo');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({
url: '/pagesB/managefamily/managefamily'
})
} else {
this.gologin();
}
},
//
addFamilyItem() {

View File

@ -53,7 +53,9 @@
},
onLoad() {
this.address = uni.getStorageSync('location')
if (!uni.getStorageSync('location')) {
this.getAddress()
}
},
methods: {
searchChange(value) {