From d01edbdfe2a3a2af10a9a8fcaab7956726b8d9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Wed, 19 Oct 2022 11:56:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E6=A5=BC=E5=B1=82?= =?UTF-8?q?=E8=A3=85=E4=BF=AE=E6=96=B0=E5=A2=9E=E7=BB=91=E5=AE=9A=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-goods-list/base-list.vue | 458 +++++++++++++---------- pages/tabbar/home/index.vue | 5 + pages/tabbar/home/template/tpl_goods.vue | 120 +++++- pages/tabbar/home/views.vue | 11 +- 4 files changed, 385 insertions(+), 209 deletions(-) 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 @@ -