YuJing 4 týždňov pred
rodič
commit
758bb4b77f

+ 3 - 3
build-profile.json5

@@ -5,11 +5,11 @@
         "name": "default",
         "material": {
           "storeFile": "sign/basic.p12",
-          "storePassword": "00000018037629724E3117C3F352DE651A3DA377F66B3425918FC935209E426802F107E5600A05AD",
+          "storePassword": "00000018FC016AA1E3ECD64C31A0649B5FD9D4AD724F5263B494BAA60F8C9C1EAA381608E8BF043B",
           "keyAlias": "yt112233",
-          "keyPassword": "000000189B8E05080F3748E674C733C8454FB661510188FD202AA49D0D43F39F8212FF3BA5AB3890",
+          "keyPassword": "00000018593106C120DED77AFB34294D94BF19C3E7EB8A44859B9F6702C56BCC918FC9F6E04BBE78",
           "signAlg": "SHA256withECDSA",
-          "profile": "sign/朝暮日记调试证书Debug.p7b",
+          "profile": "sign/朝暮日记调试证书DeBug.p7b",
           "certpath": "sign/调试证书.cer"
         }
       }

+ 2 - 0
features/feature/src/main/ets/components/DiaryCalendarPicker.ets

@@ -110,6 +110,8 @@ export struct DiaryCalendarPicker {
       Row() {
         ForEach(WEEK_MAP, (item: string, index: number) => {
           Text(item)
+            .width(32)
+            .textAlign(TextAlign.Center)
         })
       }
       .width("100%")

+ 22 - 21
features/feature/src/main/ets/utils/DateUtils.ets

@@ -3,25 +3,6 @@ import { DateInfo } from "../models/DateInfo";
 // 星期中文映射表
 export const WEEK_MAP = ['日', '一', '二', '三', '四', '五', '六'];
 
-/**
- * 创建一个日期信息对象
- * @param date 日期对象
- * @returns DateInfo 对象
- */
-function createDateInfo(date: Date): DateInfo {
-  const year = date.getFullYear();
-  const month = date.getMonth() + 1;
-  const day = date.getDate();
-  const week = WEEK_MAP[date.getDay()];
-
-  return {
-    year: year,
-    month: month,
-    day: day,
-    week: week,
-    id: new Date(date)
-  };
-}
 
 
 export class DateUtils {
@@ -86,7 +67,7 @@ export class DateUtils {
 
     for (let i = 0; i < count; i++) {
       // 添加日期信息到数组
-      dateArray.push(createDateInfo(currentDate));
+      dateArray.push(DateUtils.createDateInfo(currentDate));
 
       // 日期减1天(向前)
       currentDate.setDate(currentDate.getDate() - 1);
@@ -125,7 +106,7 @@ export class DateUtils {
       }
 
       // 添加日期信息到数组
-      dateArray.push(createDateInfo(currentDate));
+      dateArray.push(DateUtils.createDateInfo(currentDate));
 
       // 日期加1天(向后)
       currentDate.setDate(currentDate.getDate() + 1);
@@ -133,5 +114,25 @@ export class DateUtils {
 
     return dateArray;
   }
+
+  /**
+   * 创建一个日期信息对象
+   * @param date 日期对象
+   * @returns DateInfo 对象
+   */
+  static createDateInfo(date: Date): DateInfo {
+    const year = date.getFullYear();
+    const month = date.getMonth() + 1;
+    const day = date.getDate();
+    const week = WEEK_MAP[date.getDay()];
+
+    return {
+      year: year,
+      month: month,
+      day: day,
+      week: week,
+      id: new Date(date)
+    };
+  }
 }
 

BIN
sign/朝暮日记发布证书Release.p7b