Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
865e2664
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6373
Star
108
Fork
184
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
24
列表
看板
标记
里程碑
合并请求
2
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
24
Issue
24
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
You need to sign in or sign up before continuing.
提交
865e2664
编写于
12月 23, 2024
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: update upgrade-center 0.9.3
上级
3513012a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
25 addition
and
22 deletion
+25
-22
uni_modules/uni-upgrade-center-app/changelog.md
uni_modules/uni-upgrade-center-app/changelog.md
+2
-0
uni_modules/uni-upgrade-center-app/package.json
uni_modules/uni-upgrade-center-app/package.json
+1
-1
uni_modules/uni-upgrade-center-app/pages/uni-app-x/upgrade-popup.uvue
...uni-upgrade-center-app/pages/uni-app-x/upgrade-popup.uvue
+13
-12
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
+9
-9
未找到文件。
uni_modules/uni-upgrade-center-app/changelog.md
浏览文件 @
865e2664
## 0.9.3(2024-12-23)
-
修复 升级中心在大屏上的显示效果
## 0.9.2(2024-11-06)
-
更新 部分 ts 类型
## 0.9.1(2024-11-01)
...
...
uni_modules/uni-upgrade-center-app/package.json
浏览文件 @
865e2664
{
"id"
:
"uni-upgrade-center-app"
,
"displayName"
:
"升级中心 uni-upgrade-center - App"
,
"version"
:
"0.9.
2
"
,
"version"
:
"0.9.
3
"
,
"description"
:
"uni升级中心 - 客户端检查更新"
,
"keywords"
:
[
"uniCloud"
,
...
...
uni_modules/uni-upgrade-center-app/pages/uni-app-x/upgrade-popup.uvue
浏览文件 @
865e2664
...
...
@@ -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:
5
0px;
height:
12
0px;
background-color: #fff;
position: absolute;
top:
140px
;
top:
30%
;
z-index: -1;
}
.content-top-image {
width: 100%;
position: relative;
bottom: -1
8px
;
bottom: -1
0%
;
}
.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>
uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
浏览文件 @
865e2664
...
...
@@ -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
:
10
px
;
padding-left
:
20
r
px
;
color
:
#fff
;
font-size
:
10
px
;
margin-left
:
5
px
;
padding
:
2px
4
px
;
border-radius
:
10
px
;
font-size
:
20
r
px
;
margin-left
:
10
r
px
;
padding
:
4
rpx
8
r
px
;
border-radius
:
20
r
px
;
background
:
#50aefd
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录