From da1f720e37d9903e251d5221ffcd233b52e7d8ae Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Sat, 26 Oct 2024 11:33:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8D=87=E7=BA=A7=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=87=E7=BA=A7=E4=B8=AD=E5=BF=83=E5=9C=A8?= =?UTF-8?q?=204.31=20=E4=B8=8A=E7=9A=84=E8=A1=A8=E7=8E=B0=E3=80=81?= =?UTF-8?q?=E5=9C=A8=E6=9C=89=E9=9A=90=E7=A7=81=E5=BC=B9=E7=AA=97=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E8=A1=A8=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabBar/component.uvue | 16 ++++++++++++++-- uni_modules/uni-upgrade-center-app/changelog.md | 2 ++ .../uni-upgrade-center-app.uvue | 11 +++++++++++ uni_modules/uni-upgrade-center-app/package.json | 8 +++++--- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue index 984a9a94..c9fb5906 100644 --- a/pages/tabBar/component.uvue +++ b/pages/tabBar/component.uvue @@ -113,7 +113,19 @@ // #endif onReady() { // #ifdef UNI-APP-X && APP - checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance) + uni.getPrivacySetting({ + success(res) { + if (res.needAuthorization) { + uni.onPrivacyAuthorizationChange((res) => { + if (!res.needAuthorization) { + checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance) + } + }) + } else { + checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance) + } + } + }) // #endif }, onShow() { @@ -132,4 +144,4 @@ .item { margin-bottom: 12px; } - + diff --git a/uni_modules/uni-upgrade-center-app/changelog.md b/uni_modules/uni-upgrade-center-app/changelog.md index 599c637c..2b7e5851 100644 --- a/uni_modules/uni-upgrade-center-app/changelog.md +++ b/uni_modules/uni-upgrade-center-app/changelog.md @@ -1,3 +1,5 @@ +## 0.8.4(2024-10-26) +- 修复 uni-app x 项目升级到 4.31 alpha 后中间有空隙的Bug ## 0.8.3(2024-07-31) - 修复 部分类型报错 ## 0.8.2(2024-07-15) diff --git a/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue b/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue index defda473..76b1ffe5 100644 --- a/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue +++ b/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue @@ -8,6 +8,8 @@ src="/uni_modules/uni-upgrade-center-app/static/app/bg_top.png"> + + {{subTitle}} @@ -372,6 +374,15 @@ border-bottom-style: solid; } + .content-space { + width: 100%; + height: 50px; + background-color: #fff; + position: absolute; + top: 140px; + z-index: -1; + } + .content-top-image { width: 100%; position: relative; diff --git a/uni_modules/uni-upgrade-center-app/package.json b/uni_modules/uni-upgrade-center-app/package.json index 4542246b..3c912ad8 100644 --- a/uni_modules/uni-upgrade-center-app/package.json +++ b/uni_modules/uni-upgrade-center-app/package.json @@ -1,7 +1,7 @@ { "id": "uni-upgrade-center-app", "displayName": "升级中心 uni-upgrade-center - App", - "version": "0.8.3", + "version": "0.8.4", "description": "uni升级中心 - 客户端检查更新", "keywords": [ "uniCloud", @@ -47,8 +47,10 @@ }, "client": { "App": { - "app-vue": "y", - "app-nvue": "y" + "app-vue": "y", + "app-nvue": "y", + "app-harmony": "u", + "app-uvue": "y" }, "H5-mobile": { "Safari": "n", -- GitLab