修改
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)
|
||||
|
||||
@ -59,60 +59,51 @@
|
||||
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) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "您还未注册,是否去注册?",
|
||||
confirmText: '是',
|
||||
cancelText: '否',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/register/register"
|
||||
})
|
||||
} else {
|
||||
wx.exitMiniProgram()
|
||||
}
|
||||
},
|
||||
})
|
||||
} 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)
|
||||
if (!res.data) {
|
||||
uni.navigateTo({
|
||||
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
|
||||
})
|
||||
}
|
||||
if (!this.userInfo) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "您还未注册,是否去注册?",
|
||||
confirmText: '是',
|
||||
cancelText: '否',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/register/register"
|
||||
})
|
||||
} else {
|
||||
wx.exitMiniProgram()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
})
|
||||
} else {
|
||||
getScreening(this.patientId).then(res => {
|
||||
if (res.code == 200) {
|
||||
let userinfo = JSON.stringify(userInfo)
|
||||
if (!res.data) {
|
||||
uni.navigateTo({
|
||||
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
// uni.navigateTo({
|
||||
// url: '/pagesB/screenorder/screenorder'
|
||||
// })
|
||||
@ -166,7 +157,7 @@
|
||||
})
|
||||
},
|
||||
// 筛查结果
|
||||
result(){
|
||||
result() {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/SelectItem/SelectItem'
|
||||
})
|
||||
@ -212,4 +203,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import "./medicalservice.scss";
|
||||
</style>
|
||||
</style>
|
||||
@ -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