在线签约
This commit is contained in:
parent
2f4978578e
commit
80a841629c
@ -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"
|
||||
})
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -64,6 +64,7 @@
|
||||
watch: {
|
||||
'query.orgName': {
|
||||
handler(newval, oldval) {
|
||||
this.query.pageNum=1
|
||||
this.getNearbyOrginfo();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user