Parcourir la source

更新日志改成bindSheet显示

onecold il y a 1 an
Parent
commit
8a8c3f8bf2
3 fichiers modifiés avec 25 ajouts et 24 suppressions
  1. 1 1
      AppScope/app.json5
  2. 6 6
      build-profile.json5
  3. 18 17
      entry/src/main/ets/dialog/OnlineUpdateLog.ets

+ 1 - 1
AppScope/app.json5

@@ -2,7 +2,7 @@
   "app": {
     "bundleName": "com.xgplayer.ttmusic.hm",
     "vendor": "example",
-    "versionCode": 20250721,
+    "versionCode": 20250728,
     "versionName": "1.4.8",
     "icon": "$media:app_icon",
     "label": "$string:app_name",

+ 6 - 6
build-profile.json5

@@ -28,13 +28,13 @@
         "name": "default",
         "type": "HarmonyOS",
         "material": {
-          "certpath": "C:\\Users\\xjy08\\.ohos\\config\\default_com.xgplayer.ttmusic.hm4_li00v0NJ2KHEZXa_MEhSBo4Q7SMa2KHpzKM8lnBZT1Y=.cer",
-          "keyAlias": "debugKey",
-          "keyPassword": "0000001A08FD214B84C7771F6C7B29721FE92EFBF765BC89D5A5F9E476EE3FD960B46CF8E2AF0A2751D3",
-          "profile": "C:\\Users\\xjy08\\.ohos\\config\\default_com.xgplayer.ttmusic.hm4_li00v0NJ2KHEZXa_MEhSBo4Q7SMa2KHpzKM8lnBZT1Y=.p7b",
+          "storeFile": "D:/signapk/harmony/qimeng.p12",
+          "storePassword": "00000018A3D3FBBEB5EA0BA9438C36B708624CDB49110D2462C473D9A4111F5E82195A1777A4F4B6",
+          "keyAlias": "qimeng",
+          "keyPassword": "00000018A4DC1320416DBDB398C49D093BE522D91611B80161AB8D84BE287239496457749A32A922",
           "signAlg": "SHA256withECDSA",
-          "storeFile": "C:\\Users\\xjy08\\.ohos\\config\\default_com.xgplayer.ttmusic.hm4_li00v0NJ2KHEZXa_MEhSBo4Q7SMa2KHpzKM8lnBZT1Y=.p12",
-          "storePassword": "0000001AB99C2667C882F9C3DD3A427E7C96F52A436EAD6BFE209D1FEC0F300FA79CC4AD3CD910C57613"
+          "profile": "D:/signapk/harmony/qimeng/天天静听Release.p7b",
+          "certpath": "D:/signapk/harmony/qimeng.cer"
         }
       }
     ]

+ 18 - 17
entry/src/main/ets/dialog/OnlineUpdateLog.ets

@@ -133,18 +133,18 @@ export default struct OnlineUpdateLog {
 
       // 版本信息和进度条
       Column() {
-        Row() {
-          Text('当前版本:')
-            .fontSize(15)
-            .fontColor(this.isDarkMode ? '#E0E0E0' : Color.Gray)
-          
-          Text(`v${this.currentVersion}`)
-            .fontSize(15)
-            .fontColor(this.themeColor)
-            .fontWeight(FontWeight.Medium)
-        }
-        .alignSelf(ItemAlign.Start)
-        .margin({ bottom: 8 })
+        // Row() {
+        //   Text('当前版本:')
+        //     .fontSize(15)
+        //     .fontColor(this.isDarkMode ? '#E0E0E0' : Color.Gray)
+        //
+        //   Text(`v${this.currentVersion}`)
+        //     .fontSize(15)
+        //     .fontColor(this.themeColor)
+        //     .fontWeight(FontWeight.Medium)
+        // }
+        // .alignSelf(ItemAlign.Start)
+        // .margin({ bottom: 8 })
 
         // 进度条 - 使用主题色
         if (this.progressVisible && this.progressValue < 100) {
@@ -246,7 +246,8 @@ export default struct OnlineUpdateLog {
         })
           .width('100%')
           .height(350)
-          .borderRadius(8)
+          .borderRadius(12)
+          .layoutWeight(1)
           .backgroundColor(this.isDarkMode ? '#2C2C2C' : Color.White)
           // .border({
           //   width: 1,
@@ -340,10 +341,10 @@ export default struct OnlineUpdateLog {
       .padding({ left: 20, right: 20, top: 16, bottom: 16 })
       .backgroundColor(this.isDarkMode ? '#3A3A3A' : '#F8F9FA')
       .borderRadius({
-        topLeft: 0,
-        topRight: 0,
-        bottomLeft: 12,
-        bottomRight: 12
+        topLeft: 15,
+        topRight:15,
+        bottomLeft: 15,
+        bottomRight: 15
       })
     }
     .backgroundColor(this.isDarkMode ? '#2C2C2C' : Color.White)