修改
This commit is contained in:
parent
ca98468c3a
commit
9e5f2b1aa4
@ -76,9 +76,7 @@
|
|||||||
return {
|
return {
|
||||||
patientName: '',
|
patientName: '',
|
||||||
userinfo: {},
|
userinfo: {},
|
||||||
identity: '',
|
|
||||||
region: '',
|
region: '',
|
||||||
openid: '',
|
|
||||||
checkSign: null,
|
checkSign: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -87,10 +85,13 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.userinfo = uni.getStorageSync('userinfo');
|
this.userinfo = uni.getStorageSync('userinfo');
|
||||||
|
this.patientName = this.userinfo.patientName
|
||||||
if (this.userinfo) {
|
if (this.userinfo) {
|
||||||
checkSignApply(this.userinfo.cardNo, '1').then(res => {
|
checkSignApply(this.userinfo.cardNo, '1').then(res => {
|
||||||
if (res.code != 0) {
|
if (res.code != 0) {
|
||||||
this.checkSign = true
|
this.checkSign = true
|
||||||
|
} else {
|
||||||
|
this.checkSign = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -103,131 +104,137 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
gologin() {
|
gologin() {
|
||||||
if (!this.userinfo) {
|
this.$refs.uToast.show({
|
||||||
this.$refs.uToast.show({
|
title: '您未登录,请先登录',
|
||||||
title: '您未登录,请先登录',
|
type: 'error',
|
||||||
type: 'error',
|
duration: '1000',
|
||||||
duration: '1000',
|
url: '/pages/login/login'
|
||||||
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() {
|
goonline() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
if (!this.checkSign) {
|
this.gologin();
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
|
||||||
type: 'error',
|
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
if (!this.checkSign) {
|
||||||
url: "/pagesB/mysigning/mysigning"
|
this.$refs.uToast.show({
|
||||||
})
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
duration: '1000',
|
||||||
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesB/mysigning/mysigning"
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 积分兑换
|
// 积分兑换
|
||||||
count() {
|
count() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
if (!this.checkSign) {
|
this.gologin();
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
|
||||||
type: 'error',
|
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
if (!this.checkSign) {
|
||||||
url: ""
|
this.$refs.uToast.show({
|
||||||
})
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
duration: '1000',
|
||||||
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: ""
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 健康档案
|
// 健康档案
|
||||||
goHealthrecords() {
|
goHealthrecords() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
uni.navigateTo({
|
this.gologin();
|
||||||
url: "/pagesC/Healthrecords/Healthrecords"
|
} else {
|
||||||
})
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/Healthrecords/Healthrecords"
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 筛查记录
|
// 筛查记录
|
||||||
gorecords() {
|
gorecords() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
uni.navigateTo({
|
this.gologin();
|
||||||
url: "/pagesC/Screeningrecords/Screeningrecords"
|
} else {
|
||||||
})
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/Screeningrecords/Screeningrecords"
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 健康自评
|
// 健康自评
|
||||||
healthtest() {
|
healthtest() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
uni.navigateTo({
|
this.gologin();
|
||||||
url: "/pagesC/healthtest/healthtest"
|
} else {
|
||||||
})
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/healthtest/healthtest"
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 体征检测
|
// 体征检测
|
||||||
sign() {
|
sign() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
uni.navigateTo({
|
this.gologin();
|
||||||
url: "/pagesC/Physicalexamination/Physicalexamination"
|
} else {
|
||||||
})
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/Physicalexamination/Physicalexamination"
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 服务预约
|
// 服务预约
|
||||||
goappoint() {
|
goappoint() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
if (!this.checkSign) {
|
this.gologin();
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
|
||||||
type: 'error',
|
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
if (!this.checkSign) {
|
||||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
this.$refs.uToast.show({
|
||||||
})
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
duration: '1000',
|
||||||
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 服务记录
|
// 服务记录
|
||||||
servicerecord() {
|
servicerecord() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
uni.navigateTo({
|
this.gologin();
|
||||||
url: "/pagesC/servicerecord/servicerecord"
|
} else {
|
||||||
})
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/servicerecord/servicerecord"
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 我的预约
|
// 我的预约
|
||||||
myappointment() {
|
myappointment() {
|
||||||
this.gologin();
|
if (!this.userinfo) {
|
||||||
if (!this.checkSign) {
|
this.gologin();
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
|
||||||
type: 'error',
|
|
||||||
duration: '1000',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
if (!this.checkSign) {
|
||||||
url: "/pagesC/Myappointment/Myappointment"
|
this.$refs.uToast.show({
|
||||||
})
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
duration: '1000',
|
||||||
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/Myappointment/Myappointment"
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
uni.setStorageSync('patientId', res.data.id);
|
// uni.setStorageSync('patientId', res.data.id);
|
||||||
uni.setStorageSync('userinfo', resp.data);
|
uni.setStorageSync('userinfo', resp.data);
|
||||||
if (this.timer) {
|
if (this.timer) {
|
||||||
clearTimeout(this.timer)
|
clearTimeout(this.timer)
|
||||||
|
|||||||
@ -89,6 +89,24 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
gomyfamilydoctorteam() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user