提交 da1f720e 编写于 作者: D DCloud_LXH

feat(升级中心): 优化升级中心在 4.31 上的表现、在有隐私弹窗时的表现

上级 bedcbd9d
...@@ -113,7 +113,19 @@ ...@@ -113,7 +113,19 @@
// #endif // #endif
onReady() { onReady() {
// #ifdef UNI-APP-X && APP // #ifdef UNI-APP-X && APP
uni.getPrivacySetting({
success(res) {
if (res.needAuthorization) {
uni.onPrivacyAuthorizationChange((res) => {
if (!res.needAuthorization) {
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance) checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
}
})
} else {
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
}
}
})
// #endif // #endif
}, },
onShow() { onShow() {
......
## 0.8.4(2024-10-26)
- 修复 uni-app x 项目升级到 4.31 alpha 后中间有空隙的Bug
## 0.8.3(2024-07-31) ## 0.8.3(2024-07-31)
- 修复 部分类型报错 - 修复 部分类型报错
## 0.8.2(2024-07-15) ## 0.8.2(2024-07-15)
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
src="/uni_modules/uni-upgrade-center-app/static/app/bg_top.png"></image> src="/uni_modules/uni-upgrade-center-app/static/app/bg_top.png"></image>
</view> </view>
<view class="content-space"></view>
<view class="content-body"> <view class="content-body">
<view class="content-body-title"> <view class="content-body-title">
<text class="text title">{{subTitle}}</text> <text class="text title">{{subTitle}}</text>
...@@ -372,6 +374,15 @@ ...@@ -372,6 +374,15 @@
border-bottom-style: solid; border-bottom-style: solid;
} }
.content-space {
width: 100%;
height: 50px;
background-color: #fff;
position: absolute;
top: 140px;
z-index: -1;
}
.content-top-image { .content-top-image {
width: 100%; width: 100%;
position: relative; position: relative;
......
{ {
"id": "uni-upgrade-center-app", "id": "uni-upgrade-center-app",
"displayName": "升级中心 uni-upgrade-center - App", "displayName": "升级中心 uni-upgrade-center - App",
"version": "0.8.3", "version": "0.8.4",
"description": "uni升级中心 - 客户端检查更新", "description": "uni升级中心 - 客户端检查更新",
"keywords": [ "keywords": [
"uniCloud", "uniCloud",
...@@ -48,7 +48,9 @@ ...@@ -48,7 +48,9 @@
"client": { "client": {
"App": { "App": {
"app-vue": "y", "app-vue": "y",
"app-nvue": "y" "app-nvue": "y",
"app-harmony": "u",
"app-uvue": "y"
}, },
"H5-mobile": { "H5-mobile": {
"Safari": "n", "Safari": "n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册