在线签约

This commit is contained in:
shidongli 2023-11-08 17:13:05 +08:00
parent 2f4978578e
commit 80a841629c
4 changed files with 101 additions and 21 deletions

View File

@ -117,11 +117,16 @@
if (this.userinfo && this.region!="3") {
this.patientName = this.userinfo.patientName
checkSignApply(this.userinfo.cardNo).then(res => {
if (res.data.code != 0) {
this.checkSign = true
} else {
this.checkSign = false
if(res.data){
this.checkSign=res.data.code
this.info=res.data.info
}
// if (res.data.code == 0) {
// this.checkSign = true
// } else {
// this.checkSign = false
// }
})
} else {
this.patientName = ''
@ -169,14 +174,23 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
if (this.checkSign=="0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
} else {
} else if(this.checkSign=="01"){
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '2000',
})
}
else {
uni.navigateTo({
url: "/pagesB/mysigning/mysigning"
})
@ -200,14 +214,33 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
if (this.checkSign=="0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
title: this.info,
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
} else {
}
else if(this.checkSign=="01"){
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '2000',
})
}
else if(this.checkSign=="01"){
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '2000',
})
}
else {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
@ -282,14 +315,24 @@
// this.family()
// } else {
// if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
if (this.checkSign=="0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
} else {
}
else if(this.checkSign=="01"){
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '2000',
})
}
else {
uni.navigateTo({
url: "/pagesC/ServiceAppointment/ServiceAppointment"
})
@ -319,9 +362,29 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
uni.navigateTo({
url: "/pagesC/servicerecord/servicerecord"
})
if (this.checkSign=="0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
}
else if(this.checkSign=="01"){
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '2000',
})
}else{
uni.navigateTo({
url: "/pagesC/servicerecord/servicerecord"
})
}
} else {
this.family()
@ -341,14 +404,24 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (!this.checkSign) {
if (this.checkSign=="0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
} else {
}
else if(this.checkSign=="01"){
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '2000',
})
}
else {
uni.navigateTo({
url: "/pagesC/Myappointment/Myappointment"
})

View File

@ -159,6 +159,12 @@
url: "/pages/homepage/homepage"
})
}, 2000)
}else{
this.$refs.uToast.show({
title: res.msg,
type: 'error',
})
}
})
},
@ -215,4 +221,4 @@
<style lang="scss">
@import './mysigning.scss';
</style>
</style>

View File

@ -223,7 +223,7 @@
crowdNoList: null,
packageList: null,
packageNoList: null,
signYears: null,
signYears: 1,
BasePackage: null, //
PersonalityPack: null, //
packSignCost: 0, //
@ -314,8 +314,8 @@
title: '签约成功',
type: 'success',
})
uni.redirectTo({
url: "/pagesB/mysigning/mysigning"
uni.switchTab({
url: "/pages/homepage/homepage"
})
} else {
this.$refs.uToast.show({
@ -568,4 +568,4 @@
</script>
<style lang="scss">
@import "./Onlinesigning.scss";
</style>
</style>

View File

@ -64,6 +64,7 @@
watch: {
'query.orgName': {
handler(newval, oldval) {
this.query.pageNum=1
this.getNearbyOrginfo();
}
}