From f5cac7bd49fb81027ffe9773e875322fac8df0e2 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Sat, 22 Jul 2023 21:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=9A=E8=BF=87scroll?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=AE=9E=E7=8E=B0=E5=90=B8=E9=A1=B6=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E7=A4=BA=E4=BE=8B=20=E6=90=9C=E7=B4=A2=E6=A0=8F?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E8=B0=83=E6=95=B4=E4=B8=BA=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=93=8D=E4=BD=9Cstyle=E6=9B=B4=E6=96=B0Node?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 20 +++ pages/tabBar/template.uvue | 19 ++- .../scroll-fold-nav2/scroll-fold-nav2.uvue | 134 ++++++++++++++++++ .../template/scroll-sticky/scroll-sticky.uvue | 115 +++++++++++++++ .../scroll-sticky2/scroll-sticky2.uvue | 115 +++++++++++++++ 5 files changed, 400 insertions(+), 3 deletions(-) create mode 100644 pages/template/scroll-fold-nav2/scroll-fold-nav2.uvue create mode 100644 pages/template/scroll-sticky/scroll-sticky.uvue create mode 100644 pages/template/scroll-sticky2/scroll-sticky2.uvue diff --git a/pages.json b/pages.json index c202c6c2..9dc1f8da 100644 --- a/pages.json +++ b/pages.json @@ -653,6 +653,18 @@ "navigationStyle": "custom" } }, + { + "path": "pages/template/scroll-sticky/scroll-sticky", + "style": { + "navigationBarTitleText": "滚动吸顶" + } + }, + { + "path": "pages/template/scroll-sticky2/scroll-sticky2", + "style": { + "navigationBarTitleText": "滚动吸顶2" + } + }, { "path": "pages/API/get-battery-info/get-battery-info", "style": { @@ -667,6 +679,14 @@ "enablePullDownRefresh": false } } + ,{ + "path" : "pages/template/scroll-fold-nav2/scroll-fold-nav2", + "style" : + { + "navigationStyle": "custom" + } + + } ], "globalStyle": { "pageOrientation": "portrait", diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 4f1f5c2b..ae500dd1 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -51,6 +51,13 @@ name: "随滚动折叠的导航栏", open: false, pages: [] as Page[] + }, + { + id: "scroll-fold-nav2", + url: "scroll-fold-nav2", + name: "随滚动折叠的导航栏2", + open: false, + pages: [] as Page[] }, { id: "swiper-list", url: "swiper-list", @@ -90,11 +97,17 @@ pages: [] as Page[] }, { - id: "sticky", - url: "sticky", + id: "scroll-sticky", + url: "scroll-sticky", name: "吸顶", open: false, - enable: false, + pages: [] as Page[] + }, + { + id: "scroll-sticky2", + url: "scroll-sticky2", + name: "吸顶2", + open: false, pages: [] as Page[] }, { diff --git a/pages/template/scroll-fold-nav2/scroll-fold-nav2.uvue b/pages/template/scroll-fold-nav2/scroll-fold-nav2.uvue new file mode 100644 index 00000000..0b18da82 --- /dev/null +++ b/pages/template/scroll-fold-nav2/scroll-fold-nav2.uvue @@ -0,0 +1,134 @@ + + + + + \ No newline at end of file diff --git a/pages/template/scroll-sticky/scroll-sticky.uvue b/pages/template/scroll-sticky/scroll-sticky.uvue new file mode 100644 index 00000000..a623d6f3 --- /dev/null +++ b/pages/template/scroll-sticky/scroll-sticky.uvue @@ -0,0 +1,115 @@ + + + + + \ No newline at end of file diff --git a/pages/template/scroll-sticky2/scroll-sticky2.uvue b/pages/template/scroll-sticky2/scroll-sticky2.uvue new file mode 100644 index 00000000..59ecd386 --- /dev/null +++ b/pages/template/scroll-sticky2/scroll-sticky2.uvue @@ -0,0 +1,115 @@ + + + + + \ No newline at end of file -- GitLab