This commit is contained in:
2023-10-12 11:24:37 +08:00
parent 45f2427fd3
commit de6c8b4c43
5 changed files with 50 additions and 54 deletions

View File

@ -4,5 +4,8 @@ export function getHeathHousingList(pageNum, pageSize) {
return request({
url: `/nurseApplet/nearbyNursingStation/getHeathHousingList?pageNum=${pageNum}&pageSize=${pageSize}&informationCategoryType=HEALTH_NOUS`,
method: 'get',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -68,7 +68,7 @@
type: 'success',
duration: '1500'
})
// uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('userinfo', resp.data);
if (this.timer) {
clearTimeout(this.timer)

View File

@ -59,20 +59,20 @@
pageNum: 1,
pageSize: 5,
informationCategoryVOList: [], //
patientId:'',
patientId: '',
userInfo: null,
};
},
onShow() {
this.pageNum = 1
this.patientId = uni.getStorageSync('patientId');
this.userInfo = uni.getStorageSync('userinfo')
this.getHeathHousing();
},
methods: {
goAppointmentscreening(){
goAppointmentscreening() {
//
// this.userInfo
let userInfo = uni.getStorageSync('userinfo')
if (!userInfo) {
if (!this.userInfo) {
uni.showModal({
title: "提示",
content: "您还未注册,是否去注册?",
@ -89,13 +89,6 @@
},
})
} else {
// if (!uni.getStorageSync('userInfo').identity) {
// uni.navigateTo({
// url: '../../pagesB/modifyInfo/modifyInfo'
// })
// return
// }
this.patientId = uni.getStorageSync('patientId');
getScreening(this.patientId).then(res => {
if (res.code == 200) {
let userinfo = JSON.stringify(userInfo)
@ -111,8 +104,6 @@
}
})
}
// uni.navigateTo({
// url: '/pagesB/screenorder/screenorder'
// })
@ -166,7 +157,7 @@
})
},
//
result(){
result() {
uni.navigateTo({
url: '/pagesB/SelectItem/SelectItem'
})

View File

@ -332,8 +332,8 @@
registerdata(that.query).then(res => {
if (res.code == 200) {
getCurrentUser(that.query.openid, '1').then(res => {
// uni.setStorageSync('patientId', res.data.id);
// uni.setStorageSync('patientName', res.data.patientName);
uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('patientName', res.data.patientName);
uni.setStorageSync("userinfo", res.data)
})
that.$refs.uToast.show({

View File

@ -86,13 +86,14 @@
data() {
return {
list: {},
userInfo: null,
};
},
methods: {
//
detailinfo(url1, url2) {
detail(this.identity, this.region).then(res => {
// detail('372424194703207523', '1').then(res => {
detailinfo() {
// detail(this.userInfo.cardNo, this.region).then(res => {
detail('372424194703207523', '1').then(res => {
if (res.code == 200) {
uni.navigateTo({
url: url2 + `?item=${JSON.stringify(res.data)}`
@ -136,6 +137,7 @@
this.list = JSON.parse(options.item)
this.list.crowdsName = this.list.crowdsName.split(',')
this.list.packagesName = this.list.packagesName.split(',')
this.userInfo = uni.getStorageSync('userinfo')
}
}
</script>