xg
This commit is contained in:
parent
c67cae7caf
commit
e450469daa
@ -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'),
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user