添加用户信息编辑功能,增加版本日志功能,改进主题颜色切换效果,添加公告栏,修复已知问题

This commit is contained in:
cc 2025-03-31 21:47:13 +08:00
parent 68d01a83c6
commit a2b228d223
19 changed files with 11916 additions and 88162 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -23061,3 +23061,17 @@ Info: restool resources compile success.
[2025-03-31T20:56:56.640] [DEBUG] debug-file - Ark compile task finished.finished time is 355555518294041 [2025-03-31T20:56:56.640] [DEBUG] debug-file - Ark compile task finished.finished time is 355555518294041
[2025-03-31T21:11:05.943] [DEBUG] debug-file - Ark compile task finished.finished time is 356404854523958 [2025-03-31T21:11:05.943] [DEBUG] debug-file - Ark compile task finished.finished time is 356404854523958
[2025-03-31T21:12:53.888] [DEBUG] debug-file - Ark compile task finished.finished time is 356512803375625 [2025-03-31T21:12:53.888] [DEBUG] debug-file - Ark compile task finished.finished time is 356512803375625
[2025-03-31T21:23:06.235] [DEBUG] debug-file - Ark compile task finished.finished time is 357125173319333
[2025-03-31T21:23:52.247] [DEBUG] debug-file - Ark compile task finished.finished time is 357171187351916
[2025-03-31T21:24:49.409] [DEBUG] debug-file - Ark compile task finished.finished time is 357228351460250
[2025-03-31T21:25:19.935] [DEBUG] debug-file - Ark compile task finished.finished time is 357258878277583
[2025-03-31T21:25:49.611] [DEBUG] debug-file - Ark compile task finished.finished time is 357288555648208
[2025-03-31T21:33:50.160] [DEBUG] debug-file - Ark compile task finished.finished time is 357769123213083
[2025-03-31T21:34:49.207] [DEBUG] debug-file - Ark compile task finished.finished time is 357828171971666
[2025-03-31T21:35:49.959] [DEBUG] debug-file - Ark compile task finished.finished time is 357888926651166
[2025-03-31T21:36:14.735] [DEBUG] debug-file - Ark compile task finished.finished time is 357913703560125
[2025-03-31T21:36:41.824] [DEBUG] debug-file - Ark compile task finished.finished time is 357940793105125
[2025-03-31T21:39:12.513] [DEBUG] debug-file - Ark compile task finished.finished time is 358091488355250
[2025-03-31T21:42:05.783] [DEBUG] debug-file - Ark compile task finished.finished time is 358264765035000
[2025-03-31T21:44:00.883] [DEBUG] debug-file - Ark compile task finished.finished time is 358379869294291
[2025-03-31T21:45:05.586] [DEBUG] debug-file - Ark compile task finished.finished time is 358444574188708

View File

