修改
This commit is contained in:
parent
ca98468c3a
commit
9e5f2b1aa4
@ -76,9 +76,7 @@
|
||||
return {
|
||||
patientName: '',
|
||||
userinfo: {},
|
||||
identity: '',
|
||||
region: '',
|
||||
openid: '',
|
||||
checkSign: null,
|
||||
}
|
||||
},
|
||||
@ -87,10 +85,13 @@
|
||||
},
|
||||
onShow() {
|
||||
this.userinfo = uni.getStorageSync('userinfo');
|
||||
this.patientName = this.userinfo.patientName
|
||||
if (this.userinfo) {
|
||||
checkSignApply(this.userinfo.cardNo, '1').then(res => {
|
||||
if (res.code != 0) {
|
||||
this.checkSign = true
|
||||
} else {
|
||||
this.checkSign = false
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -103,37 +104,18 @@
|
||||
})
|
||||
},
|
||||
gologin() {
|
||||
if (!this.userinfo) {
|
||||
this.$refs.uToast.show({
|
||||
title: '您未登录,请先登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
return
|
||||
}
|
||||
},
|
||||
// 签约信息
|
||||
detailinfo(url1, url2) {
|
||||
detail(this.identity, this.region).then(res => {
|
||||
// detail('372424194703207523', '1').then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.navigateTo({
|
||||
url: url2 + `?item=${JSON.stringify(res.data)}`
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
url: url1
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 家医签约
|
||||
goonline() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
if (!this.checkSign) {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -146,10 +128,13 @@
|
||||
url: "/pagesB/mysigning/mysigning"
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
// 积分兑换
|
||||
count() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
if (!this.checkSign) {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -162,38 +147,53 @@
|
||||
url: ""
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
// 健康档案
|
||||
goHealthrecords() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pagesC/Healthrecords/Healthrecords"
|
||||
})
|
||||
}
|
||||
},
|
||||
// 筛查记录
|
||||
gorecords() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pagesC/Screeningrecords/Screeningrecords"
|
||||
})
|
||||
}
|
||||
},
|
||||
// 健康自评
|
||||
healthtest() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pagesC/healthtest/healthtest"
|
||||
})
|
||||
}
|
||||
},
|
||||
// 体征检测
|
||||
sign() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pagesC/Physicalexamination/Physicalexamination"
|
||||
})
|
||||
}
|
||||
},
|
||||
// 服务预约
|
||||
goappoint() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
if (!this.checkSign) {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -206,17 +206,23 @@
|
||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
// 服务记录
|
||||
servicerecord() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pagesC/servicerecord/servicerecord"
|
||||
})
|
||||
}
|
||||
},
|
||||
// 我的预约
|
||||
myappointment() {
|
||||
if (!this.userinfo) {
|
||||
this.gologin();
|
||||
} else {
|
||||
if (!this.checkSign) {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
@ -229,6 +235,7 @@
|
||||
url: "/pagesC/Myappointment/Myappointment"
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
type: 'success',
|
||||
duration: '1500'
|
||||
})
|
||||
uni.setStorageSync('patientId', res.data.id);
|
||||
// uni.setStorageSync('patientId', res.data.id);
|
||||
uni.setStorageSync('userinfo', resp.data);
|
||||
if (this.timer) {
|
||||
clearTimeout(this.timer)
|
||||
|
||||
@ -89,6 +89,24 @@
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 签约信息
|
||||
detailinfo(url1, url2) {
|
||||
detail(this.identity, this.region).then(res => {
|
||||
// detail('372424194703207523', '1').then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.navigateTo({
|
||||
url: url2 + `?item=${JSON.stringify(res.data)}`
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '未签约,请先签约',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
url: url1
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
//我的家庭医生团队
|
||||
gomyfamilydoctorteam() {
|
||||
uni.navigateTo({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user