fix(terminology): 严格校正为【EAP软件应用更新】并保持全自动升级过程中灰色禁用按钮风格
This commit is contained in:
@@ -161,7 +161,7 @@ body {
|
||||
<!-- 下载进度条 -->
|
||||
<div class="download-progress-block">
|
||||
<div class="progress-meta-row">
|
||||
<span style="font-weight: 600; color: var(--text-main);">正在下载固件包...</span>
|
||||
<span style="font-weight: 600; color: var(--text-main);">正在下载 EAP 应用安装包...</span>
|
||||
<span class="progress-percent-val">68%</span>
|
||||
</div>
|
||||
<div class="progress-track-bg">
|
||||
|
||||
@@ -156,14 +156,10 @@ body {
|
||||
}
|
||||
.btn-primary-gradient:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--color-primary-glow); }
|
||||
|
||||
.btn-running-state {
|
||||
.btn-running-state, .btn-reboot-state {
|
||||
background: #F1F5F9; color: var(--text-sub); border: 1.5px solid #CBD5E1; cursor: not-allowed;
|
||||
box-shadow: none; pointer-events: none;
|
||||
}
|
||||
.btn-reboot-state {
|
||||
background: var(--color-success-gradient); color: white; border: none; cursor: not-allowed;
|
||||
box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); pointer-events: none;
|
||||
}
|
||||
|
||||
/* 右侧 1fr 设备与底层系统信息矩阵 */
|
||||
.right-details-panel {
|
||||
@@ -236,7 +232,7 @@ body {
|
||||
<!-- 动态下载进度容器 -->
|
||||
<div class="download-progress-block" id="progressBlock">
|
||||
<div class="progress-meta-row">
|
||||
<span style="font-weight: 600; color: var(--text-main);" id="progressStateText">正在下载固件包...</span>
|
||||
<span style="font-weight: 600; color: var(--text-main);" id="progressStateText">正在下载 EAP 应用安装包...</span>
|
||||
<span class="progress-percent-val" id="progressPercent">0%</span>
|
||||
</div>
|
||||
<div class="progress-track-bg">
|
||||
@@ -331,7 +327,7 @@ body {
|
||||
badge.style.background = '#FFFBEB';
|
||||
badge.style.color = '#D97706';
|
||||
btn.className = 'btn-dynamic-full btn-running-state';
|
||||
btnText.innerText = '⚡ 正在自动升级中 (不可断电)...';
|
||||
btnText.innerText = '⚡ 正在自动升级 EAP 应用...';
|
||||
|
||||
const timer = setInterval(() => {
|
||||
if (progress < 100) {
|
||||
@@ -343,27 +339,27 @@ body {
|
||||
mbStats.innerText = `${currentMb} MB / ${totalSize} MB`;
|
||||
speedStats.innerText = `${(Math.random() * 0.8 + 2.2).toFixed(1)} MB/s`;
|
||||
|
||||
// 2. 达到 100% 后自动无缝进入校验与重启倒计时,无需用户再次点击
|
||||
// 2. 达到 100% 后自动无缝进入校验与安装重启倒计时
|
||||
if (progress === 100) {
|
||||
clearInterval(timer);
|
||||
stateText.innerText = '固件包下载完成,正在自动校验 SHA256 与写入系统分区...';
|
||||
badge.innerText = '校验与安装中';
|
||||
stateText.innerText = '安装包下载完成,正在自动校验并安装更新...';
|
||||
badge.innerText = '安装中';
|
||||
badge.style.background = '#ECFDF5';
|
||||
badge.style.color = '#059669';
|
||||
|
||||
setTimeout(() => {
|
||||
stateText.innerText = '✅ 固件更新就绪!系统将在 3 秒后自动重启生效...';
|
||||
stateText.innerText = '✅ EAP 软件更新就绪!应用将在 3 秒后自动重启生效...';
|
||||
btn.className = 'btn-dynamic-full btn-reboot-state';
|
||||
btnText.innerText = '🔄 正在自动重启系统...';
|
||||
btnText.innerText = '🔄 正在重启 EAP 应用...';
|
||||
|
||||
let countdown = 3;
|
||||
const cdTimer = setInterval(() => {
|
||||
countdown--;
|
||||
if (countdown > 0) {
|
||||
stateText.innerText = `✅ 固件更新就绪!系统将在 ${countdown} 秒后自动重启生效...`;
|
||||
stateText.innerText = `✅ EAP 软件更新就绪!应用将在 ${countdown} 秒后自动重启生效...`;
|
||||
} else {
|
||||
clearInterval(cdTimer);
|
||||
stateText.innerText = '🔄 系统重启中...';
|
||||
stateText.innerText = '🔄 EAP 应用重启中...';
|
||||
}
|
||||
}, 1000);
|
||||
}, 1200);
|
||||
|
||||
Reference in New Issue
Block a user