文件
yjyf/server/application/admin/view/index/login.html
MiAn 0370cb9bd6 feat: 新增师傅入驻审核与接单状态联动功能
- 新增师傅资质审核模块及权限
- 未审核通过的师傅默认禁用接单状态
- 新增售后退款申诉功能与相关界面
- 新增用户钱包管理及充值功能
- 更新服务定价矩阵相关数据库结构
- 修复微信支付证书验证问题
2026-11-17 10:28:01 +08:00

548 行
19 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
{include file="common/meta" /}
<style type="text/css">
*, *::before, *::after {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
width: 100%;
min-height: 100vh;
overflow-x: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
-webkit-font-smoothing: antialiased;
}
.login-wrapper {
position: relative;
min-height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: #F8F5F2;
background-image: url('{$background|htmlentities}');
background-position: center left;
background-size: cover;
background-repeat: no-repeat;
}
/* 顶部品牌区 */
.brand-header {
position: absolute;
top: 28px;
left: 36px;
z-index: 20;
display: flex;
align-items: center;
gap: 14px;
user-select: none;
}
.brand-logo-badge {
width: 48px;
height: 48px;
border-radius: 16px;
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
color: #ffffff;
font-size: 26px;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10px 20px rgba(240, 113, 13, 0.28);
border: 2px solid rgba(255, 255, 255, 0.85);
}
.brand-info {
display: flex;
flex-direction: column;
}
.brand-title-wrap {
display: flex;
align-items: center;
gap: 8px;
}
.brand-title {
font-size: 20px;
font-weight: 800;
color: #1F1F1F;
letter-spacing: 0.5px;
}
.brand-tag {
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
background-color: #FEF3C7;
color: #92400E;
border: 1px solid #FDE68A;
}
.brand-sub {
margin: 2px 0 0;
font-size: 12px;
font-weight: 500;
color: #555555;
letter-spacing: 0.5px;
}
/* 主登录面板区:右侧浮动 */
.main-container {
width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 90px 80px 60px 30px;
z-index: 10;
}
/* 登录卡片毛玻璃质感 */
.glass-login-card {
width: 100%;
max-width: 420px;
border-radius: 24px;
padding: 38px 34px 28px;
background: rgba(255, 255, 255, 0.94);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.85);
box-shadow: 0 25px 50px -12px rgba(217, 119, 6, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}
.card-header-box {
margin-bottom: 24px;
}
.card-title {
margin: 0;
font-size: 26px;
font-weight: 800;
color: #1F1F1F;
letter-spacing: -0.5px;
}
.card-desc {
margin: 6px 0 0;
font-size: 13px;
color: #71717A;
font-weight: 500;
}
/* 错误提示 */
#errtips {
margin-bottom: 16px;
padding: 10px 14px;
border-radius: 10px;
background-color: #FEF2F2;
color: #DC2626;
font-size: 13px;
border: 1px solid #FEE2E2;
line-height: 1.4;
}
/* 表单控件 */
.login-field {
margin-bottom: 18px;
}
.field-label {
display: block;
margin-bottom: 6px;
font-size: 12px;
font-weight: 600;
color: #374151;
}
.input-box {
position: relative;
display: flex;
align-items: center;
}
.input-icon {
position: absolute;
left: 12px;
display: flex;
align-items: center;
justify-content: center;
color: #9CA3AF;
pointer-events: none;
}
.input-icon svg {
width: 18px;
height: 18px;
}
.modern-input {
width: 100%;
height: 44px;
padding: 0 14px 0 38px;
background: rgba(255, 255, 255, 0.85);
border: 1px solid #E5E7EB;
border-radius: 12px;
font-size: 14px;
color: #111827;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
transition: all 0.2s ease;
outline: none;
}
.modern-input:focus {
background: #ffffff;
border-color: #F97316;
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}
.modern-input::placeholder {
color: #9CA3AF;
}
/* 验证码特殊布局 */
.captcha-row {
display: flex;
gap: 12px;
align-items: center;
}
.captcha-row .input-box {
flex: 1;
}
.captcha-badge-box {
box-sizing: border-box !important;
height: 44px !important;
width: 126px !important;
min-width: 126px !important;
max-width: 126px !important;
padding: 0 !important;
margin: 0 !important;
border: 1px solid #E5E7EB !important;
border-radius: 12px !important;
overflow: hidden !important;
background: #ffffff !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
position: relative !important;
user-select: none !important;
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease !important;
}
.captcha-badge-box:hover {
border-color: #F97316 !important;
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
}
.captcha-badge-box:active {
transform: scale(0.97) !important;
}
.captcha-badge-box img {
display: block !important;
width: 100% !important;
height: 100% !important;
object-fit: fill !important;
border: none !important;
border-radius: 11px !important;
background-color: #ffffff !important;
}
/* 刷新提示徽章 */
.captcha-badge-box::after {
content: "换一张";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 18px;
line-height: 18px;
background: rgba(31, 31, 31, 0.68);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
color: #ffffff;
font-size: 10px;
text-align: center;
opacity: 0;
transform: translateY(100%);
transition: all 0.2s ease;
pointer-events: none;
}
.captcha-badge-box:hover::after {
opacity: 1;
transform: translateY(0);
}
/* 记住账号与工具栏 */
.options-row {
display: flex;
align-items: center;
justify-content: space-between;
margin: 6px 0 20px;
user-select: none;
}
.remember-label {
display: inline-flex;
align-items: center;
cursor: pointer;
font-size: 13px;
color: #4B5563;
margin: 0;
font-weight: normal;
}
.remember-checkbox {
width: 16px;
height: 16px;
margin: 0 6px 0 0;
accent-color: #F97316;
cursor: pointer;
}
.service-badge {
font-size: 12px;
color: #9CA3AF;
}
/* 登录提交按钮 */
.btn-modern-login {
width: 100%;
height: 46px;
border: none;
border-radius: 12px;
color: #ffffff;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.5px;
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
box-shadow: 0 10px 22px rgba(240, 113, 13, 0.32);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.15s ease-in-out;
outline: none;
}
.btn-modern-login:hover {
filter: brightness(1.05);
box-shadow: 0 12px 24px rgba(240, 113, 13, 0.38);
}
.btn-modern-login:active {
transform: scale(0.985);
}
.btn-arrow-icon {
width: 16px;
height: 16px;
transition: transform 0.2s ease;
}
.btn-modern-login:hover .btn-arrow-icon {
transform: translateX(2px);
}
/* 卡片底部辅助信息 */
.card-footer {
margin-top: 22px;
padding-top: 18px;
border-top: 1px solid #F3F4F6;
text-align: center;
}
.footer-links {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
font-size: 12px;
color: #6B7280;
}
.footer-links a {
color: #6B7280;
text-decoration: none;
transition: color 0.15s;
}
.footer-links a:hover {
color: #EA580C;
}
.footer-links .divider {
color: #D1D5DB;
}
/* 页面底部居中版权说明 */
.page-copyright {
position: absolute;
bottom: 18px;
left: 0;
right: 0;
text-align: center;
z-index: 20;
font-size: 12px;
color: rgba(75, 85, 99, 0.85);
pointer-events: none;
letter-spacing: 0.3px;
}
#profile-img, #profile-name {
display: none !important;
}
/* 响应式适配 */
@media (max-width: 960px) {
.login-wrapper {
background-position: center;
}
.brand-header {
top: 20px;
left: 20px;
}
.main-container {
justify-content: center;
padding: 100px 20px 60px;
}
.glass-login-card {
padding: 30px 24px 22px;
}
}
@media (max-width: 480px) {
.brand-sub {
display: none;
}
.brand-logo-badge {
width: 40px;
height: 40px;
font-size: 22px;
}
.brand-title {
font-size: 17px;
}
}
</style>
</head>
<body>
<div class="login-wrapper">
<!-- 顶部品牌标志 Header -->
<header class="brand-header">
<div class="brand-logo-badge">优</div>
<div class="brand-info">
<div class="brand-title-wrap">
<span class="brand-title">{$site.name|default='优匠优服'}</span>
<span class="brand-tag">数字化调度系统</span>
</div>
<p class="brand-sub">全流程数字化履约调度引擎</p>
</div>
</header>
<!-- 主视口区域 -->
<main class="main-container">
<!-- 现代毛玻璃登录卡片 -->
<div class="glass-login-card">
<div class="card-header-box">
<h1 class="card-title">欢迎登录</h1>
<p class="card-desc">优匠优服 · 运营调度管理系统</p>
</div>
<!-- 用于 fastadmin 历史登录头像缓存兼容 -->
<img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png"/>
<p id="profile-name" class="profile-name-card"></p>
<form action="" method="post" id="login-form">
<!--@AdminLoginFormBegin-->
<div id="errtips" class="hide"></div>
{:token()}
<!-- 账号 / 手机号 -->
<div class="login-field">
<label class="field-label" for="pd-form-username">账号 / 手机号</label>
<div class="input-box">
<span class="input-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"></path>
</svg>
</span>
<input type="text" class="modern-input" id="pd-form-username" name="username" placeholder="请输入用户名 / 手机号" autocomplete="off" value="" data-rule="required;length(3~30)"/>
</div>
</div>
<!-- 登录密码 -->
<div class="login-field">
<label class="field-label" for="pd-form-password">登录密码</label>
<div class="input-box">
<span class="input-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"></path>
</svg>
</span>
<input type="password" class="modern-input" id="pd-form-password" name="password" placeholder="请输入登录密码" autocomplete="off" value="" data-rule="required;length(6~30)"/>
</div>
</div>
<!-- 安全图形验证码 -->
<!--@CaptchaBegin-->
{if $Think.config.fastadmin.login_captcha}
<div class="login-field">
<label class="field-label" for="pd-form-captcha">安全图形验证码</label>
<div class="captcha-row">
<div class="input-box">
<span class="input-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"></path>
</svg>
</span>
<input type="text" class="modern-input" id="pd-form-captcha" name="captcha" placeholder="请输入验证码" maxlength="6" autocomplete="off" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})"/>
</div>
<div class="captcha-badge-box input-group-addon" title="看不清?点击更换验证码">
<img src="{:captcha_src()}" onclick="this.src = '{:captcha_src()}?r=' + Math.random();" alt="验证码"/>
</div>
</div>
</div>
{/if}
<!--@CaptchaEnd-->
<!-- 保持登录选项 -->
<div class="options-row">
{if $keeyloginhours>0}
<label class="remember-label" for="keeplogin" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
<input type="checkbox" class="remember-checkbox" name="keeplogin" id="keeplogin" value="1" checked/>
<span>记住账号</span>
</label>
{/if}
<span class="service-badge">安全通道已加密</span>
</div>
<!-- 立即登录按钮 -->
<button type="submit" class="btn-modern-login">
<span>立即登录</span>
<svg class="btn-arrow-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M14 5l7 7m0 0l-7 7m7-7H3" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path>
</svg>
</button>
<!--@AdminLoginFormEnd-->
</form>
<!-- 底部帮助 -->
<footer class="card-footer">
<div class="footer-links">
<a href="javascript:;" onclick="Toastr.info('如需帮助请联系平台超级管理员');">技术支持</a>
<span class="divider">·</span>
<a href="javascript:;" onclick="Toastr.info('运营系统帮助手册已部署至内网');">帮助中心</a>
<span class="divider">·</span>
<a href="javascript:;" onclick="Toastr.info('本系统已启用全站高强度数据传输加密');">安全合规</a>
</div>
</footer>
</div>
</main>
<!-- 底部版权说明 -->
<footer class="page-copyright">
<p>© {:date('Y')} 优匠优服 · 上门安装运营管理平台</p>
</footer>
</div>
{include file="common/script" /}
<script type="text/javascript">
// 确保在 RequireJS 加载完成后安全绑定,避免全局 $ 未定义
if (typeof require === 'function') {
require(['jquery'], function ($) {
$(document).ajaxComplete(function (event, xhr, settings) {
if (settings && settings.url && settings.url.indexOf('login') !== -1) {
try {
var json = JSON.parse(xhr.responseText);
if (json && json.code === 0) {
var img = document.querySelector(".captcha-badge-box img");
if (img) img.click();
}
} catch (e) {}
}
});
});
}
</script>
</body>
</html>