This commit is contained in:
曹辉 2023-03-20 15:47:07 +08:00
parent 5c6d532d6d
commit ac4053e602
2 changed files with 12 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<template>
<view class="app">
<u-tabs :list="tabList" :current="tabcurrent" @change="change"></u-tabs>
<view class="Healthknowledge" v-if="informationCategoryVOList.length>0">
<view class="Healthknowledge" v-if="informationCategoryVOList">
<!-- <view class="title">
健康常识
</view> -->
@ -37,7 +37,7 @@
}],
pageNum: 1,
pageSize: 10,
informationCategoryVOList: [],
informationCategoryVOList: null,
total: 0,
scrollTop: 0,
};
@ -56,10 +56,12 @@
},
getHeathHousing() {
getHeathHousingList(this.pageNum, this.pageSize).then(res => {
res.rows.forEach(e => {
e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl
})
this.informationCategoryVOList = res.rows
if (res.rows.length > 0) {
res.rows.forEach(e => {
e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl
})
this.informationCategoryVOList = res.rows
}
this.total = res.total
})
},

View File

@ -120,7 +120,10 @@
} else {
this.couponstatus = item
}
this.getlist();
selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => {
this.couponlist = res.rows
this.total = res.total
})
},
goshoping() {
uni.navigateTo({