feat: 新增师傅入驻审核与接单状态联动功能

- 新增师傅资质审核模块及权限
- 未审核通过的师傅默认禁用接单状态
- 新增售后退款申诉功能与相关界面
- 新增用户钱包管理及充值功能
- 更新服务定价矩阵相关数据库结构
- 修复微信支付证书验证问题
这个提交包含在:
2026-11-17 10:28:01 +08:00
父节点 ad73da1db4
当前提交 0370cb9bd6
共有 107 个文件被更改,包括 13666 次插入 和 1447 次删除

查看文件

@@ -1,150 +1,547 @@
<!DOCTYPE html>
<html>
<html lang="zh-CN">
<head>
{include file="common/meta" /}
<style type="text/css">
* { box-sizing: border-box; }
body { margin: 0; color: #333; background: #FFF7F0;
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
a { color: #E36B0C; }
.login-page { min-height: 100vh; display: flex; }
*, *::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;
}
/* ---------- 左侧品牌区 ---------- */
.brand { position: relative; width: 54%; min-height: 100vh; overflow: hidden; color: #fff;
padding: 0 72px; display: flex; flex-direction: column; justify-content: center;
background: linear-gradient(160deg, #FFB85C 0%, #F98D25 46%, #ED6F0E 100%); }
.brand .deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.13); }
.brand .d1 { width: 520px; height: 520px; right: -180px; top: -200px; }
.brand .d2 { width: 320px; height: 320px; left: -120px; bottom: -120px; background: rgba(255,255,255,.10); }
.brand .d3 { width: 160px; height: 160px; right: 90px; bottom: 90px; background: rgba(255,255,255,.08); }
.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;
}
.logo-mark { position: relative; width: 64px; height: 64px; border-radius: 18px;
background: rgba(255,255,255,.94); color: #EE7412; font-size: 34px; font-weight: 800;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 10px 24px rgba(170,70,10,.22); }
.wordmark { position: relative; margin-top: 30px; font-size: 60px; font-weight: 800;
letter-spacing: 10px; line-height: 1.1; color: #fff;
text-shadow: 0 2px 0 #E9721A, 0 5px 0 #D9630E, 0 10px 24px rgba(150,60,0,.35); }
.slogan { position: relative; margin-top: 18px; font-size: 17px;
letter-spacing: 4px; color: rgba(255,255,255,.92); }
.stats { position: relative; display: flex; margin-top: 54px; }
.stat { margin-right: 56px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.85); letter-spacing: 1px; }
.brand-tip { position: relative; margin-top: 46px; font-size: 13px;
color: rgba(255,255,255,.82); letter-spacing: 1px; }
/* ---------- 右侧表单区 ---------- */
.panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-screen { width: 100%; max-width: 380px; }
.login-screen .well { padding: 40px 34px 32px; background: #fff; border: none; border-radius: 20px;
box-shadow: 0 18px 48px rgba(226,120,26,.16); }
.panel-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: #1F1F1F; }
.panel-sub { margin: 0 0 26px; font-size: 13px; color: #9A9A9A; }
#login-form .input-group { display: flex; margin-bottom: 16px; }
#login-form .input-group-addon { width: 46px; flex: none; background: #FFF7F0;
border: 1px solid #F2E3D6; border-right: none; border-radius: 12px 0 0 12px;
color: #E07A2E; display: flex; align-items: center; justify-content: center; }
#login-form .form-control { flex: 1; height: 46px; padding: 0 14px; font-size: 14px;
border: 1px solid #F2E3D6; border-radius: 0 12px 12px 0; box-shadow: none; }
#login-form .input-group .form-control:not(:last-child) { border-radius: 0; }
#login-form .form-control:focus { border-color: #F5861F; outline: none; }
#login-form .btn-submit { width: 100%; height: 48px; margin-top: 6px; border: none; border-radius: 24px;
color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px; cursor: pointer;
/* 顶部品牌区 */
.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%);
box-shadow: 0 10px 22px rgba(240,113,13,.32); }
#login-form .btn-submit:hover { filter: brightness(1.04); }
#login-form .checkbox { margin: 2px 0 16px; color: #8A8A8A; font-size: 13px; }
#errtips { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px;
background: #FFF1EF; color: #E8331B; font-size: 13px; }
.foot { margin-top: 22px; text-align: center; font-size: 12px; color: #B9B9B9; line-height: 20px; }
#profile-img, #profile-name { display: none !important; }
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;
}
@media (max-width: 900px) {
.login-page { flex-direction: column; }
.brand { width: 100%; min-height: auto; padding: 40px 28px 34px; }
.wordmark { margin-top: 18px; font-size: 38px; letter-spacing: 6px; }
.stats { margin-top: 26px; }
.stat { margin-right: 30px; }
.stat b { font-size: 22px; }
.brand-tip { margin-top: 24px; }
.panel { padding: 26px 20px 40px; }
/* 主登录面板区:右侧浮动 */
.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>
<!--@formatter:off-->
{if $background}
<style type="text/css">
.brand { background-image: url('{$background|htmlentities}'); background-size: cover; background-position: center; }
</style>
{/if}
<!--@formatter:on-->
</head>
<body>
<div class="login-page">
<!-- 左侧:品牌 + 平台实力 -->
<div class="brand">
<div class="deco d1"></div>
<div class="deco d2"></div>
<div class="deco d3"></div>
<div class="logo-mark">优</div>
<div class="wordmark">优匠优服</div>
<div class="slogan">家居安装维修调度与履约管理平台</div>
<div class="brand-tip">订单调度 · 师傅管理 · 企业协同 · 财务结算</div>
</div>
<!-- 右侧:登录表单 -->
<div class="panel">
<div class="login-screen">
<div class="well">
<p class="panel-title">平台管理后台</p>
<p class="panel-sub">请使用管理员账号登录</p>
<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="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
<input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
</div>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
<input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
</div>
<!--@CaptchaBegin-->
{if $Think.config.fastadmin.login_captcha}
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
<input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})" autocomplete="off"/>
<span class="input-group-addon" style="width:106px;border:1px solid #F2E3D6;border-left:none;border-radius:0 12px 12px 0;background:#fff;padding:0;cursor:pointer;">
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
</span>
</div>
{/if}
<!--@CaptchaEnd-->
{if $keeyloginhours>0}
<div class="form-group checkbox">
<label class="inline" for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
<input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
{:__('Keep login')}
</label>
</div>
{/if}
<button type="submit" class="btn-submit">{:__('Sign in')}</button>
<!--@AdminLoginFormEnd-->
</form>
<div class="foot">© {:date('Y')} 优匠优服 平台管理后台</div>
<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>
</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>