Browse Source

feat(cert): 新增证书启用功能并优化自动签名页面

- 新增证书启用页面和相关功能- 重构自动签名页面,优化用户体验
- 添加服务描述页面- 修复部分页面跳转和显示问题
徐勤民 7 tháng trước cách đây
mục cha
commit
3a34fc48b8
1 tập tin đã thay đổi với 11 bổ sung8 xóa
  1. 11 8
      src/main/ets/view/SafeView.ets

+ 11 - 8
src/main/ets/view/SafeView.ets

@@ -70,15 +70,18 @@ export struct SafeView {
           Row() {
             Image($r("app.media.base_back"))
               .height(15)
-              .objectFit(ImageFit.Contain)
-              .onClick(() => {
-                if (this.onBackEvent && !this.hideBack) {
-                  this.onBackEvent()
-                } else if (this.pageInfos) {
-                  this.pageInfos.pop()
-                }
-              }).visibility(!this.hideBack ? Visibility.Visible : Visibility.None)
+              .objectFit(ImageFit.Contain).visibility(!this.hideBack ? Visibility.Visible : Visibility.None)
           }.width(110)
+          .onClick(() => {
+            if (this.hideBack) {
+              return
+            }
+            if (this.onBackEvent && !this.hideBack) {
+              this.onBackEvent()
+            } else if (this.pageInfos) {
+              this.pageInfos.pop()
+            }
+          })
 
           Text(this.titleText ?? '')
             .maxLines(1)