From 0d2ff3d23ed504808241d579946bb1ab45c3b899 Mon Sep 17 00:00:00 2001 From: Ankkaya Date: Fri, 10 May 2024 20:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 5 +- manifest.json | 7 +- pages/index/index.vue | 19 ++- peach/components/p-layout/p-layout.vue | 13 +- peach/index.js | 3 +- peach/platform/index.js | 18 ++- peach/platform/share.js | 181 +++++++++++++++++++++++++ peach/request/index.js | 5 + peach/store/app.js | 4 +- vite.config.js | 1 + 10 files changed, 242 insertions(+), 14 deletions(-) create mode 100644 peach/platform/share.js diff --git a/App.vue b/App.vue index ae82c24..3d43963 100644 --- a/App.vue +++ b/App.vue @@ -3,9 +3,8 @@ import { onLaunch, onShow, onError } from '@dcloudio/uni-app' import { peachInit } from './peach' onLaunch(() => { - // uni.hideTabBar() - - peachInit() + // 隐藏原生导航栏 使用自定义底部导航 + // peachInit() }) onError((err) => { diff --git a/manifest.json b/manifest.json index 8078adf..8dfa423 100644 --- a/manifest.json +++ b/manifest.json @@ -50,9 +50,12 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "", + "appid" : "wx64387dc8bba916ec", + "lazyCodeLoading" : "requiredComponents", "setting" : { - "urlCheck" : false + "urlCheck" : false, + "postcss" : true, + "minified" : true }, "usingComponents" : true }, diff --git a/pages/index/index.vue b/pages/index/index.vue index e420ca9..1299da0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,12 +1,29 @@ diff --git a/peach/components/p-layout/p-layout.vue b/peach/components/p-layout/p-layout.vue index dbe0649..db4f80c 100644 --- a/peach/components/p-layout/p-layout.vue +++ b/peach/components/p-layout/p-layout.vue @@ -39,6 +39,15 @@