This commit is contained in:
2023-10-27 14:55:48 +08:00
parent 3a010e4f96
commit 906b4b895c
5 changed files with 56 additions and 97 deletions

View File

@ -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')
},
})
}

View File

@ -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')
},
})
}

View File

@ -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",

View File

@ -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) {

View File

@ -155,14 +155,11 @@
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<u-toast ref="uToast" />
<view class="mask" v-show="showhome" @click.stop='showhome = false'>
<view class="mask" @click.stop='showhome = false' v-if="showhome">
<view class="masktext" @click.stop=''>
<view class="maskcontent">
<!-- <text>{{familyList.patientName}}</text> -->
<view class="maskcontent" v-if="familyList">
<template v-for="item in familyList">
<view :class="item.cardNo === userinfo.cardNo ? 'p1' : 'p2'"
<view :class="item.cardNo == userinfo.cardNo ? 'p1' : 'p2'"
@click.stop="changeFamilyInfo(item)">
<text>{{item.patientName}}</text>
<text
@ -197,9 +194,6 @@
createMobileToken
} from '@/api/pages/login/index.js'
import baseurl from '@/api/baseurl.js'
// import {
// ,
// } from '@/api/pages/homepage/homepage.js'
export default {
data() {
return {
@ -208,30 +202,25 @@
timer: null,
list: {},
showhome: false, //
familyList: {}, //
familyList: null, //
userinfo: {}, //
valueopenid: '',
cityCode:'',
cityCode: '',
};
},
onShow() {
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
let that = this
that.userinfo = uni.getStorageSync('userinfo')
console.log(that.userinfo)
that.baseurl = baseurl
const value = uni.getStorageSync('patientId');
this.userinfo = uni.getStorageSync('userinfo')
this.baseurl = baseurl
this.valueopenid = uni.getStorageSync('openid');
this.cityCode=uni.getStorageSync('region');
if (value) {
this.cityCode = uni.getStorageSync('region');
if (that.userinfo) {
that.myInfo()
} else {
that.appPersonallist = null
}
this.getpersnoal()
},
methods: {
// 退
@ -268,15 +257,12 @@
},
//
getpersnoal() {
getCurrentUser(this.valueopenid,this.cityCode).then(res => {
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
// }
// }
// })
// }
}
}
</script>
<style lang="scss">
@import './myinformation.scss'
</style>
</style>