!133 fix bug category里右侧列表到底刷新功能

Merge pull request !133 from 壁虎在家/master
pull/134/MERGE
芋道源码 2025-01-04 00:42:19 +00:00 committed by Gitee
commit 139ec62e9a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,7 @@
scroll-y
:style="[{ height: pageHeight + 'px' }]"
v-if="state.categoryList?.length"
@scrolltolower="handleScrollToLower"
>
<image
v-if="state.categoryList[state.activeMenu].picUrl"
@ -61,7 +62,7 @@
import sheep from '@/sheep';
import CategoryApi from '@/sheep/api/product/category';
import SpuApi from '@/sheep/api/product/spu';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import { onLoad } from '@dcloudio/uni-app';
import { computed, reactive } from 'vue';
import _ from 'lodash-es';
import { handleTree } from '@/sheep/util';
@ -140,9 +141,9 @@
onMenu(foundCategory ? state.categoryList.indexOf(foundCategory) : 0);
});
onReachBottom(() => {
function handleScrollToLower() {
loadMore();
});
};
</script>
<style lang="scss" scoped>