This commit is contained in:
2024-11-14 16:36:12 +08:00
parent c67cae7caf
commit e450469daa
3 changed files with 8 additions and 13 deletions

View File

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

View File

@ -130,7 +130,7 @@
},
//
getHeathHousing() {
getHeathHousingList(this.pageNum, this.pageSize).then(res => {
getHeathHousingList(this.pageNum, this.pageSize, uni.getStorageSync('userinfo').cardNo).then(res => {
if (res.rows) {
res.rows.forEach(e => {
e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl

View File

@ -21,7 +21,7 @@
</view>
<u-tabs :list="hospitalDepartmentList" :current="tabcurrent" @change="tabchange" active-color='#26A888'
:show-bar='false'></u-tabs>
<view class="list" v-if="HospitalPersonlist">
<view class="list" v-if="HospitalPersonlist.length>0">
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
<image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image>
<image v-else :src="baseurl + '/profile/weChatPicture/docHead.png'" />
@ -68,7 +68,7 @@
pageNum: 1,
pageSize: 10,
departmentId: null,
HospitalPersonlist: null,
HospitalPersonlist: [],
HospitalPersontotal: 0,
hospitalDepartmentList: null,
cardNo: '',
@ -94,7 +94,7 @@
selectHospitalPersonInfo() {
var status = '1'
selectHospitalPerson(this.pageNum, this.pageSize, this.departmentId, status).then(res => {
this.HospitalPersonlist = res.rows
this.HospitalPersonlist = [...this.HospitalPersonlist, ...res.rows]
this.HospitalPersontotal = res.total
})
},
@ -159,17 +159,12 @@
onReachBottom() { //
if (this.HospitalPersonlist.length >= this.HospitalPersontotal) {} else {
this.pageNum++
getHeathHousingList(this.pageNum, this.pageSize).then(res => {
if (res.rows) {
res.rows.forEach(e => {
this.HospitalPersonlist.push(e)
})
}
})
this.selectHospitalPersonInfo();
}
},
onPullDownRefresh() { //
this.pageNum = 1;
this.HospitalPersonlist = []
this.selectHospitalPersonInfo();
setTimeout(function() {
uni.stopPullDownRefresh();