From 94c0feec432a94f1282f0b3831065afa4e3f0f89 Mon Sep 17 00:00:00 2001 From: jqtmviyu Date: Mon, 21 Apr 2025 13:34:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E5=8D=A0=E4=BD=8D=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 6 ++++++ src/pages/goods/goods.vue | 7 +++++++ src/pages/index/index.vue | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/pages/goods/goods.vue diff --git a/src/pages.json b/src/pages.json index e06bb25..e60fb95 100644 --- a/src/pages.json +++ b/src/pages.json @@ -53,6 +53,12 @@ "style": { "navigationBarTitleText": "hot" } + }, + { + "path": "pages/goods/goods", + "style": { + "navigationBarTitleText": "goods" + } } ], // 全局样式 diff --git a/src/pages/goods/goods.vue b/src/pages/goods/goods.vue new file mode 100644 index 0000000..3099ec7 --- /dev/null +++ b/src/pages/goods/goods.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 549d9e7..4a425e4 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -47,10 +47,10 @@ const getHotList = async () => { hotList.value = res.result } -// 猜你喜欢 实例 +// 猜你喜欢滚动到底加载更多 +// 获取实例 const guessRef = ref() - -// 滚动到底部调用子组件的方法 +// 调用子组件的方法 const onScrollToLower = () => { guessRef.value?.getMore() }