-
+
- 请使用食堂统一分配的工号登录 +
- 连续 5 次密码错误将锁定账号 30 分钟 +
- 登录遇到问题可点击右侧「故障报修」 +
diff --git a/other-module/canteen-device/checkout-device/01-login.html b/other-module/canteen-device/checkout-device/01-login.html index c3c73d4..e7b796f 100644 --- a/other-module/canteen-device/checkout-device/01-login.html +++ b/other-module/canteen-device/checkout-device/01-login.html @@ -490,6 +490,216 @@ color: #ff6b6b; } .fail-counter.show { display: flex; } + + /* ===== 登录方式切换 Tab ===== */ + .login-tabs { + display: flex; + gap: 4px; + border-bottom: 1px solid rgba(255, 255, 255, 0.06); + flex-shrink: 0; + } + .login-tabs__item { + position: relative; + padding: 10px 18px; + font-size: 14px; + font-weight: 500; + color: rgba(255, 255, 255, 0.45); + background: transparent; + border: none; + cursor: pointer; + transition: color 0.2s; + letter-spacing: 0.5px; + } + .login-tabs__item:hover { color: rgba(255, 255, 255, 0.7); } + .login-tabs__item::after { + content: ""; + position: absolute; + left: 12px; + right: 12px; + bottom: -1px; + height: 2px; + background: transparent; + border-radius: 1px; + transition: background 0.2s; + } + .login-tabs__item.active { + color: #4a90d9; + } + .login-tabs__item.active::after { + background: #4a90d9; + box-shadow: 0 0 8px rgba(74, 144, 217, 0.5); + } + + /* 人脸面板容器(撑满左列) */ + .face-panel { + flex: 1; + display: flex; + flex-direction: column; + gap: 14px; + min-height: 0; + } + /* 账号面板:整体垂直水平居中,不撑满 */ + .account-panel { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 18px; + min-height: 0; + padding: 10px 0; + } + /* hidden 属性兜底:避免被 display:flex 覆盖 */ + .face-panel[hidden], + .account-panel[hidden] { + display: none !important; + } + + /* ===== 账号密码登录表单 ===== */ + .account-form { + width: 340px; + display: flex; + flex-direction: column; + gap: 18px; + background: rgba(26, 43, 74, 0.35); + border: 1px solid rgba(74, 144, 217, 0.18); + border-radius: 14px; + padding: 32px 32px 26px; + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); + } + .account-form__header { + text-align: center; + margin-bottom: 4px; + } + .account-form__title { + font-size: 17px; + font-weight: 600; + color: #fff; + letter-spacing: 1px; + } + .account-form__sub { + font-size: 12px; + color: rgba(255, 255, 255, 0.45); + margin-top: 6px; + } + .form-field { + display: flex; + flex-direction: column; + gap: 8px; + } + .form-field__label { + font-size: 12px; + color: rgba(255, 255, 255, 0.6); + letter-spacing: 0.5px; + } + .form-field__input-wrap { + position: relative; + display: flex; + align-items: center; + } + .form-field__icon { + position: absolute; + left: 12px; + font-size: 15px; + opacity: 0.65; + pointer-events: none; + } + .form-field__input { + width: 100%; + height: 42px; + padding: 0 12px 0 38px; + background: rgba(5, 10, 26, 0.55); + border: 1px solid rgba(74, 144, 217, 0.2); + border-radius: 8px; + color: #fff; + font-size: 13px; + transition: all 0.2s; + outline: none; + } + .form-field__input::placeholder { + color: rgba(255, 255, 255, 0.3); + } + .form-field__input:focus { + border-color: #4a90d9; + background: rgba(5, 10, 26, 0.8); + box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15); + } + .login-submit { + margin-top: 4px; + height: 44px; + background: linear-gradient(135deg, #4a90d9 0%, #2563eb 100%); + border: none; + border-radius: 8px; + color: #fff; + font-size: 14px; + font-weight: 600; + letter-spacing: 4px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + transition: all 0.2s; + box-shadow: 0 4px 14px rgba(74, 144, 217, 0.3); + } + .login-submit:hover { + transform: translateY(-1px); + box-shadow: 0 6px 20px rgba(74, 144, 217, 0.45); + } + .login-submit:active { transform: translateY(0); } + .login-submit:disabled { + opacity: 0.7; + cursor: not-allowed; + transform: none; + } + .login-submit__icon { font-size: 15px; } + .login-hint { + text-align: center; + font-size: 11px; + color: rgba(255, 255, 255, 0.4); + margin-top: -4px; + } + + /* 账号面板底部提示(与表单同宽对齐) */ + .account-tips { + width: 340px; + background: rgba(26, 43, 74, 0.4); + border: 1px solid rgba(255, 255, 255, 0.06); + border-radius: 10px; + padding: 12px 16px 14px; + } + .account-tips__title { + font-size: 12px; + color: rgba(255, 255, 255, 0.55); + font-weight: 500; + letter-spacing: 1px; + margin-bottom: 8px; + display: flex; + align-items: center; + gap: 8px; + } + .account-tips__list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: 5px; + } + .account-tips__list li { + font-size: 12px; + color: rgba(255, 255, 255, 0.55); + padding-left: 14px; + position: relative; + line-height: 1.6; + } + .account-tips__list li::before { + content: "·"; + position: absolute; + left: 4px; + color: #4a90d9; + font-weight: 700; + }
@@ -506,13 +716,16 @@