@ -18,20 +18,21 @@
"IS_HVIGORFILE_TYPE_CHECK": false, "IS_HVIGORFILE_TYPE_CHECK": false,
"TASK_TIME": { "TASK_TIME": {
"1043bfc77febe75fafec0c4309faccf1": { "1043bfc77febe75fafec0c4309faccf1": {
"ConfigureCmake": 191500, "ConfigureCmake": 129292,
"PreCheckSyscap": 170792, "PreCheckSyscap": 310583,
"ProcessIntegratedHsp": 920208, "ProcessIntegratedHsp": 846000,
"BuildNativeWithCmake": 180209, "BuildNativeWithCmake": 322417,
"SyscapTransform": 1222042, "SyscapTransform": 1217000,
"BuildNativeWithNinja": 795834, "BuildNativeWithNinja": 583334,
"BuildJS": 1263042 "BuildJS": 1090333,
"CompileArkTS": 914758125,
"PackageHap": 388569166,
"SignHap": 578792,
"CollectDebugSymbol": 1703250,
"assembleHap": 169458
} }
}, },
"TOTAL_TIME": 1834683875, "TOTAL_TIME": 1674071250,
"BUILD_ID": "202503312112520550", "BUILD_ID": "202503312145043260"
"ERROR_MESSAGE": {
"CODE": "00000",
"TIMESTAMP": "1743426773889"
}
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
// 导入日志管理器 - 仅用于获取版本号 // 导入日志管理器 - 仅用于获取版本号
import logManager, { LogCategory, LogEventType } from './logtext'; import logManager, { LogCategory, LogEventType, VersionLogItem } from './logtext';
// 可选的主题颜色 // 可选的主题颜色
export enum ThemeColor { export enum ThemeColor {
@ -32,13 +32,6 @@ export class UserInfoModel {
} }
} }
// 版本日志项模型
export interface VersionLogItem {
version: string; // 版本号,例如 "1.0.0"
date: string; // 发布日期,例如 "2023-10-01"
changes: string[]; // 更新内容列表
}
// 多语言文本集合 // 多语言文本集合
export class TextResources { export class TextResources {
// 通用 // 通用
@ -287,7 +280,7 @@ export class SettingsService {
// 更新主题颜色 // 更新主题颜色
public setThemeColor(color: ThemeColor): void { public setThemeColor(color: ThemeColor): void {
const oldColor = this.settings.themeColor; const oldColor = this.settings.themeColor;
this.settings.themeColor = color this.settings.themeColor = color;
// 记录主题颜色变更 // 记录主题颜色变更
logManager.info(LogCategory.SETTINGS, LogEventType.THEME_CHANGE, color); logManager.info(LogCategory.SETTINGS, LogEventType.THEME_CHANGE, color);

View File

@ -47,10 +47,16 @@ export enum LogEventType {
/** /**
* 版本日志项 * 版本日志项
*/ */
export interface VersionLogItem { export class VersionLogItem {
version: string; // 版本号 version: string = ''; // 版本号
date: string; // 发布日期 date: string = ''; // 发布日期
changes: string[]; // 更新内容列表 changes: string[] = []; // 更新内容列表
constructor(version: string = '', date: string = '', changes: string[] = []) {
this.version = version;
this.date = date;
this.changes = changes;
}
} }
/** /**
@ -144,36 +150,8 @@ export class LogManager {
*/ */
private initVersionLogs(): void { private initVersionLogs(): void {
this.versionLogs = [ this.versionLogs = [
{ new VersionLogItem("1.1.0", "2025-3-31", ["添加用户信息编辑功能", "增加版本日志功能", "改进主题颜色切换效果","添加公告栏","修复已知问题"]),
version: "1.2.0", new VersionLogItem("1.0.0", "2025-2-10", ["初始版本发布", "实现基本功能界面", "添加用户信息管理", "支持主题色切换", "支持中英文切换"])
date: "2023-12-15",
changes: [
"优化设置页面UI和交互体验",
"增加版本日志功能",
"实现多语言切换优化",
"改进主题颜色切换效果"
]
},
{
version: "1.1.0",
date: "2023-11-10",
changes: [
"添加用户信息编辑功能",
"优化首页数据展示",
"修复已知问题"
]
},
{
version: "1.0.0",
date: "2023-10-15",
changes: [
"初始版本发布",
"实现基本功能界面",
"添加用户信息管理",
"支持主题色切换",
"支持中英文切换"
]
}
]; ];
} }

View File

@ -49,6 +49,30 @@ struct HomePage {
.justifyContent(FlexAlign.Center) .justifyContent(FlexAlign.Center)
.padding({ left: 20 }) .padding({ left: 20 })
// 跑马灯公告
Row() {
Image($r('app.media.notification'))
.width(20)
.height(20)
.margin({ right: 8 })
Marquee({
start: true,
step: 6, // 降低步长,使滚动更慢
loop: -1,
fromStart: true,
src: "欢迎使用【智能教室管理系统】本项目由【922213102班第一组】制作相关服务正在完善欢迎您的使用"
})
.width('90%')
.height(30)
.fontSize(14)
.fontColor('#FF5A5A')
}
.width('100%')
.padding(10)
.backgroundColor('#FFF8F8')
.margin({ top: 5, bottom: 5 })
// 页面内容区 // 页面内容区
Scroll() { Scroll() {
Column() { Column() {

View File

@ -1,6 +1,7 @@
import { router } from '@kit.ArkUI'; import { router } from '@kit.ArkUI';
import { hilog } from '@kit.PerformanceAnalysisKit'; import { hilog } from '@kit.PerformanceAnalysisKit';
import settingsService, { ThemeColor, Language, SettingsModel, TextResources, UserInfoModel, VersionLogItem } from '../common/SettingsService'; import settingsService, { ThemeColor, Language, SettingsModel, TextResources, UserInfoModel } from '../common/SettingsService';
import { VersionLogItem } from '../common/logtext';
import { promptAction } from '@kit.ArkUI'; import { promptAction } from '@kit.ArkUI';
@Entry @Entry