feat(ui): 升级DFU取消升级按钮为整卡贯穿动态操作条

1. 【手环升级 / DFU固件升级】:
   - 将【取消升级】由原先角落单一小按钮优化为整卡宽度 100% 贯穿式动态操作条(Full-width Dynamic Action Banner);
   - 配备内嵌取消警告图标、悬浮微动效与微发光交互;
   - 保持 360px 1fr 经典双栏比例与全局主色蓝规范 #2563EB;
   - 重新无头渲染生成官方定妆照 image.png。
This commit is contained in:
zhy200308
2026-08-17 17:38:29 +08:00
parent 3ae97259ed
commit 3d7be0e326
2 changed files with 33 additions and 7 deletions
@@ -242,20 +242,43 @@ body {
}
.btn-cancel-upgrade {
width: 100%;
height: 42px;
background: var(--warning-light);
color: var(--warning-text);
border: 1px solid var(--warning-border);
padding: 8px 18px;
border-radius: 8px;
font-size: 13px;
border: 1.5px solid var(--warning-border);
border-radius: var(--corner-item);
font-size: 13.5px;
font-weight: 700;
cursor: pointer;
transition: all 0.15s ease;
align-self: flex-end;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 2px;
}
.btn-cancel-upgrade svg {
width: 16px;
height: 16px;
fill: currentColor;
transition: transform 0.2s ease;
}
.btn-cancel-upgrade:hover {
background: #FDE68A;
border-color: #F59E0B;
transform: translateY(-1px);
box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}
.btn-cancel-upgrade:hover svg {
transform: scale(1.15) rotate(90deg);
}
.btn-cancel-upgrade:active {
transform: translateY(0);
}
/* 2.2 固件包信息卡片 */
@@ -659,7 +682,10 @@ body {
<span class="prop-pill-v" id="devBatVal">未知</span>
</div>
</div>
<button class="btn-cancel-upgrade" onclick="cancelUpgrade()">取消升级</button>
<button class="btn-cancel-upgrade" id="btnCancelUpgrade" onclick="cancelUpgrade()">
<svg viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>
<span>取消升级</span>
</button>
</section>
<!-- 固件包信息与源卡片 -->
Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 90 KiB