You need to sign in or sign up before continuing.
提交 865e2664 编写于 作者: D DCloud_LXH

feat: update upgrade-center 0.9.3

上级 3513012a
## 0.9.3(2024-12-23)
- 修复 升级中心在大屏上的显示效果
## 0.9.2(2024-11-06)
- 更新 部分 ts 类型
## 0.9.1(2024-11-01)
......
{
"id": "uni-upgrade-center-app",
"displayName": "升级中心 uni-upgrade-center - App",
"version": "0.9.2",
"version": "0.9.3",
"description": "uni升级中心 - 客户端检查更新",
"keywords": [
"uniCloud",
......
......@@ -137,7 +137,7 @@
cancelNotificationProgress()
}
},
onLoad(onLoadOptions: OnLoadOptions) {
onLoad(onLoadOptions: OnLoadOptions) {
const local_storage_key: string | null = onLoadOptions['local_storage_key']
if (local_storage_key == null) {
console.error('local_storage_key为空,请检查后重试')
......@@ -151,16 +151,16 @@
this.closePopup()
return;
};
this.show(JSON.parse<UniUpgradeCenterResult>(JSON.stringify(localPackageInfo)) as UniUpgradeCenterResult)
},
onBackPress(options : OnBackPressOptions) : boolean | null {
if (this.is_mandatory) return true
if (!this.needNotificationProgress) {
if (!this.needNotificationProgress) {
if (downloadTask !== null) {
downloadTask!.abort()
downloadTask!.abort()
}
}
}
return false
},
methods: {
......@@ -390,17 +390,17 @@
.content-space {
width: 100%;
height: 50px;
height: 120px;
background-color: #fff;
position: absolute;
top: 140px;
top: 30%;
z-index: -1;
}
.content-top-image {
width: 100%;
position: relative;
bottom: -18px;
bottom: -10%;
}
.content-top-text {
......@@ -409,7 +409,7 @@
color: #F8F8FA;
position: absolute;
width: 65%;
top: 77.5px;
top: 50%;
left: 25px;
z-index: 1;
}
......@@ -482,8 +482,9 @@
height: 35px;
z-index: 1000;
position: relative;
bottom: -25px;
left: 132px;
bottom: -30%;
left: 50%;
margin-left: -17px;
}
.content-button {
......@@ -507,4 +508,4 @@
flex-direction: column;
align-items: center;
}
</style>
</style>
......@@ -116,7 +116,7 @@ export default {
downLoadBtnTextiOS: '立即跳转更新',
downLoadBtnText: '立即下载更新',
downLoadingText: '安装包下载中,请稍后',
// #ifdef APP-PLUS
shown: true,
// #endif
......@@ -138,7 +138,7 @@ export default {
uni.navigateBack();
return;
}
this.setLocalPackageInfo(localPackageInfo)
},
onBackPress() {
......@@ -202,7 +202,7 @@ export default {
return;
}
}
Object.assign(this, localPackageInfo);
this.checkLocalStoragePackage();
},
......@@ -256,7 +256,7 @@ export default {
// 包已经下载完毕,稍后安装,将包保存在本地
await this.saveFile(this.tempFilePath, this.version);
}
// #ifdef APP-PLUS
uni.navigateBack();
// #endif
......@@ -579,12 +579,12 @@ page {
}
.content-body-version {
padding-left: 10px;
padding-left: 20rpx;
color: #fff;
font-size: 10px;
margin-left: 5px;
padding: 2px 4px;
border-radius: 10px;
font-size: 20rpx;
margin-left: 10rpx;
padding: 4rpx 8rpx;
border-radius: 20rpx;
background: #50aefd;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册