Переглянути джерело

增加了对暗色的基础适配

wangcy 4 місяців тому
батько
коміт
41b4ab5524

+ 15 - 1
build-profile.json5

@@ -1,6 +1,20 @@
 {
   "app": {
-    "signingConfigs": [],
+    "signingConfigs": [
+      {
+        "name": "default",
+        "type": "HarmonyOS",
+        "material": {
+          "certpath": "C:\\Users\\Administrator\\.ohos\\config\\default_ytbasic_U31XuDPtb68j6lsI89aCFh5LY2iR4fSODHkM_PBBNnM=.cer",
+          "storePassword": "0000001BC9291BB592310C241E945808261C31C3A6946A09B365A2B4B1F0F760E156783F6348664C46139C",
+          "keyAlias": "debugKey",
+          "keyPassword": "0000001B98F01CD13FA86F921D31D85D05535499FAC36FC8ABB95C047E71DE3E46D684E0A045F1E851AFA3",
+          "profile": "C:\\Users\\Administrator\\.ohos\\config\\default_ytbasic_U31XuDPtb68j6lsI89aCFh5LY2iR4fSODHkM_PBBNnM=.p7b",
+          "signAlg": "SHA256withECDSA",
+          "storeFile": "C:\\Users\\Administrator\\.ohos\\config\\default_ytbasic_U31XuDPtb68j6lsI89aCFh5LY2iR4fSODHkM_PBBNnM=.p12"
+        }
+      }
+    ],
     "products": [
       {
         "name": "default",

+ 1 - 0
features/user/src/main/ets/components/LoginInput.ets

@@ -24,6 +24,7 @@ export struct LoginInput {
         .fontSize(12)
         .border({ width: { bottom: 1 }, color: $r('[basic].color.main_na_color') })
         .textAlign(TextAlign.Start)
+        .fontColor(Color.Black)
       TextInput({ placeholder: this.item?.placeHolder, text: $$this.inputData })
         .layoutWeight(1)
         .type(InputType.PhoneNumber)

+ 2 - 0
features/user/src/main/ets/pages/AboutUS.ets

@@ -113,6 +113,8 @@ export struct AboutUS {
 
     }
     .padding({ bottom: this.safeBottom })
+    .height('100%')
+    .backgroundColor(Color.White)
 
   }
 }

+ 2 - 0
features/user/src/main/ets/pages/LoginPage.ets

@@ -68,6 +68,7 @@ struct LoginPage {
       Text('使用电话号码访问')
         .fontSize($r('[basic].float.page_text_font_size_10'))
         .margin({ bottom: 39 })
+        .fontColor(Color.Black)
 
       LoginInput({ item: this.inputPhoneNumberType, inputData: this.phoneNumber, needCode: false })
       LoginInput({ item: this.inputCaptchaType, inputData: this.Captcha, phoneNumber: this.phoneNumber })
@@ -133,6 +134,7 @@ struct LoginPage {
       bottom: this.safeBottom
     })
     .alignItems(HorizontalAlign.Start)
+    .height('100%')
   }
 }
 

+ 2 - 0
features/user/src/main/ets/pages/SuggestionPage.ets

@@ -132,6 +132,8 @@ struct SuggestionPage {
 
     }
     .padding({ bottom: this.safeBottom })
+    .height('100%')
+    .backgroundColor(Color.White)
 
   }
 }

+ 1 - 0
products/entry/src/main/ets/pages/Index.ets

@@ -81,6 +81,7 @@ struct Index {
       }
       .width('100%')
       .height('100%')
+      .backgroundColor(Color.White)
 
     }
     .mode(NavigationMode.Stack)

+ 3 - 3
products/entry/src/main/ets/views/Mine.ets

@@ -8,9 +8,9 @@ export struct Mine {
     {
       text: '意见反馈',
       click: () => {
-        yTRouter.router2SuggestionPage()
-        if (this.userInfo.checkLogin()) {
 
+        if (this.userInfo.checkLogin()) {
+          yTRouter.router2SuggestionPage()
         } else {
           yTRouter.router2LoginPage()
         }
@@ -50,8 +50,8 @@ export struct Mine {
               .margin({ right: 9 })
           } else {
             Image($r('[user].media.app_icon'))
-              .width(50)
               .height(40)
+              .aspectRatio(1)
               .margin({ right: 9 })
           }