This commit is contained in:
2023-11-09 16:59:45 +08:00
parent edf0aee606
commit 1882b9e51c
2 changed files with 34 additions and 93 deletions

View File

@ -89,6 +89,7 @@
return {
patientName: '',
userinfo: null,
infotitle: null,
region: '',
checkSign: null,
address: '',
@ -113,13 +114,12 @@
uni.setStorageSync("region", 3)
}
this.region = uni.getStorageSync('region')
if (this.userinfo && this.region != "3") {
if (this.userinfo && this.region != 3) {
this.patientName = this.userinfo.patientName
checkSignApply(this.userinfo.cardNo).then(res => {
if (res.data) {
this.checkSign = res.data.code
this.info = res.data.info
this.infotitle = res.data.info
}
// if (res.data.code == 0) {
// this.checkSign = true
@ -129,11 +129,9 @@
})
} else {
this.patientName = ''
}
},
methods: {
city() {
uni.navigateTo({
url: '/pages/location/location'
@ -145,7 +143,6 @@
url: "/pages/login/login"
})
},
gologin() {
this.$refs.uToast.show({
title: '您未登录,请先登录',
@ -160,34 +157,28 @@
title: '当前绑定地市不支持',
type: 'error',
duration: '3000',
})
},
//
goonline() {
if (!this.userinfo) {
this.gologin();
} else {
if (this.region == "3") {
if (this.region == 3) {
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (this.cityCode == 1 || this.cityCode == 2) {
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,
title: this.infotitle,
type: 'error',
duration: '2000',
})
} else {
uni.navigateTo({
url: "/pagesB/mysigning/mysigning"
@ -195,12 +186,8 @@
}
} else {
this.family()
}
}
}
},
//
@ -208,48 +195,35 @@
if (!this.userinfo) {
this.gologin();
} else {
if (this.region == "3") {
if (this.region == 3) {
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (this.cityCode == 1 || this.cityCode == 2) {
if (this.checkSign == "0") {
this.$refs.uToast.show({
title: this.info,
title: this.infotitle,
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
} else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
title: this.infotitle,
type: 'error',
duration: '2000',
})
} else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
title: this.infotitle,
type: 'error',
duration: '2000',
})
} else {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
}
} else {
this.family()
}
}
}
},
//
@ -260,9 +234,6 @@
uni.navigateTo({
url: "/pagesC/Healthrecords/Healthrecords"
})
}
},
//
@ -306,44 +277,31 @@
if (!this.userinfo) {
this.gologin();
} else {
// if (this.region == "3") {
// if (this.region == 3) {
// this.family()
// } else {
// if (this.cityCode == "1" || this.cityCode == "2") {
// if (this.cityCode == 1 || this.cityCode == 2) {
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,
title: this.infotitle,
type: 'error',
duration: '2000',
})
} else {
uni.navigateTo({
url: "/pagesC/ServiceAppointment/ServiceAppointment"
})
}
// } else {
// this.family()
// }
// }
// }
// }
}
},
//
@ -351,40 +309,30 @@
if (!this.userinfo) {
this.gologin();
} else {
if (this.region == "3") {
if (this.region == 3) {
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (this.cityCode == 1 || this.cityCode == 2) {
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,
title: this.infotitle,
type: 'error',
duration: '2000',
})
} else {
uni.navigateTo({
url: "/pagesC/servicerecord/servicerecord"
})
}
} else {
this.family()
}
}
}
},
//
@ -392,39 +340,30 @@
if (!this.userinfo) {
this.gologin();
} else {
if (this.region == "3") {
if (this.region == 3) {
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
if (this.cityCode == 1 || this.cityCode == 2) {
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,
title: this.infotitle,
type: 'error',
duration: '2000',
})
} else {
uni.navigateTo({
url: "/pagesC/Myappointment/Myappointment"
})
}
} else {
this.family()
}
}
}
},
}
@ -433,4 +372,4 @@
<style lang="scss">
@import "./homepage.scss";
</style>
</style>

View File

@ -42,7 +42,7 @@
</view>
</view>
<view class="item" @tap='gointegral'>
<view class="number" v-if="appPersonallist.integral==null">
<view class="number" v-if="!appPersonallist.integral">
0
</view>
<view class="number" v-else>
@ -54,7 +54,7 @@
</view>
<view class="item" @tap='gocoupon'>
<view class="number"
v-if="appPersonallist.patientCouponCount==0 ||appPersonallist.patientCouponCount==undefined">
v-if="appPersonallist.patientCouponCount==0 ||!appPersonallist.patientCouponCount">
0
</view>
<view class="number" v-else>
@ -238,14 +238,12 @@
showhome: false, //
familyList: null, //
userinfo: {}, //
cityCode: '',
};
},
onShow() {
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
this.userinfo = uni.getStorageSync('userinfo')
this.baseurl = baseurl
this.cityCode = uni.getStorageSync('region');
this.myInfo()
this.getpersnoal()
},
@ -462,18 +460,22 @@
},
//
goBehaviorpoints() {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
if (uni.getStorageSync('region') == 3) {
this.$refs.uToast.show({
title: '当前地区不支持,请选择其它地区',
type: 'error',
})
} else {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
}
},
//
homeshow() {
this.showhome = true
this.getpersnoal()
// this.myInfo()
},
//
gomanagefamily() {