修改
This commit is contained in:
parent
6b3bacb4d0
commit
0a14553558
@ -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() {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user