From 906b4b895cf8f32399156c1b65f0ffb131c2515c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Fri, 27 Oct 2023 14:55:48 +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
---
api/pagesB/SelectItem/SelectItem.js | 5 +-
api/pagesB/ServiceDetails/ServiceDetails.js | 15 +++-
pages.json | 34 ++++----
pages/homepage/homepage.vue | 2 +-
pages/myinformation/myinformation.vue | 97 +++++----------------
5 files changed, 56 insertions(+), 97 deletions(-)
diff --git a/api/pagesB/SelectItem/SelectItem.js b/api/pagesB/SelectItem/SelectItem.js
index c9d7f35..31d1bc8 100644
--- a/api/pagesB/SelectItem/SelectItem.js
+++ b/api/pagesB/SelectItem/SelectItem.js
@@ -3,6 +3,9 @@ import request from "../../request.js"
export function projectTypedata(projectType) {
return request({
url: `/nurseApplet/screening/project/list?projectType=${projectType}`,
- method: 'GET'
+ method: 'GET',
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ },
})
}
\ No newline at end of file
diff --git a/api/pagesB/ServiceDetails/ServiceDetails.js b/api/pagesB/ServiceDetails/ServiceDetails.js
index 628906a..8929b4b 100644
--- a/api/pagesB/ServiceDetails/ServiceDetails.js
+++ b/api/pagesB/ServiceDetails/ServiceDetails.js
@@ -4,7 +4,10 @@ import request from "../../request.js"
export function getAppointmentDetailsInfo(orderNo) {
return request({
url: `/nurseApplet/nursingOrder/getAppointmentDetailsInfo?orderNo=${orderNo}`,
- method: 'GET'
+ method: 'GET',
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ },
})
}
//评价
@@ -12,12 +15,18 @@ export function addAppointmentEvaluate(data) {
return request({
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
method: 'POST',
- data
+ data,
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ },
})
}
export function handCloseOrder() {
return request({
url: `/monitor/payTask/handCloseOrder`,
- method: 'GET'
+ method: 'GET',
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ },
})
}
diff --git a/pages.json b/pages.json
index fa11394..189505d 100644
--- a/pages.json
+++ b/pages.json
@@ -666,25 +666,21 @@
"navigationBarTitleText": "健康处方",
"enablePullDownRefresh": false
}
- } ,{
- "path" : "History/History",
- "style" :
- {
- "navigationBarTitleText": "健康自评历史记录",
- "enablePullDownRefresh": false
- }
-
- }
- ,{
- "path" : "HistoryQuestionnaire/HistoryQuestionnaire",
- "style" :
- {
- "navigationBarTitleText": "历史记录评估问卷",
- "enablePullDownRefresh": false
- }
-
- }
- ]
+ }, {
+ "path": "History/History",
+ "style": {
+ "navigationBarTitleText": "健康自评历史记录",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "HistoryQuestionnaire/HistoryQuestionnaire",
+ "style": {
+ "navigationBarTitleText": "历史记录评估问卷",
+ "enablePullDownRefresh": false
+ }
+
+ }]
}],
"globalStyle": {
"navigationBarTextStyle": "white",
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index 273b7cb..2887c9c 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -105,7 +105,7 @@
} else if (this.address == '东营市') {
uni.setStorageSync("region", 2)
} else if (this.address == '济南市') {
- uni.setStorageSync("region", 1)
+ uni.setStorageSync("region", 3)
}
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue
index a66ca02..c2ac30e 100644
--- a/pages/myinformation/myinformation.vue
+++ b/pages/myinformation/myinformation.vue
@@ -155,14 +155,11 @@
-
-
-
+
-
-
+
-
{{item.patientName}}
{
- console.log(res)
+ getCurrentUser(this.valueopenid, this.cityCode).then(res => {
this.familyList = res.data
-
})
},
// 切换成员
changeFamilyInfo(e) {
- console.log(e, '000')
switchResident(this.valueopenid, e.patientCode).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
@@ -287,24 +273,22 @@
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('patientId', res.data.id);
this.myInfo()
-
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: '1000',
})
-
}
})
this.showhome = false
},
removes() {
this.appPersonallist = null
- // uni.removeStorageSync('patientId');
- // uni.removeStorageSync('openid');
- // uni.removeStorageSync('phone');
- // uni.removeStorageSync('Refresh');
+ uni.removeStorageSync('patientId');
+ uni.removeStorageSync('openid');
+ uni.removeStorageSync('phone');
+ uni.removeStorageSync('userinfo');
},
//获取个人信息
myInfo() {
@@ -395,26 +379,21 @@
},
//全部订单
goorder(index, item) {
- // console.log(index, item)
- // const value = uni.getStorageSync('openid');
- // const value2 = uni.getStorageSync('patientId');
- // if (value && value2) {
- uni.navigateTo({
- url: '/pagesB/CommodityOrder/CommodityOrder'
- })
- // uni.navigateTo({
- // url: `/pagesB/CommodityOrder/CommodityOrder?toindex=${index}&&orderStatus=${item}`
- // })
- // } else {
- // this.gologin();
- // }
+ const value = uni.getStorageSync('openid');
+ const value2 = uni.getStorageSync('patientId');
+ if (value && value2) {
+ uni.navigateTo({
+ url: `/pagesB/CommodityOrder/CommodityOrder?toindex=${index}&&orderStatus=${item}`
+ })
+ } else {
+ this.gologin();
+ }
},
//去登陆
gologin() {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
- duration: '1000',
url: '/pages/login/login'
})
},
@@ -440,7 +419,6 @@
homeshow() {
// this.getSetting()
// this.listquery.bindingCity = uni.getStorageSync('userinfo').bindingCity
-
var patientCode = this.userinfo.patientCode
var openid = uni.getStorageSync('openid')
// getFamilyList(openid, patientCode).then(res => {
@@ -499,43 +477,16 @@
this.gologin();
}
},
- //修改信息
- // updatainfo() {
- // const value = uni.getStorageSync('openid');
- // const value2 = uni.getStorageSync('patientId');
- // if (value && value2) {
- // uni.navigateTo({
- // url: `/pagesB/modify/modify`
- // })
- // } else {
- // this.gologin();
- // }
- // },
// 专家咨询订单
expertOrder() {
uni.navigateTo({
url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
})
},
- // getSetting() {
- // uni.getSetting({
- // withSubscriptions: true,
- // success(res) {
- // // console.log(res.subscriptionsSetting.itemSettings);
- // let itemSettings = res.subscriptionsSetting.itemSettings
- // if (!itemSettings || itemSettings['8InV9jXDT5sMj9OWfXEvlLQGlw2UaWfZ9OBMFxufmfk'] != 'accept') {
- // uni.requestSubscribeMessage({
- // tmplIds: ['8InV9jXDT5sMj9OWfXEvlLQGlw2UaWfZ9OBMFxufmfk']
- // })
- // return
- // }
- // }
- // })
- // }
}
}
+
\ No newline at end of file