feat(i18n): 实现多语言支持并更新相关组件

refactor: 重构组件以使用i18n动态文本
style: 调整代码格式和结构
docs: 更新多语言翻译文件
This commit is contained in:
砂糖
2025-12-29 11:16:35 +08:00
parent 4fa6a1f59a
commit fa37b697e6
20 changed files with 1645 additions and 619 deletions

View File

@@ -151,24 +151,24 @@ function checkUpdate(forceCheck = false) {
// 显示更新提示模态框
function showUpdateModal(remoteVersion, wgtUrl) {
uni.showModal({
title: '发现新版本',
content: `检测到新版本(${remoteVersion}),是否立即下载并更新?`,
confirmText: '立即更新',
cancelText: '退出',
showCancel: true,
success: (modalRes) => {
if (modalRes.confirm) {
// 用户确认更新:检查存储空间 -> 下载 -> 安装
handleConfirmUpdate(wgtUrl, remoteVersion);
} else {
// 直接退出
// uni.showModal({
// title: '发现新版本',
// content: `检测到新版本(${remoteVersion}),是否立即下载并更新?`,
// confirmText: '立即更新',
// cancelText: '退出',
// showCancel: true,
// success: (modalRes) => {
// if (modalRes.confirm) {
// // 用户确认更新:检查存储空间 -> 下载 -> 安装
// handleConfirmUpdate(wgtUrl, remoteVersion);
// } else {
// // 直接退出
// 用户取消更新:询问是否忽略该版本
handleCancelUpdate(remoteVersion);
}
}
});
// // 用户取消更新:询问是否忽略该版本
// handleCancelUpdate(remoteVersion);
// }
// }
// });
}