修改
This commit is contained in:
parent
45f2427fd3
commit
de6c8b4c43
@ -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')
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -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)
|
||||||
|
|||||||
@ -59,60 +59,51 @@
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
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
|
uni.showModal({
|
||||||
let userInfo = uni.getStorageSync('userinfo')
|
title: "提示",
|
||||||
if (!userInfo) {
|
content: "您还未注册,是否去注册?",
|
||||||
uni.showModal({
|
confirmText: '是',
|
||||||
title: "提示",
|
cancelText: '否',
|
||||||
content: "您还未注册,是否去注册?",
|
success(res) {
|
||||||
confirmText: '是',
|
if (res.confirm) {
|
||||||
cancelText: '否',
|
uni.redirectTo({
|
||||||
success(res) {
|
url: "/pages/register/register"
|
||||||
if (res.confirm) {
|
})
|
||||||
uni.redirectTo({
|
} else {
|
||||||
url: "/pages/register/register"
|
wx.exitMiniProgram()
|
||||||
})
|
|
||||||
} 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}`
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
},
|
||||||
}
|
})
|
||||||
|
} 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({
|
// uni.navigateTo({
|
||||||
// url: '/pagesB/screenorder/screenorder'
|
// url: '/pagesB/screenorder/screenorder'
|
||||||
// })
|
// })
|
||||||
@ -166,7 +157,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 筛查结果
|
// 筛查结果
|
||||||
result(){
|
result() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesB/SelectItem/SelectItem'
|
url: '/pagesB/SelectItem/SelectItem'
|
||||||
})
|
})
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user