1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-10 20:29:28 +08:00

fix: 修复首页和分类页面显示已经隐藏的分类数据问题

This commit is contained in:
小莫唐尼
2025-06-15 14:58:07 +08:00
parent 051c72b584
commit 8963ba1921
2 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ export default {
loading: 'loading',
queryParams: {
size: 20,
page: 1
page: 1,
fieldSelector: ['spec.hideFromList=false']
},
hasNext: false,
dataList: [],
+6 -6
View File
@@ -23,14 +23,14 @@
<block v-else>
<view class="bg-white pb-24">
<view class="banner bg-white ml-24 mr-24 mt-12 round-3" v-if="bannerList.length !== 0">
<e-swiper
<e-swiper
height="400rpx"
dotPosition="right"
dotPosition="right"
:autoplay="true"
:useDot="false"
:useDot="false"
:list="bannerList"
@on-click="fnOnBannerClick"
/>
@on-click="fnOnBannerClick"
/>
</view>
</view>
<!-- 精品分类 -->
@@ -215,7 +215,7 @@ export default {
this.$httpApi.v2
.getCategoryList({
fieldSelector:['spec.hideFromList==false']
fieldSelector:['spec.hideFromList=false']
})
.then(res => {
this.categoryList = res.items.sort((a, b) => {