feat: 新增体重管理v2运动与目标页面,优化多个v2页面及蓝牙秤小程序

This commit is contained in:
liuyunqin
2026-07-27 17:49:06 +08:00
parent 8108f5520e
commit 2a1e15d928
18 changed files with 4060 additions and 107 deletions
@@ -170,7 +170,7 @@
/* 同步弹窗 */
.sync-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
display: none; align-items: center; justify-content: center;
}
.sync-overlay--show { display: flex; }
@@ -203,7 +203,7 @@
/* 删除确认弹窗 */
.delete-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
display: none; align-items: center; justify-content: center;
}
.delete-overlay--show { display: flex; }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 40 KiB

@@ -396,11 +396,11 @@
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 确认弹窗 */
.confirm-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
display: none; align-items: center; justify-content: center;
}
/* 确认弹窗 */
.confirm-overlay {
position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
display: none; align-items: center; justify-content: center;
}
.confirm-overlay--show { display: flex; }
.confirm-dialog {
width: 280px; background: #fff; border-radius: 16px; padding: 28px 24px 20px;
@@ -418,11 +418,11 @@
.confirm-dialog__btn--confirm { background: var(--danger); color: #fff; }
.confirm-dialog__btn--confirm:active { background: #d9363e; }
/* 连接弹窗 */
.connect-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
display: none; align-items: center; justify-content: center;
}
/* 连接弹窗 */
.connect-overlay {
position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
display: none; align-items: center; justify-content: center;
}
.connect-overlay--show { display: flex; }
.connect-dialog {
width: 260px; background: #fff; border-radius: 16px; padding: 32px 24px 24px;
@@ -155,6 +155,10 @@
<span class="form-label">身高<span style="color:#ff4d4f;">*</span></span>
<input class="form-input" id="inputHeight" type="number" placeholder="请输入身高"><span class="form-unit">cm</span>
</div>
<div class="form-item">
<span class="form-label">体重</span>
<input class="form-input" id="inputWeight" type="number" placeholder="选填"><span class="form-unit">kg</span>
</div>
</div>
<button class="btn-primary" id="submitBtn" onclick="submitProfile()">完成并进入首页</button>
@@ -174,10 +178,12 @@
var gender = params.get('gender');
var age = params.get('age');
var height = params.get('height');
var weight = params.get('weight');
if (name) document.getElementById('inputName').value = name;
if (gender) selectGender(gender);
if (age) document.getElementById('inputAge').value = age;
if (height) document.getElementById('inputHeight').value = height;
if (weight) document.getElementById('inputWeight').value = weight;
}
})();