From 7ab37fcf4daea3545169bd648699d1640b045d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=9D=E5=86=9B=E5=8D=8E?= Date: Wed, 5 Mar 2025 18:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=95=86=E5=93=81=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 +- pages/classify/classify.vue | 188 +++++++++++++++++++++++++- pages/classify/style.scss | 250 +++++++++++++++++++++++++++++++++++ pages/index/index.vue | 165 +++++++++++++++++++---- pages/index/style.scss | 232 +++++++++++++++++++++++++++++--- static/Intersect@2x.png | Bin 0 -> 875306 bytes static/Mask.png | Bin 0 -> 355712 bytes static/act.png | Bin 0 -> 683 bytes static/image@2x.png | Bin 0 -> 1415489 bytes static/index/img.png | Bin 222692 -> 0 bytes static/index/scroll_img.png | Bin 1102662 -> 0 bytes static/index/shopimg.png | Bin 407996 -> 0 bytes static/index/直播炒菜@2x.png | Bin 877628 -> 0 bytes 13 files changed, 786 insertions(+), 52 deletions(-) create mode 100644 static/Intersect@2x.png create mode 100644 static/Mask.png create mode 100644 static/act.png create mode 100644 static/image@2x.png delete mode 100644 static/index/img.png delete mode 100644 static/index/scroll_img.png delete mode 100644 static/index/shopimg.png delete mode 100644 static/index/直播炒菜@2x.png diff --git a/pages.json b/pages.json index d9bf482..6c14a7a 100644 --- a/pages.json +++ b/pages.json @@ -13,7 +13,8 @@ "style": { "navigationBarTitleText": "分类", "navigationBarBackgroundColor": "#f2f5f7", - "enablePullDownRefresh": true + "enablePullDownRefresh": true, + "navigationStyle": "custom" } }, { diff --git a/pages/classify/classify.vue b/pages/classify/classify.vue index 06a29c0..c23a7ab 100644 --- a/pages/classify/classify.vue +++ b/pages/classify/classify.vue @@ -1,6 +1,177 @@ @@ -11,9 +182,12 @@ import { storeToRefs } from 'pinia';//实现解构付值 import { onLoad,onShow,onPullDownRefresh,onReachBottom } from "@dcloudio/uni-app" const counterStore = useCounterStore(); // 使用 Store //使用pinia:storeToRefs方法包裹(保持响应式更新,不使用视图无法更新) -// const { count,doubleCount } = storeToRefs(counterStore); +//const { count,doubleCount } = storeToRefs(counterStore); +const statusHeight = ref(uni.getMenuButtonBoundingClientRect()['height']) +const headerHeight = ref(uni.getSystemInfoSync()['statusBarHeight']) +const ScrollLeft = ref(0); -// 使用 uni.onLoad 监听页面加载 +//使用 uni.onLoad 监听页面加载 onLoad((options) => { }); @@ -21,11 +195,11 @@ onShow(() => { }); onPullDownRefresh(()=>{ - -}) + uni.stopPullDownRefresh(); +}); onReachBottom(()=>{ -}) +});