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({ return request({
url: `/nurseApplet/nearbyNursingStation/getHeathHousingList?pageNum=${pageNum}&pageSize=${pageSize}&informationCategoryType=HEALTH_NOUS`, url: `/nurseApplet/nearbyNursingStation/getHeathHousingList?pageNum=${pageNum}&pageSize=${pageSize}&informationCategoryType=HEALTH_NOUS`,
method: 'get', method: 'get',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
}) })
} }

View File

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

View File

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

View File

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

View File

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