diff --git a/other-module/mini-program/nutrition/me-account.html b/other-module/mini-program/nutrition/me-account.html index ce8436a..1b836b5 100644 --- a/other-module/mini-program/nutrition/me-account.html +++ b/other-module/mini-program/nutrition/me-account.html @@ -64,6 +64,26 @@ .info-value.gold { color: #d4a017; } .info-row.editable { cursor: pointer; } .edit-icon { font-size: 12px; font-style: normal; opacity: 0.6; } + /* 演示切换栏 */ + .demo-bar { + display: flex; align-items: center; gap: 8px; padding: 10px 16px; + background: #fffbe6; border-bottom: 1px solid #ffe58f; font-size: 12px; color: #8c6d1f; + } + .demo-bar .demo-label { font-weight: 600; } + .demo-bar .demo-state { font-weight: 600; min-width: 48px; } + /* 切换开关 */ + .toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; } + .toggle-switch input { display: none; } + .toggle-slider { + position: absolute; top: 0; left: 0; right: 0; bottom: 0; + background: #d9d9d9; border-radius: 24px; cursor: pointer; transition: 0.3s; + } + .toggle-slider::before { + content: ''; position: absolute; left: 3px; bottom: 3px; width: 18px; height: 18px; + background: #fff; border-radius: 50%; transition: 0.3s; + } + input:checked + .toggle-slider { background: #52c41a; } + input:checked + .toggle-slider::before { transform: translateX(20px); }
@@ -86,6 +106,15 @@ 点击修改头像 + +