From 81c85b5e3521a0edb2cf0672c24892c6c3842184 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Fri, 5 Jan 2024 10:57:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=97=B6=E6=94=AF=E6=8C=81h5?= =?UTF-8?q?=E5=92=8Cweixin=E7=9A=84=E5=AF=BC=E8=88=AA=E6=A0=8F=E6=B8=90?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.config.ts | 1 + src/pages.json | 29 +++++- src/pages/index/index.vue | 3 + src/pages/throughout/index.vue | 26 +++++- src/pages/throughout2/index.vue | 160 ++++++++++++++++++++++++++++++++ uni-pages.d.ts | 15 +-- 6 files changed, 222 insertions(+), 12 deletions(-) create mode 100644 src/pages/throughout2/index.vue diff --git a/pages.config.ts b/pages.config.ts index f73172d..7fec6d8 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -6,6 +6,7 @@ export default defineUniPages({ navigationBarTitleText: 'vue3-uniapp', navigationBarBackgroundColor: '#f8f8f8', navigationBarTextStyle: 'black', + backgroundColor: '#FFFFFF', }, easycom: { autoscan: true, diff --git a/src/pages.json b/src/pages.json index b12c80d..a038f6e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -3,7 +3,8 @@ "navigationStyle": "default", "navigationBarTitleText": "vue3-uniapp", "navigationBarBackgroundColor": "#f8f8f8", - "navigationBarTextStyle": "black" + "navigationBarTextStyle": "black", + "backgroundColor": "#FFFFFF" }, "easycom": { "autoscan": true, @@ -62,7 +63,31 @@ "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏", "enablePullDownRefresh": true, "backgroundColor": "#23c09c", - "navigationStyle": "custom" + "app-plus": { + "titleNView": { + "type": "transparent" + } + }, + "mp-weixin": { + "navigationStyle": "custom" + } + } + }, + { + "path": "pages/throughout2/index", + "type": "page", + "style": { + "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏", + "enablePullDownRefresh": false, + "backgroundColor": "#23c09c", + "app-plus": { + "titleNView": { + "type": "transparent" + } + }, + "mp-weixin": { + "navigationStyle": "custom" + } } } ], diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 96541ab..106acd7 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -19,6 +19,9 @@ Demo Count: {{ countStore.count }} + + 这是一个基础卡片示例,内容较少,此示例展示了一个没有任何属性不带阴影的卡片。 + diff --git a/src/pages/throughout/index.vue b/src/pages/throughout/index.vue index 6776d5e..b4d617f 100644 --- a/src/pages/throughout/index.vue +++ b/src/pages/throughout/index.vue @@ -4,16 +4,24 @@ navigationBarTitleText: '通屏+下拉刷新+自定义导航栏', enablePullDownRefresh: true, backgroundColor: '#23c09c', // 这个背景色要与页面的.top-section的背景图差不多,这样下拉刷新看起来才比较协调 - navigationStyle: 'custom', + 'app-plus': { + titleNView: { + type: 'transparent', + }, + }, + 'mp-weixin': { + navigationStyle: 'custom', + }, }, }