Anyon e634118a22 refactor(plugin): 迁移 v8 插件化组件体系
将 v6 中直接放在本地 app 的后台与微信能力迁移为 v8 插件组件,并把运行时基础能力沉淀到独立插件包。

主要内容:

- 新增 think-library、system、worker、static、install 等基础插件包。

- 新增 account、payment、wechat-client、wechat-service、wemall、wuma 等业务插件包。

- 移除 v6 的 app/admin 与 app/wechat 本地应用实现,改由插件分发接管。

- 将 Helper 能力彻底并入 System,统一为 plugin\system\helper\* 命名空间。

- 同步插件迁移发布清单与根 route 占位,保证安装发布流程可复现。
2026-05-08 15:30:46 +08:00

534 lines
12 KiB
Plaintext

@charset "UTF-8";
@import "_config.less";
// +----------------------------------------------------------------------
body, html {
height: 100%;
min-height: 100%;
display: block;
}
body {
color: #e2e8f0;
background-color: #08101d;
&.login-verify-active {
overflow: hidden;
}
}
body, .login-container {
vertical-align: middle;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
#defaTransition(1s, background-image);
}
.login-container {
height: 100%;
overflow: hidden;
position: relative;
isolation: isolate;
--cursor-x: 78%;
--cursor-y: 22%;
&:before {
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
z-index: 0;
position: absolute;
pointer-events: none;
background:
radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(96, 165, 250, .20), transparent 30%),
radial-gradient(circle at 18% 18%, rgba(45, 212, 191, .14), transparent 26%),
linear-gradient(135deg, rgba(8, 16, 29, .80) 0%, rgba(8, 18, 34, .52) 48%, rgba(15, 23, 42, .82) 100%);
}
&:after {
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
z-index: 0;
position: absolute;
pointer-events: none;
background-image:
linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
background-size: 38px 38px;
mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 90%);
opacity: .22;
}
.header {
top: 0;
left: 0;
width: 100%;
height: 48px;
position: absolute;
z-index: 2;
display: flex;
padding: 0 32px;
align-items: center;
justify-content: space-between;
&:before {
left: 32px;
right: 32px;
bottom: 0;
height: 1px;
content: '';
position: absolute;
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .24), rgba(255, 255, 255, 0));
}
.title {
color: #fff;
font-size: 18px;
line-height: 48px;
font-weight: 600;
text-indent: 0;
letter-spacing: .08em;
text-shadow: 0 8px 24px rgba(15, 23, 42, .28);
span {
opacity: .72;
font-size: 11px;
padding-left: 8px;
}
}
a {
&, &:focus, &:hover {
color: #fff;
letter-spacing: .08em;
text-decoration: none;
}
}
}
form {
top: 50%;
left: 50%;
z-index: 2;
position: absolute;
width: min(420px, calc(100% - 40px));
padding: 28px 28px 30px;
margin: 0;
overflow: hidden;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, .18);
border-radius: 20px;
background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(248, 250, 252, .82) 100%);
backdrop-filter: blur(20px);
box-shadow: 0 28px 100px rgba(2, 6, 23, .42), inset 0 1px 0 rgba(255, 255, 255, .45);
&:before {
top: 0;
left: 0;
right: 0;
height: 4px;
content: '';
position: absolute;
background: linear-gradient(90deg, #14b8a6 0%, #60a5fa 58%, #a78bfa 100%);
}
&:after {
inset: 0;
content: '';
position: absolute;
pointer-events: none;
background:
radial-gradient(circle at 0 0, rgba(45, 212, 191, .12), transparent 30%),
radial-gradient(circle at 100% 18%, rgba(59, 130, 246, .12), transparent 32%);
}
> * {
z-index: 1;
position: relative;
}
.login-meta {
gap: 8px;
color: #334155;
display: inline-flex;
font-size: 12px;
margin-bottom: 18px;
align-items: center;
padding: 7px 12px 7px 10px;
border: 1px solid rgba(148, 163, 184, .18);
border-radius: 999px;
letter-spacing: .08em;
background: rgba(255, 255, 255, .62);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
.dot {
width: 8px;
height: 8px;
display: block;
border-radius: 50%;
background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
box-shadow: 0 0 0 4px rgba(45, 212, 191, .12);
}
em {
color: #64748b;
font-style: normal;
}
}
h2 {
color: #0f172a;
padding: 0 0 18px;
font-size: 30px;
text-align: left;
font-weight: 700;
letter-spacing: .02em;
}
ul li {
margin-top: 16px;
label {
display: block;
position: relative;
}
i.layui-icon {
color: #64748b;
font-size: 18px;
position: absolute;
top: 50%;
left: 18px;
padding: 0;
transform: translateY(-50%);
transition: color .2s ease;
}
input {
color: #1f2937;
height: 52px;
padding: 0 56px 0 52px;
font-size: 14px;
line-height: 1em;
text-indent: 0;
border: 1px solid rgba(148, 163, 184, .24) !important;
border-radius: 14px;
letter-spacing: 0;
background: rgba(255, 255, 255, .78);
text-shadow: none;
-webkit-text-fill-color: #1f2937 !important;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48) !important;
transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
&:hover, &:focus, &:active,
&:-webkit-autofill, &:-webkit-autofill:hover,
&:-webkit-autofill:focus, &:-webkit-autofill:active {
border: 1px solid rgba(37, 99, 235, .40) !important;
background: rgba(255, 255, 255, .92);
transform: translateY(-1px);
text-shadow: none;
box-shadow: 0 0 0 4px rgba(59, 130, 246, .10), 0 14px 30px rgba(15, 23, 42, .08) !important;
-webkit-text-fill-color: #1f2937 !important;
-webkit-transition-delay: 9999s !important;
-webkit-transition: color 9999s ease-out, background-color 9999s ease-out !important;
}
}
label:focus-within i.layui-icon {
color: #2563eb;
}
span {
letter-spacing: 1px;
color: #dc2626 !important;
}
button {
color: #fff !important;
height: 52px !important;
border: none !important;
background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
border-radius: 14px !important;
letter-spacing: .16em !important;
box-shadow: 0 16px 36px rgba(37, 99, 235, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
&:hover {
opacity: 1;
filter: brightness(1.03);
transform: translateY(-1px);
box-shadow: 0 20px 42px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
}
&.layui-disabled {
opacity: .78;
box-shadow: 0 10px 20px rgba(37, 99, 235, .18), inset 0 1px 0 rgba(255, 255, 255, .24);
}
}
}
}
.login-verify-popup {
inset: 0;
z-index: 4;
position: absolute;
.login-verify-mask {
inset: 0;
position: absolute;
background: rgba(8, 15, 28, .48);
backdrop-filter: blur(10px);
}
.login-verify-dialog {
top: 50%;
left: 50%;
z-index: 1;
width: min(440px, calc(100% - 32px));
position: absolute;
padding: 22px;
transform: translate(-50%, -46%) scale(.96);
border: 1px solid rgba(255, 255, 255, .18);
border-radius: 24px;
background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(248, 250, 252, .88) 100%);
box-shadow: 0 28px 90px rgba(2, 6, 23, .42), inset 0 1px 0 rgba(255, 255, 255, .52);
opacity: 0;
transition: opacity .22s ease, transform .22s ease;
}
&.is-visible .login-verify-dialog {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
.slider-title {
color: #0f172a;
font-size: 14px;
line-height: 1.7em;
margin-bottom: 12px;
font-weight: 600;
letter-spacing: .02em;
}
.slider-panel {
padding: 12px;
border: 1px solid rgba(148, 163, 184, .18);
border-radius: 18px;
background: rgba(248, 250, 252, .72);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.slider-stage {
height: 164px;
overflow: hidden;
position: relative;
border: 1px solid rgba(148, 163, 184, .12);
border-radius: 16px;
background: #e2e8f0;
}
.slider-bg, .slider-piece {
top: 0;
left: 0;
height: 100%;
position: absolute;
}
.slider-bg {
width: 100%;
display: block;
object-fit: cover;
}
.slider-piece {
width: 16.6667%;
pointer-events: none;
box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}
.slider-bar {
height: 48px;
margin-top: 10px;
overflow: hidden;
position: relative;
border: 1px solid rgba(148, 163, 184, .18);
border-radius: 14px;
background: rgba(255, 255, 255, .86);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.slider-bar-track {
top: 0;
left: 0;
width: 54px;
height: 48px;
position: absolute;
background: linear-gradient(90deg, rgba(20, 184, 166, .28) 0%, rgba(59, 130, 246, .24) 100%);
}
.slider-bar-text {
top: 0;
left: 0;
right: 0;
z-index: 1;
color: #64748b;
font-size: 13px;
line-height: 48px;
position: absolute;
text-align: center;
letter-spacing: 0;
}
.slider-handle {
top: 0;
left: 0;
z-index: 2;
width: 54px;
height: 48px;
color: #0f172a;
display: flex;
cursor: grab;
position: absolute;
align-items: center;
justify-content: center;
border: 1px solid rgba(148, 163, 184, .18);
border-radius: 14px;
background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
&.is-active {
cursor: grabbing;
box-shadow: 0 12px 28px rgba(37, 99, 235, .16);
}
i {
color: #0f766e;
padding: 0;
font-size: 18px;
position: static;
}
}
.slider-actions {
display: flex;
font-size: 12px;
margin-top: 8px;
align-items: center;
justify-content: space-between;
color: #64748b;
letter-spacing: 0;
a {
color: #0f766e;
text-decoration: none;
}
}
.slider-panel.is-success {
.slider-bar-track {
background: linear-gradient(90deg, rgba(22, 163, 74, .26) 0%, rgba(45, 212, 191, .28) 100%);
}
.slider-bar-text {
color: #0f766e;
}
}
.slider-panel.is-error {
.slider-bar-track {
background: linear-gradient(90deg, rgba(239, 68, 68, .24) 0%, rgba(251, 113, 133, .28) 100%);
}
.slider-bar-text {
color: #dc2626;
}
}
}
.footer {
left: 0;
bottom: 0;
z-index: 2;
color: rgba(255, 255, 255, .78);
width: 100%;
position: absolute;
text-align: center;
line-height: 30px;
padding: 0 24px 14px;
text-shadow: 0 6px 18px rgba(15, 23, 42, .18);
letter-spacing: .04em;
a, span {
color: rgba(255, 255, 255, .78);
}
a:hover {
color: #fff;
}
}
}
@media (max-width: 768px) {
.login-container {
&:after {
opacity: .14;
}
form {
padding: 24px 20px 24px;
border-radius: 18px;
h2 {
font-size: 26px;
}
}
.login-verify-popup .login-verify-dialog {
padding: 18px;
}
.footer {
line-height: 1.8em;
padding: 0 18px 12px;
}
}
}
@media (max-width: 480px) {
.login-container {
.header {
padding: 0 16px;
&:before {
left: 16px;
right: 16px;
}
.title {
font-size: 16px;
}
}
form {
width: calc(100% - 28px);
padding: 22px 18px 22px;
}
.login-verify-popup .login-verify-dialog {
width: calc(100% - 20px);
padding: 16px;
}
.login-verify-popup .slider-stage {
height: 148px;
}
}
}