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() { homeshow() {
this.showhome = true const value = uni.getStorageSync('userinfo');
this.getpersnoal() const value2 = uni.getStorageSync('patientId');
// this.myInfo() if (value && value2) {
this.showhome = true
this.getpersnoal()
// this.myInfo()
} else {
this.gologin();
}
}, },
// //
gomanagefamily() { gomanagefamily() {
uni.navigateTo({ const value = uni.getStorageSync('userinfo');
url: '/pagesB/managefamily/managefamily' const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: '/pagesB/managefamily/managefamily'
})
} else {
this.gologin();
}
}, },
// //
addFamilyItem() { addFamilyItem() {

View File

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