diff --git a/components/m-goods-list/base-list.vue b/components/m-goods-list/base-list.vue index a64c302..bae5637 100644 --- a/components/m-goods-list/base-list.vue +++ b/components/m-goods-list/base-list.vue @@ -1,198 +1,276 @@ - diff --git a/pages/tabbar/home/index.vue b/pages/tabbar/home/index.vue index cbeebf5..ea9406e 100644 --- a/pages/tabbar/home/index.vue +++ b/pages/tabbar/home/index.vue @@ -15,6 +15,11 @@ export default { }, }; }, + onReachBottom(){ + // 给子级监听触底加载 + uni.$emit('onReachBottom',true) + }, + onPullDownRefresh() { this.$refs.tpl.init(); diff --git a/pages/tabbar/home/template/tpl_goods.vue b/pages/tabbar/home/template/tpl_goods.vue index 98f6b15..9075aa0 100644 --- a/pages/tabbar/home/template/tpl_goods.vue +++ b/pages/tabbar/home/template/tpl_goods.vue @@ -1,21 +1,38 @@ -