修改
This commit is contained in:
parent
6b3bacb4d0
commit
0a14553558
@ -513,15 +513,27 @@
|
||||
},
|
||||
// 切换家庭成员
|
||||
homeshow() {
|
||||
this.showhome = true
|
||||
this.getpersnoal()
|
||||
// this.myInfo()
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
this.showhome = true
|
||||
this.getpersnoal()
|
||||
// this.myInfo()
|
||||
} else {
|
||||
this.gologin();
|
||||
}
|
||||
},
|
||||
//管理家庭成员
|
||||
gomanagefamily() {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/managefamily/managefamily'
|
||||
})
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/managefamily/managefamily'
|
||||
})
|
||||
} else {
|
||||
this.gologin();
|
||||
}
|
||||
},
|
||||
// 添加家庭成员
|
||||
addFamilyItem() {
|
||||
|
||||
@ -53,7 +53,9 @@
|
||||
},
|
||||
onLoad() {
|
||||
this.address = uni.getStorageSync('location')
|
||||
this.getAddress()
|
||||
if (!uni.getStorageSync('location')) {
|
||||
this.getAddress()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
searchChange(value) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user