diff --git a/api/baseurl.js b/api/baseurl.js index 0064f96..ae6db54 100644 --- a/api/baseurl.js +++ b/api/baseurl.js @@ -1,10 +1,12 @@ // var baseurl = "https://quanyidaojia.xinelu.cn"; -// var baseurl = "http://192.168.16.48:8088"; +var baseurl = "http://192.168.16.48:8088"; // 蒙 // var baseurl = "http://8.131.93.145:54088"; // 郝 // var baseurl = "http://8.131.93.145:54010"; -var baseurl = "http://192.168.16.30:8088"; +// var baseurl = "http://192.168.16.76:8080"; +// var baseurl = "http://192.168.16.212:8088"; + export default baseurl diff --git a/api/pagesB/Serviceevaluation/Serviceevaluation.js b/api/pagesB/Serviceevaluation/Serviceevaluation.js index 65edf37..959bd88 100644 --- a/api/pagesB/Serviceevaluation/Serviceevaluation.js +++ b/api/pagesB/Serviceevaluation/Serviceevaluation.js @@ -4,7 +4,9 @@ export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pa url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}®ion=${region}&pageNum=${pageNum}&pageSize=${pageSize}`, method: 'GET', header: { - Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), + region: uni.getStorageSync('region'), + }, }) diff --git a/api/pagesC/healthtest/index.js b/api/pagesC/healthtest/index.js index 7652642..6b1dece 100644 --- a/api/pagesC/healthtest/index.js +++ b/api/pagesC/healthtest/index.js @@ -8,6 +8,8 @@ export function surveylist(data) { data, header: { region: uni.getStorageSync('region'), + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + }, }) -} \ No newline at end of file +} diff --git a/components/protocol/protocol.vue b/components/protocol/protocol.vue index a3396ad..a08b5de 100644 --- a/components/protocol/protocol.vue +++ b/components/protocol/protocol.vue @@ -12,7 +12,28 @@
甲乙双方本着平等、尊重和自愿的原则,签订此协议,接受以下条款的约定
甲乙双方共同确定
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index 0a7d8f1..404e145 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -88,10 +88,7 @@
data() {
return {
patientName: '',
- userinfo: {
- cityCode: "",
- },
-
+ userinfo: null,
region: '',
checkSign: null,
address: '',
@@ -103,9 +100,11 @@
},
onShow() {
this.address = uni.getStorageSync('location')
- this.userinfo = uni.getStorageSync('userinfo')
this.openid = uni.getStorageSync('openid');
- this.cityCode = this.userinfo.cityCode;
+ if (uni.getStorageSync('userinfo')) {
+ this.userinfo = uni.getStorageSync('userinfo')
+ this.cityCode = this.userinfo.cityCode;
+ }
if (this.address == '德州市') {
uni.setStorageSync("region", 1)
} else if (this.address == '东营市') {
@@ -114,12 +113,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
+ if (res.data) {
+ this.checkSign = res.data.code
+ this.info = res.data.info
}
// if (res.data.code == 0) {
@@ -174,14 +173,14 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
- if (this.checkSign=="0") {
+ if (this.checkSign == "0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
- } else if(this.checkSign=="01"){
+ } else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
type: 'error',
@@ -189,8 +188,7 @@
})
- }
- else {
+ } else {
uni.navigateTo({
url: "/pagesB/mysigning/mysigning"
})
@@ -214,15 +212,14 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
- if (this.checkSign=="0") {
+ if (this.checkSign == "0") {
this.$refs.uToast.show({
title: this.info,
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
- }
- else if(this.checkSign=="01"){
+ } else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
type: 'error',
@@ -230,8 +227,7 @@
})
- }
- else if(this.checkSign=="01"){
+ } else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
type: 'error',
@@ -239,8 +235,7 @@
})
- }
- else {
+ } else {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
@@ -314,34 +309,32 @@
// if (this.region == "3") {
// this.family()
// } else {
- // 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,
- type: 'error',
- duration: '2000',
+ // 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,
+ type: 'error',
+ duration: '2000',
- })
+ })
- }
- else {
- uni.navigateTo({
- url: "/pagesC/ServiceAppointment/ServiceAppointment"
- })
- }
+ } else {
+ uni.navigateTo({
+ url: "/pagesC/ServiceAppointment/ServiceAppointment"
+ })
+ }
- // } else {
- // this.family()
+ // } else {
+ // this.family()
- // }
+ // }
// }
// }
@@ -362,15 +355,14 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
- if (this.checkSign=="0") {
+ if (this.checkSign == "0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
- }
- else if(this.checkSign=="01"){
+ } else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
type: 'error',
@@ -378,7 +370,7 @@
})
- }else{
+ } else {
uni.navigateTo({
url: "/pagesC/servicerecord/servicerecord"
})
@@ -404,15 +396,14 @@
this.family()
} else {
if (this.cityCode == "1" || this.cityCode == "2") {
- if (this.checkSign=="0") {
+ if (this.checkSign == "0") {
this.$refs.uToast.show({
title: '未签约,请先签约',
type: 'error',
duration: '1000',
url: "/pagesC/Onlinesigning/Onlinesigning"
})
- }
- else if(this.checkSign=="01"){
+ } else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.info,
type: 'error',
@@ -420,8 +411,7 @@
})
- }
- else {
+ } else {
uni.navigateTo({
url: "/pagesC/Myappointment/Myappointment"
})
diff --git a/pages/login/login.vue b/pages/login/login.vue
index f357aad..7711cd7 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -111,34 +111,28 @@
type: 'error',
duration: '1500',
})
- setTimeout(() => {
+ if (that.timer) {
+ clearTimeout(that.timer)
+ }
+ that.timer = setTimeout(() => {
uni.redirectTo({
url: '/pages/register/register',
})
- })
+ }, 1500)
} else if (resp.data.code == '1') {
getCurrentUser(resp.data.openid, resp.data.cityCode).then(res => {
if (res.code == 200) {
+ uni.setStorageSync('patientId', res.data.id);
+ uni.setStorageSync('userinfo', res.data);
that.$refs.uToast.show({
title: '登录成功',
type: 'success',
- duration: '1500'
+ back: 1
})
- uni.setStorageSync('patientId', res.data.id);
- uni.setStorageSync('userinfo', res.data);
- if (that.timer) {
- clearTimeout(that.timer)
- }
- that.timer = setTimeout(e => {
- uni.navigateBack({
- delta: 1
- })
- }, 500)
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
- duration: '1500'
})
}
})
diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue
index cb54b20..a3d42fd 100644
--- a/pages/myinformation/myinformation.vue
+++ b/pages/myinformation/myinformation.vue
@@ -10,14 +10,11 @@