修改
This commit is contained in:
parent
45f2427fd3
commit
de6c8b4c43
@ -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')
|
||||
},
|
||||
})
|
||||
}
|
||||
@ -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)
|
||||
|
||||
@ -60,19 +60,19 @@
|
||||
pageSize: 5,
|
||||
informationCategoryVOList: [], //咨询信息
|
||||
patientId: '',
|
||||
userInfo: null,
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.pageNum = 1
|
||||
this.patientId = uni.getStorageSync('patientId');
|
||||
this.userInfo = uni.getStorageSync('userinfo')
|
||||
this.getHeathHousing();
|
||||
},
|
||||
methods: {
|
||||
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'
|
||||
// })
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user