在线签约
This commit is contained in:
parent
2f4978578e
commit
80a841629c
@ -117,11 +117,16 @@
|
|||||||
if (this.userinfo && this.region!="3") {
|
if (this.userinfo && this.region!="3") {
|
||||||
this.patientName = this.userinfo.patientName
|
this.patientName = this.userinfo.patientName
|
||||||
checkSignApply(this.userinfo.cardNo).then(res => {
|
checkSignApply(this.userinfo.cardNo).then(res => {
|
||||||
if (res.data.code != 0) {
|
if(res.data){
|
||||||
this.checkSign = true
|
this.checkSign=res.data.code
|
||||||
} else {
|
this.info=res.data.info
|
||||||
this.checkSign = false
|
|
||||||
}
|
}
|
||||||
|
// if (res.data.code == 0) {
|
||||||
|
// this.checkSign = true
|
||||||
|
// } else {
|
||||||
|
// this.checkSign = false
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.patientName = ''
|
this.patientName = ''
|
||||||
@ -169,14 +174,23 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (!this.checkSign) {
|
if (this.checkSign=="0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else {
|
} else if(this.checkSign=="01"){
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: this.info,
|
||||||
|
type: 'error',
|
||||||
|
duration: '2000',
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesB/mysigning/mysigning"
|
url: "/pagesB/mysigning/mysigning"
|
||||||
})
|
})
|
||||||
@ -200,14 +214,33 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (!this.checkSign) {
|
if (this.checkSign=="0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
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({
|
uni.navigateTo({
|
||||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
||||||
})
|
})
|
||||||
@ -282,14 +315,24 @@
|
|||||||
// this.family()
|
// this.family()
|
||||||
// } else {
|
// } else {
|
||||||
// if (this.cityCode == "1" || this.cityCode == "2") {
|
// if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (!this.checkSign) {
|
if (this.checkSign=="0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else {
|
}
|
||||||
|
else if(this.checkSign=="01"){
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: this.info,
|
||||||
|
type: 'error',
|
||||||
|
duration: '2000',
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||||
})
|
})
|
||||||
@ -319,9 +362,29 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
uni.navigateTo({
|
if (this.checkSign=="0") {
|
||||||
url: "/pagesC/servicerecord/servicerecord"
|
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 {
|
} else {
|
||||||
this.family()
|
this.family()
|
||||||
@ -341,14 +404,24 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (!this.checkSign) {
|
if (this.checkSign=="0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else {
|
}
|
||||||
|
else if(this.checkSign=="01"){
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: this.info,
|
||||||
|
type: 'error',
|
||||||
|
duration: '2000',
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/Myappointment/Myappointment"
|
url: "/pagesC/Myappointment/Myappointment"
|
||||||
})
|
})
|
||||||
|
|||||||
@ -159,6 +159,12 @@
|
|||||||
url: "/pages/homepage/homepage"
|
url: "/pages/homepage/homepage"
|
||||||
})
|
})
|
||||||
}, 2000)
|
}, 2000)
|
||||||
|
}else{
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -215,4 +221,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import './mysigning.scss';
|
@import './mysigning.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -223,7 +223,7 @@
|
|||||||
crowdNoList: null,
|
crowdNoList: null,
|
||||||
packageList: null,
|
packageList: null,
|
||||||
packageNoList: null,
|
packageNoList: null,
|
||||||
signYears: null,
|
signYears: 1,
|
||||||
BasePackage: null, //基础包
|
BasePackage: null, //基础包
|
||||||
PersonalityPack: null, // 个性包
|
PersonalityPack: null, // 个性包
|
||||||
packSignCost: 0, //价格
|
packSignCost: 0, //价格
|
||||||
@ -314,8 +314,8 @@
|
|||||||
title: '签约成功',
|
title: '签约成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
})
|
})
|
||||||
uni.redirectTo({
|
uni.switchTab({
|
||||||
url: "/pagesB/mysigning/mysigning"
|
url: "/pages/homepage/homepage"
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -568,4 +568,4 @@
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./Onlinesigning.scss";
|
@import "./Onlinesigning.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -64,6 +64,7 @@
|
|||||||
watch: {
|
watch: {
|
||||||
'query.orgName': {
|
'query.orgName': {
|
||||||
handler(newval, oldval) {
|
handler(newval, oldval) {
|
||||||
|
this.query.pageNum=1
|
||||||
this.getNearbyOrginfo();
|
this.getNearbyOrginfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user