From 1882b9e51c4ab007f7689619a7586e6decdace40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Thu, 9 Nov 2023 16:59:45 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/homepage/homepage.vue | 105 ++++++--------------------
pages/myinformation/myinformation.vue | 22 +++---
2 files changed, 34 insertions(+), 93 deletions(-)
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index 404e145..a5600bc 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -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 @@
+
\ No newline at end of file
diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue
index a3d42fd..071d7fe 100644
--- a/pages/myinformation/myinformation.vue
+++ b/pages/myinformation/myinformation.vue
@@ -42,7 +42,7 @@
-
+
0
@@ -54,7 +54,7 @@
+ v-if="appPersonallist.patientCouponCount==0 ||!appPersonallist.patientCouponCount">
0
@@ -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() {