@@ -1,135 +1,103 @@
< template >
< div class = "login" >
< div class = "stage" >
<!-- 左 : 品牌叙事面板 -- >
< aside class = "panel" >
< div class = "panel-top" >
< span class = "mark" > 37 < / span >
< span class = "word" > { { appName || '业务场景工具集' } } < / span >
< span class = "mono panel-code" > { { code } } < / span >
< / div >
<!-- 巨大 37 : 节点阵列 -- >
< div class = "ghost" aria -hidden = " true " > 37 < / div >
< div class = "panel-mid" >
< h1 class = "head line" > 一处登录 , < br / > 驱动所有业务场景 。 < / h1 >
< p class = "slogan" > 考勤 · 审批 · 数据导出 · 定时任务 < br / > 装好即用 , 扫码即入 。 < / p >
< div class = "nodes" >
< div v-for = "(n, i) in nodes" :key="n.label" class="node" :class="{ act: n.act }" >
< span class = "n-idx mono" > 0 { { i + 1 } } < / span >
< span class = "n-txt" > { { n . label } } < / span >
< i class = "n-dot" > < / i >
< / div >
< / div >
< / div >
< div class = "panel-foot mono" > { { foot } } < / div >
< / aside >
<!-- 右 : 认证面板 -- >
< section class = "auth" >
< div class = "auth-head" >
< span class = "mono auth-index" > AUTH / 01 < / span >
< h2 class = "auth-title" > 欢迎回来 < / h2 >
< p class = "auth-sub" > 使用统一账号或钉钉扫码登录 < / p >
< / div >
< el-form label -position = " top " @submit.prevent ="doLogin" >
< el -form -item label = "账号" >
< el-input
v-model = "account"
placeholder = "账号"
autocomplete = "username"
size = "large"
:prefix-icon = "User"
clearable
@keyup.enter ="doLogin"
/ >
< / el-form-item >
< el-form-item label = "密码" >
< el-input
v-model = "password"
type = "password"
placeholder = "密码"
autocomplete = "current-password"
size = "large"
:prefix-icon = "Lock"
show -password
@keyup.enter ="doLogin"
/ >
< / el-form-item >
< el-button type = "primary" size = "large" class = "primary" :loading = "busy" @click ="doLogin" >
{{ busy ? ' 校验中 … ' : ' 登 录 ' }}
< / el -button >
< / el-form >
< div class = "divider" > < span > 或使用钉钉登录 < / span > < / div >
< el-button size = "large" class = "dingtalk" :loading = "dingBusy" :icon = "ChatDotRound" @click ="openDing" > 钉钉扫码登录 < / el -button >
<!-- 内嵌二维码 : 本页内渲染钉钉二维码 , 扫码即登录 ( 不弹浏览器 ) -- >
< div v-if = "inlineOpen" class="inline-qr" >
< div ref = "qrBoxEl" class = "qr-box" > < div id = "ding_qr_container" > < / div > < / div >
< p class = "ding-tip" > 用钉钉 App 扫码 , 自动登录 / 自动建号 ( 新账号首次登录请改密 ) < / p >
< div class = "qr-actions" >
< el-link type = "primary" :underline = "false" @click ="openDingWindow" > 改用浏览器窗口授权 < / el -link >
< / div >
< / div >
< / section >
<!-- 基线管道 : 流程节点 -- >
< div class = "pipe line" aria -hidden = " true " >
< i > < / i > < i > < / i > < i > < / i >
< / div >
<!-- 真实钉钉扫码 ( 配置了开放平台应用时 window . open 扫码页 ; 否则回落到工号录入 ) -- >
< el-dialog v-model = "dingOpen" title="钉钉登录" width="360px" align -center >
< p class = "ding-tip" > 完成钉钉扫码后 , 填入工号与姓名即自动建立 / 匹配账号 。 < br > 新账号默认无插件权限 , 首次登录请改密 。 < / p >
< el-form label -position = " top " @submit.prevent ="doDing" >
< el -form -item label = "工号(作为账号)" >
< el-input v-model = "dingAccount" placeholder="钉钉工号" size="large" :disabled="dingBusy" @keyup.enter="doDing" / >
<!-- 顶部 : 品牌 + 系统状态 -- >
< header class = "topbar" >
< div class = "brand" >
< span class = "mark" > 37 < / span >
< span class = "name" > { { appName || '37du 自动化工作台' } } < / span >
< / div >
< div class = "sys" >
< span class = "dot" aria -hidden = " true " > < / span >
< span > 引擎运行中 < / span >
< / div >
< / header >
<!-- 中央 : 接入终端 -- >
< main class = "panel" >
< span class = "core-mark" > 37 CORE · AUTOMATION < / span >
< h1 > 自动化工作台 < / h1 >
< p class = "sub" > 使用统一账号或钉钉扫码 , 进入你的流程中心 < / p >
< el-form label -position = " top " class = "form" @submit.prevent ="doLogin" >
< el -form -item label = "员工账号" >
< el-input
v-model = "account"
placeholder = "请输入账号"
autocomplete = "username"
size = "large"
clearable
@keyup.enter ="doLogin"
/ >
< / el-form-item >
< el-form-item label = "姓名 " >
< el-input v-model = "dingName" placeholder="钉钉姓名" size="large" :disabled="dingBusy" @keyup.enter="doDing" / >
< el-form-item label = "密码 " >
< el-input
v-model = "password"
type = "password"
placeholder = "请输入密码"
autocomplete = "current-password"
size = "large"
show -password
@keyup.enter ="doLogin"
/ >
< / el-form-item >
< el-button
type = "primary"
size = "large"
class = "primary"
:loading = "busy"
@click ="doLogin"
>
{ { busy ? '进 入 中 …' : '进 入 工 作 台' } }
< / el-button >
< / el-form >
< template # footer >
< el-button @click ="dingOpen = false "> 取消 < / el -button >
< el-button type = "primary" :loading = "dingBusy" @click ="doDing" > 确认登录 < / el -button >
< / template >
< / el-dialog >
< div class = "divider "> < span > 或 < / span > < / div >
< el-button
size = "large"
class = "dingtalk"
:loading = "dingBusy"
:icon = "ChatDotRound"
@click ="openDing"
>
钉钉扫码接入
< / el-button >
< / main >
<!-- 底部 : 流程状态 -- >
< footer class = "footbar" >
< div class = "flows" >
< span > 接入终端就绪 < / span >
< span class = "f-blocks" aria -hidden = " true " >
< i > < / i > < i > < / i > < i > < / i > < i > < / i > < i > < / i >
< / span >
< / div >
< span class = "copyright" > © 37 du 自动化工作台 < / span >
< / footer >
< / div >
< / template >
< script setup >
import { ref , onMounted , onUnmounted , nextTick } from 'vue'
import { ref } from 'vue'
import { ElMessage , ElMessageBox } from 'element-plus'
import { User , Lock , ChatDotRound } from '@element-plus/icons-vue'
import { adminLogin , adminDingtalkLogin , adminDingtalkQr , adminPassword , adminDingtalkInlineQr , adminDingtalkInlineLogin , authDingtalk } from '../api'
import { ChatDotRound } from '@element-plus/icons-vue'
import { adminLogin , adminPassword , authDingtalk } from '../api'
const props = defineProps ( { appName : { type : String , default : '' } } )
defineProps ( { appName : { type : String , default : '' } } )
const emit = defineEmits ( [ 'ok' ] )
const account = ref ( '' )
const password = ref ( '' )
const busy = ref ( false )
const dingOpen = ref ( false )
const dingBusy = ref ( false )
const dingAccount = ref ( '' )
const dingName = ref ( '' )
const dingUrl = ref ( '' )
// 内嵌二维码状态
const inlineOpen = ref ( false )
const qrBoxEl = ref ( null )
const dingGoto = ref ( '' )
let ddMsgHandler = null
/* ---------- 蓝本展示数据(纯装饰,无逻辑) ---------- */
const nodes = [
{ label : '统一身份与权限' , act : true } ,
{ label : '插件仓库与更新' , act : true } ,
{ label : '执行调度与日志' } ,
{ label : '离线兜底运行' } ,
]
const code = 'v0.31.0'
const foot = '37DU AUTOMATION · SERVICE SHELL · 2026'
onMounted ( async ( ) => {
try { const r = await adminDingtalkQr ( ) ; dingUrl . value = r . url || '' } catch ( _ ) { }
} )
async function doLogin ( ) {
if ( busy . value ) return
@@ -138,7 +106,12 @@ async function doLogin() {
try {
const r = await adminLogin ( account . value , password . value )
ElMessage . success ( '登录成功' )
emit ( 'ok' , { account : account . value . trim ( ) , is _admin : ! ! r . is _admin , dept : r . dept || '' , must _change _pwd : ! ! r . must _change _pwd } )
emit ( 'ok' , {
account : account . value . trim ( ) ,
is _admin : ! ! r . is _admin ,
dept : r . dept || '' ,
must _change _pwd : ! ! r . must _change _pwd
} )
} catch ( e ) {
ElMessage . error ( '登录失败:' + ( e . message || e ) )
} finally {
@@ -146,113 +119,21 @@ async function doLogin() {
}
}
// 钉钉扫码登录:壳后端直接生成授权 URL,当前窗口跳转钉钉;扫码后浏览器自动跳回 /auth/done
async function openDing ( ) {
if ( dingBusy . value ) return
dingBusy . value = true
// v3 钉钉直连接登录:壳后端生成授权 URL( redirect_uri=本机 /auth/done),当前窗口跳转钉钉。
try {
const r = await authDingtalk ( )
if ( r && r . url ) {
window . location . href = r . url // 当前窗口跳转;扫码后浏览器跳回 /auth/done → 云端换身份 → 回主页
window . location . href = r . url
return
}
ElMessage . error ( '钉钉登录未配置,请联系管理员' )
} catch ( e ) {
ElMessage . error ( '钉钉登录不可用:' + ( e . message || e ) )
}
dingBusy . value = false
// 兜底:未配置钉钉应用时回落到工号录入
if ( ! dingAccount . value ) dingAccount . value = account . value . trim ( )
dingOpen . value = true
}
function openDingWindow ( ) {
// 链接授权:新窗口打开钉钉二维码页(中心机换取身份后回跳建会话)
if ( dingUrl . value ) {
const w = window . open ( dingUrl . value , 'dingLogin' , 'width=460,height=560,menubar=no,toolbar=no,status=no' )
if ( w ) return
}
if ( ! dingAccount . value ) dingAccount . value = account . value . trim ( )
dingOpen . value = true // 工号录入兜底
}
function loadDdLogin ( ) {
if ( window . DDLogin ) { renderDdLogin ( ) ; return }
const s = document . createElement ( 'script' )
s . src = 'https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js'
s . async = true
s . onload = renderDdLogin
s . onerror = ( ) => {
ElMessage . error ( '加载钉钉二维码组件失败,已改用浏览器窗口授权' )
inlineOpen . value = false
openDingWindow ( )
}
document . head . appendChild ( s )
if ( ! ddMsgHandler ) {
ddMsgHandler = ( ev ) => {
if ( ev . origin && /(?:^|\.)(?:login|oapi|qr|auth|api)\.dingtalk\.com$/ . test (
new URL ( ev . origin ) . hostname || ev . origin ) ) {
const code = ev . data && ev . data . loginTmpCode ? ev . data . loginTmpCode : ev . data
if ( code && typeof code === 'string' ) loginInline ( code )
}
}
window . addEventListener ( 'message' , ddMsgHandler )
}
}
function renderDdLogin ( ) {
if ( ! window . DDLogin || ! document . getElementById ( 'ding_qr_container' ) ) return
new window . DDLogin ( {
id : 'ding_qr_container' ,
goto : dingGoto . value ,
style : 'border:none;background:#fff;' ,
width : '260' ,
height : '260' ,
} )
}
async function loginInline ( code ) {
if ( dingBusy . value ) return
dingBusy . value = true
try {
const r = await adminDingtalkInlineLogin ( code )
ElMessage . success ( r . created ? '已自动建立账号,登录成功' : '登录成功' )
inlineOpen . value = false
if ( r . must _change _pwd ) {
await promptChangePwd ( r . account || account . value , r )
} else {
emit ( 'ok' , { account : r . account , is _admin : ! ! r . is _admin , dept : '' , created : ! ! r . created , nickname : r . nickname || '' } )
}
} catch ( e ) {
ElMessage . error ( '登录失败:' + ( e . message || e ) )
} finally {
dingBusy . value = false
}
}
onUnmounted ( ( ) => {
if ( ddMsgHandler ) window . removeEventListener ( 'message' , ddMsgHandler )
} )
async function doDing ( ) {
if ( dingBusy . value ) return
if ( ! dingAccount . value . trim ( ) ) { ElMessage . warning ( '请输入钉钉工号' ) ; return }
if ( ! dingName . value . trim ( ) ) { ElMessage . warning ( '请输入钉钉姓名' ) ; return }
dingBusy . value = true
const acc = dingAccount . value . trim ( )
try {
const r = await adminDingtalkLogin ( acc , dingName . value . trim ( ) )
ElMessage . success ( r . created ? '已自动建立账号,登录成功' : '登录成功' )
dingOpen . value = false
if ( r . must _change _pwd ) {
await promptChangePwd ( acc , r )
} else {
emit ( 'ok' , { account : acc , is _admin : ! ! r . is _admin , dept : '' , created : ! ! r . created , nickname : r . nickname || '' } )
}
} catch ( e ) {
ElMessage . error ( '登录失败:' + ( e . message || e ) )
} finally {
dingBusy . value = false
}
}
async function promptChangePwd ( acc , r ) {
@@ -274,216 +155,450 @@ async function promptChangePwd(acc, r) {
< / script >
< style scoped >
/* ================= 精密蓝本 · 分屏编辑式登录 =================
暖纸底 + 墨色 + 赭红强调,发丝线 / 索引编号 / 制图节点营造"精密、可靠"。 */
/* =========================================== =================
暖米画布 + 工程网格 + 点阵 37 + 接入终端
- 精密感来自网格与节点,不来自阴影
- 体温红只出现在:port 聚焦、主按钮、管线节点、状态点
============================================================ */
/* ---------- 画布 ---------- */
. login {
position : relative ;
height : 100 % ;
min - height : 100 vh ;
min - height : 100 dvh ;
box - sizing : border - box ;
overflow : auto ;
padding : 42 px 32 px ;
display : flex ;
align - items : center ;
justify - content : center ;
background - color : # eeece4 ;
background - image :
radial - gradient ( 1200 px 700 px at 82 % - 8 % , rgba ( 208 , 74 , 36 , .07 ) , transparent 55 % ) ,
radial - gradient ( 1000 px 700 px at 6 % 108 % , rgba ( 32 , 34 , 38 , .06 ) , transparent 55 % ) ;
font - family : var ( -- font - body ) ;
color : # 17181 a ;
padding : 110 px 24 px 170 px ;
overflow : hidden ;
background : # EDE7DB ;
color : # 1 C1712 ;
font - family : var ( -- font - body , - apple - system , BlinkMacSystemFont , 'Segoe UI' , 'PingFang SC' , sans - serif ) ;
}
/* 全屏细网格 */
/* 工程网格:边缘径向淡出 */
. login : : before {
content : '' ;
position : fixed ;
position : absolute ;
inset : 0 ;
pointer - events : none ;
z - index : 0 ;
background - image :
linear - gradient ( rgba ( 23 , 24 , 26 , .045 ) 1 px , transparent 1 px ) ,
linear - gradient ( 90 deg , rgba ( 23 , 24 , 26 , .045 ) 1 px , transparent 1 px ) ;
background - size : 52 px 52 px ;
- webkit - mask - image : radial - gradient ( circle at 50 % 42 % , # 000 , transparent 74 % ) ;
mask - image : radial - gradient ( circle at 50 % 42 % , # 000 , transparent 74 % ) ;
linear - gradient ( rgba ( 28 , 23 , 18 , .045 ) 1 px , transparent 1 px ) ,
linear - gradient ( 90 deg , rgba ( 28 , 23 , 18 , .045 ) 1 px , transparent 1 px ) ;
background - size : 44 px 44 px ;
- webkit - mask - image : radial - gradient ( ellipse 70 % 60 % at 50 % 45 % , # 000 20 % , transparent 78 % ) ;
mask - image : radial - gradient ( ellipse 70 % 60 % at 50 % 45 % , # 000 20 % , transparent 78 % ) ;
pointer - events : none ;
}
. mono { font - family : var ( -- font - mono ) ; letter - spacing : .04 em ; }
/* ---------- 舞台 ---------- */
. stage {
position : relative ;
z - index : 1 ;
width : min ( 1080 px , 100 % ) ;
display : grid ;
grid - template - columns : 1.08 fr 1 fr ;
min - height : 600 px ;
border - radius : 24 px ;
overflow : hidden ;
border : 1 px solid rgba ( 23 , 24 , 26 , .09 ) ;
box - shadow :
0 50 px 120 px - 48 px rgba ( 23 , 24 , 26 , .5 ) ,
0 6 px 24 px - 8 px rgba ( 23 , 24 , 26 , .14 ) ;
animation : rise .6 s cubic - bezier ( .22 , 1 , .36 , 1 ) both ;
}
@ keyframes rise {
from { opacity : 0 ; transform : translateY ( 18 px ) scale ( .985 ) ; }
to { opacity : 1 ; transform : none ; }
}
/* ---------- 左:品牌叙事面板 ---------- */
. panel {
display : flex ;
flex - direction : column ;
justify - content : space - between ;
padding : 42 px 46 px 36 px ;
color : # eceadf ;
background :
radial - gradient ( 560 px 420 px at 110 % - 10 % , rgba ( 208 , 74 , 36 , .28 ) , transparent 60 % ) ,
radial - gradient ( 460 px 380 px at - 12 % 112 % , rgba ( 90 , 98 , 110 , .35 ) , transparent 62 % ) ,
# 1 a1c1f ;
position : relative ;
}
. panel : : after { /* 左侧制图导轨 */
/* 顶部暖辉光 */
. login : : after {
content : '' ;
position : absolute ;
top : 0 ; bottom : 0 ; left : 22 px ;
width : 1 px ;
background : linear - gradient ( rgba ( 236 , 234 , 223 , .16 ) , rgba ( 236 , 234 , 223 , .02 ) ) ;
inset : 0 ;
z - index : 0 ;
background : radial - gradient ( 660 px 480 px at 50 % 38 % , rgba ( 209 , 74 , 43 , .06 ) , transparent 68 % ) ;
pointer - events : none ;
}
. panel - top { display : flex ; align - items : center ; gap : 12 px ; }
. mark {
width : 40 px ; height : 40 px ; flex : none ;
display : grid ; place - items : center ;
border - radius : 10 px ;
background : # d04a24 ;
color : # fdfbf4 ;
font - weight : 800 ; font - size : 15 px ; letter - spacing : .01 em ;
box - shadow : 0 8 px 22 px - 6 px rgba ( 208 , 74 , 36 , .6 ) ;
}
. word { font - size : 14 px ; font - weight : 600 ; letter - spacing : .02 em ; }
. panel - code { margin - left : auto ; font - size : 11 px ; opacity : .5 ; }
. panel - mid { padding : 8 px 12 px 0 0 ; }
. headline {
margin : 0 0 18 px ;
font - size : 33 px ;
line - height : 1.24 ;
font - weight : 700 ;
letter - spacing : .005 em ;
/* ---------- 巨大 37:节点阵列 ---------- */
. ghost {
position : absolute ;
left : 50 % ;
bottom : - 0.12 em ;
transform : translateX ( - 50 % ) ;
font - family : 'Helvetica Neue' , 'Arial Narrow' , Arial , sans - serif ;
font - size : clamp ( 280 px , 74 vw , 640 px ) ;
font - weight : 800 ;
line - height : .72 ;
letter - spacing : - .08 em ;
white - space : nowrap ;
pointer - events : none ;
user - select : none ;
z - index : 1 ;
color : rgba ( 28 , 23 , 18 , .05 ) ; /* 兜底 */
animation : breathe 7 s ease - in - out infinite ;
}
. headline : : after {
content : '' ;
display : block ;
width : 34 px ; height : 3 px ; margin - top : 22 px ;
background : # d04a24 ;
border - radius : 3 px ;
@ keyframes breathe {
0 % , 100 % { opacity : .8 ; }
50 % { opacity : 1 ; }
}
@ supports ( ( - webkit - background - clip : text ) or ( background - clip : text ) ) {
. ghost {
color : transparent ;
background - image : radial - gradient ( circle at 1 px 1 px ,
rgba ( 28 , 23 , 18 , .16 ) 1 px , transparent 1.9 px ) ;
background - size : 9 px 9 px ;
- webkit - background - clip : text ;
background - clip : text ;
}
}
. slogan { margin : 22 px 0 34 px ; font - size : 13.5 px ; line - height : 1.95 ; opacity : .62 ; }
. nodes { display : flex ; flex - direction : column ; gap : 20 px ; }
. node { display : flex ; align - items : center ; gap : 14 px ; }
. n - idx { width : 30 px ; font - size : 12 px ; opacity : .45 ; }
. n - txt { font - size : 14.5 px ; letter - spacing : .01 em ; color : rgba ( 236 , 234 , 223 , .72 ) ; }
. node . act . n - txt { color : # f3f1e6 ; font - weight : 600 ; }
. n - dot {
width : 7 px ; height : 7 px ; border - radius : 50 % ;
margin - left : auto ;
background : # 2 a2d31 ;
border : 1 px solid rgba ( 236 , 234 , 223 , .22 ) ;
/* ---------- 基线管道 ---------- */
. pipeline {
position : absolute ;
left : 50 % ;
bottom : 0 ;
transform : translateX ( - 50 % ) ;
width : min ( 920 px , 92 vw ) ;
height : 1 px ;
background : linear - gradient ( 90 deg ,
transparent , rgba ( 28 , 23 , 18 , .14 ) 18 % ,
rgba ( 28 , 23 , 18 , .14 ) 82 % , transparent ) ;
z - index : 1 ;
pointer - events : none ;
}
. node . act . n - dot {
background : # d04a24 ;
box - shadow : 0 0 0 4 px rgba ( 208 , 74 , 36 , .22 ) ;
border - color : transparent ;
. pipeline i {
position : absolute ;
top : - 2 px ;
width : 5 px ;
height : 5 px ;
border - radius : 50 % ;
background : # D14A2B ;
box - shadow : 0 0 0 3 px rgba ( 209 , 74 , 43 , .10 ) ;
}
. pipeline i : nth - child ( 1 ) { left : 22 % ; }
. pipeline i : nth - child ( 2 ) { left : 50 % ; animation : blip 3.6 s ease - in - out infinite ; }
. pipeline i : nth - child ( 3 ) { left : 78 % ; }
@ keyframes blip {
0 % , 100 % { opacity : .35 ; transform : scale ( .85 ) ; }
50 % { opacity : 1 ; transform : scale ( 1.1 ) ; }
}
. panel - foot { font - size : 10.5 px ; opacity : .38 ; letter - spacing : .12 em ; }
/* ---------- 右:认证面板 ---------- */
. auth {
background : # f6f4ec ;
padding : 46 px 50 px 40 px ;
/* ---------- 顶部栏 ---------- */
. topbar {
position : absolute ;
top : 40 px ;
left : 48 px ;
right : 48 px ;
display : flex ;
flex - direction : column ;
justify - content : center ;
align - items : center ;
justify - content : space - between ;
z - index : 3 ;
}
. auth - head { margin - bottom : 26 px ; }
. auth - index { font - size : 11 px ; color : # d04a24 ; letter - spacing : .16 em ; }
. auth - title { margin : 10 px 0 6 px ; font - size : 24 px ; font - weight : 700 ; letter - spacing : .01 em ; }
. auth - sub { margin : 0 ; font - size : 13 px ; color : # 6 c6e74 ; }
/* ---------- 表单 ---------- */
. auth : deep ( . el - form - item ) { margin - bottom : 20 px ; }
. auth : deep ( . el - form - item _ _label ) {
font - size : 12.5 px ; color : # 4 a4b50 ; font - weight : 600 ;
padding - bottom : 7 px ;
}
. auth : deep ( . el - input _ _wrapper ) {
. brand { display : flex ; align - items : center ; gap : 10 px ; }
. mark {
width : 28 px ;
height : 28 px ;
flex : none ;
display : grid ;
place - items : center ;
border - radius : 8 px ;
background : # fbfaf5 ;
box - shadow : 0 0 0 1 px # ded9ca inset ;
padding : 2 px 12 px ;
transition : box - shadow .2 s , background - color .2 s ;
background : # D14A2B ;
color : # F7F2E8 ;
font - size : 11 px ;
font - weight : 800 ;
letter - spacing : .01 em ;
font - family : 'Helvetica Neue' , Arial , sans - serif ;
}
. auth : deep ( . el - input _ _wrapper : hover ) { box - shadow : 0 0 0 1 px # cdc7b4 inset ; }
. auth : deep ( . el - input _ _wrapper . is - focus ) {
background : # fff ;
box - shadow : 0 0 0 1.5 px # d04a24 inset , 0 8 px 22 px - 12 px rgba ( 208 , 74 , 36 , .5 ) ;
. name {
font - size : 12.5 px ;
font - weight : 500 ;
letter - spacing : .04 em ;
color : # 6 B6155 ;
}
. sys {
display : flex ;
align - items : center ;
gap : 8 px ;
font - size : 10.5 px ;
letter - spacing : .12 em ;
color : # 6 F6659 ;
}
. dot {
width : 6 px ;
height : 6 px ;
border - radius : 50 % ;
background : # D14A2B ;
animation : pulse 2.4 s ease - out infinite ;
}
@ keyframes pulse {
0 % { box - shadow : 0 0 0 0 rgba ( 209 , 74 , 43 , .4 ) ; }
70 % { box - shadow : 0 0 0 7 px rgba ( 209 , 74 , 43 , 0 ) ; }
100 % { box - shadow : 0 0 0 0 rgba ( 209 , 74 , 43 , 0 ) ; }
}
. sep { color : # C4BBA8 ; }
/* ---------- 中央:接入终端 ---------- */
. panel {
position : relative ;
z - index : 2 ;
width : 100 % ;
max - width : 360 px ;
padding : 40 px 36 px 36 px ;
background : # F8F4EC ;
border : 1 px solid # DDD4C2 ;
border - radius : 14 px ;
box - shadow :
0 1 px 0 rgba ( 255 , 255 , 255 , .9 ) inset ,
0 24 px 48 px - 28 px rgba ( 28 , 23 , 18 , .30 ) ;
animation : rise .45 s cubic - bezier ( .22 , 1 , .36 , 1 ) both ;
}
@ keyframes rise {
from { opacity : 0 ; transform : translateY ( 10 px ) ; }
to { opacity : 1 ; transform : none ; }
}
/* 卡片内元素依次点亮:终端端口逐个上电 */
@ keyframes seq {
from { opacity : 0 ; transform : translateY ( 7 px ) ; }
to { opacity : 1 ; transform : none ; }
}
. core - mark { animation : seq .5 s .05 s both ; }
. panel h1 { animation : seq .5 s .10 s both ; }
. panel . sub { animation : seq .5 s .15 s both ; }
. form { animation : seq .55 s .20 s both ; }
. divider { animation : seq .5 s .26 s both ; }
. dingtalk { animation : seq .5 s .32 s both ; }
/* 底部金手指纹理 */
. panel : : after {
content : '' ;
position : absolute ;
left : 36 px ;
right : 36 px ;
bottom : 0 ;
height : 3 px ;
background - image : repeating - linear - gradient (
to right ,
rgba ( 201 , 191 , 171 , .65 ) 0 8 px ,
transparent 8 px 12 px
) ;
pointer - events : none ;
}
. core - mark {
display : block ;
margin - bottom : 20 px ;
font - family : 'Helvetica Neue' , Arial , sans - serif ;
font - size : 10 px ;
font - weight : 700 ;
letter - spacing : .18 em ;
color : # D14A2B ;
}
. panel h1 {
margin : 0 0 8 px ;
font - size : 26 px ;
font - weight : 700 ;
line - height : 1.2 ;
letter - spacing : - .01 em ;
color : # 1 C1712 ;
}
. panel . sub {
margin : 0 0 34 px ;
font - size : 13 px ;
line - height : 1.6 ;
color : # 635 A4D ;
}
/* ---------- 表单:接口式输入 ---------- */
. form : deep ( . el - form - item ) {
position : relative ;
padding - left : 16 px ;
margin - bottom : 26 px ;
}
. form : deep ( . el - form - item _ _content ) {
position : relative ;
line - height : normal ;
}
/* 左侧接口指示灯 */
. form : deep ( . el - form - item _ _content ) : : before {
content : '' ;
position : absolute ;
left : - 16 px ;
top : 50 % ;
transform : translateY ( - 50 % ) ;
width : 6 px ;
height : 6 px ;
border - radius : 1 px ;
background : # C9BFAB ;
transition : background .2 s , box - shadow .2 s ;
}
. form : deep ( . el - form - item : focus - within . el - form - item _ _content ) : : before {
background : # D14A2B ;
box - shadow : 0 0 0 3 px rgba ( 209 , 74 , 43 , .12 ) ;
}
. form : deep ( . el - form - item _ _label ) {
padding - bottom : 6 px ;
font - size : 12 px ;
font - weight : 500 ;
letter - spacing : .02 em ;
line - height : 1.4 ;
color : # 635 A4D ;
}
/* 底线式输入 */
. form : deep ( . el - input _ _wrapper ) {
padding : 0 ;
background : transparent ;
border - radius : 0 ;
box - shadow : none ! important ;
border - bottom : 1 px solid # D8D0BC ;
transition : border - color .2 s ;
}
. form : deep ( . el - input _ _wrapper : hover ) {
border - bottom - color : # BCB29A ;
}
. form : deep ( . el - input _ _wrapper . is - focus ) {
border - bottom - color : # D14A2B ;
}
. form : deep ( . el - input _ _inner ) {
height : 44 px ;
padding : 0 ;
font - size : 15 px ;
color : # 1 C1712 ;
caret - color : # D14A2B ;
}
. form : deep ( . el - input _ _inner : : placeholder ) {
color : # 9 A8F7A ;
}
. form : deep ( . el - input _ _suffix ) ,
. form : deep ( . el - input _ _prefix ) ,
. form : deep ( . el - input _ _suffix - inner ) {
color : # 9 A8F7A ;
}
. form : deep ( . el - input _ _suffix - inner . el - input _ _icon : hover ) {
color : # 635 A4D ;
}
. auth : deep ( . el - input _ _inner ) { color : # 17181 a ; height : 44 px ; }
/* ---------- 主按钮 ---------- */
. primary {
width : 100 % ; height : 46 px ; margin - top : 2 px ;
border : none ; border - radius : 8 px ;
background : # 17181 a ;
color : # f6f4ec ;
font - weight : 600 ; letter - spacing : .14 em ;
box - shadow : 0 10 px 26 px - 12 px rgba ( 23 , 24 , 26 , .7 ) ;
transition : transform .12 s , background - color .15 s , box - shadow .12 s ;
. primary . el - button {
width : 100 % ;
height : 48 px ;
margin - top : 6 px ;
border : none ;
border - radius : 8 px ;
background : # D14A2B ;
color : # FFF8F2 ;
font - size : 14 px ;
font - weight : 600 ;
letter - spacing : .12 em ;
box - shadow : 0 12 px 28 px - 14 px rgba ( 209 , 74 , 43 , .7 ) ;
transition : background - color .15 s , opacity .15 s , transform .12 s ease , box - shadow .15 s ease ;
}
. primary . el - button : hover ,
. primary . el - button : focus {
background : # BB3F21 ;
color : # FFF8F2 ;
transform : translateY ( - 1 px ) ;
box - shadow : 0 15 px 30 px - 14 px rgba ( 209 , 74 , 43 , .78 ) ;
}
. primary . el - button : active {
background : # A53517 ;
transform : translateY ( 1 px ) scale ( .99 ) ;
box - shadow : 0 6 px 16 px - 12 px rgba ( 209 , 74 , 43 , .8 ) ;
}
. primary . el - button . is - disabled ,
. primary . el - button . is - loading {
background : # D14A2B ;
opacity : .55 ;
}
. primary : hover { background : # 26282 c ; transform : translateY ( - 1 px ) ; box - shadow : 0 14 px 30 px - 12 px rgba ( 23 , 24 , 26 , .7 ) ; }
. primary : active { transform : none ; }
. primary : disabled { opacity : .55 ; }
/* ---------- 钉钉 ---------- */
/* ---------- 分隔线 ---------- */
. divider {
display : flex ; align - items : center ; gap : 12 px ;
color : # 9 a968a ; font - size : 11 px ; letter - spacing : .06 em ;
margin : 26 px 0 14 px ;
display : flex ;
align - items : center ;
gap : 14 px ;
margin : 28 px 0 16 px ;
font - size : 11.5 px ;
letter - spacing : .04 em ;
color : # 8 D8476 ;
}
. divider : : before , . divider : : after { content : '' ; height : 1 px ; flex : 1 ; background : # ded9ca ; }
. dingtalk {
width : 100 % ; height : 46 px ; border - radius : 8 px ;
border : none ; color : # fff ;
background : linear - gradient ( 120 deg , # 1491 f0 , # 0 a7cdf ) ;
font - weight : 600 ; letter - spacing : .04 em ;
box - shadow : 0 10 px 26 px - 12 px rgba ( 10 , 124 , 223 , .6 ) ;
transition : transform .12 s , filter .12 s ;
. divider : : before ,
. divider : : after {
content : '' ;
flex : 1 ;
height : 1 px ;
background : # E0D9C6 ;
}
. dingtalk : hover { color : # fff ; filter : brightness ( 1.04 ) ; transform : translateY ( - 1 px ) ; }
. dingtalk : active { transform : none ; }
/* ---------- 内嵌二维码兜底 ---------- */
. inline - qr { margin - top : 18 px ; text - align : center ; }
. qr - box { width : 240 px ; height : 240 px ; margin : 0 auto 8 px ; border : 1 px solid rgba ( 23 , 24 , 26 , .08 ) ; border - radius : 10 px ; overflow : hidden ; background : # fff ; display : flex ; align - items : center ; justify - content : center ; }
. qr - box : deep ( # ding _qr _container ) { margin : 0 auto ; }
. qr - actions { margin - top : 4 px ; }
. qr - actions . el - link { font - size : 12 px ; }
. ding - tip { margin : 0 0 14 px ; font - size : 12 px ; line - height : 1.7 ; color : # 6 c6e74 ; }
/* ---------- 钉钉按钮 ---------- */
. dingtalk . el - button {
width : 100 % ;
height : 48 px ;
border - radius : 8 px ;
border : 1 px solid # DED6C2 ;
background : # FDFBF6 ;
color : # 1 C1712 ;
font - size : 14 px ;
font - weight : 500 ;
letter - spacing : .02 em ;
transition : border - color .15 s , background - color .15 s , transform .12 s ease , box - shadow .15 s ease ;
}
. dingtalk . el - button : hover ,
. dingtalk . el - button : focus {
border - color : # C4BBA8 ;
background : # FFFFFF ;
color : # 1 C1712 ;
transform : translateY ( - 1 px ) ;
box - shadow : 0 8 px 20 px - 14 px rgba ( 28 , 23 , 18 , .28 ) ;
}
. dingtalk . el - button : active {
transform : translateY ( 0 ) scale ( .99 ) ;
}
. dingtalk . el - button : deep ( . el - icon ) {
color : # 1491 F0 ;
}
/* ---------- 键盘可达 ---------- */
. primary . el - button : focus - visible ,
. dingtalk . el - button : focus - visible {
outline : 2 px solid # D14A2B ;
outline - offset : 3 px ;
}
/* ---------- 底部:流程状态 ---------- */
. footbar {
position : absolute ;
bottom : 40 px ;
left : 48 px ;
right : 48 px ;
display : flex ;
align - items : center ;
justify - content : space - between ;
z - index : 3 ;
}
. flows {
display : flex ;
align - items : center ;
gap : 10 px ;
font - size : 10.5 px ;
letter - spacing : .12 em ;
color : # 6 F6659 ;
}
. f - blocks { display : flex ; gap : 3 px ; }
. f - blocks i {
width : 12 px ;
height : 4 px ;
border - radius : 1 px ;
background : # C9BEAA ;
}
. copyright {
font - size : 10.5 px ;
letter - spacing : .1 em ;
color : # 9 A8F7C ;
}
/* ---------- 自适应 ---------- */
@ media ( max - width : 860 px ) {
. stage { grid - template - columns : 1 fr ; min - height : 0 ; }
. panel { padding : 30 px 34 px ; min - height : 300 px ; }
. auth { padding : 34 px 30 px ; }
. panel - mid { padding - top : 4 px ; }
@ media ( max - width : 720 px ) {
. login { padding : 96 px 20 px 140 px ; }
. topbar { top : 24 px ; left : 24 px ; right : 24 px ; }
. footbar { bottom : 24 px ; left : 24 px ; right : 24 px ; }
. panel { padding : 32 px 24 px 30 px ; }
. panel h1 { font - size : 23 px ; }
. panel : : after { left : 24 px ; right : 24 px ; }
. copyright { display : none ; }
}
@ media ( max - height : 640 px ) {
. login { padding : 22 px 18 px ; }
. panel { justify - content : flex - start ; gap : 26 px ; }
. nodes { gap : 14 px ; }
@ media ( max - height : 680 px ) {
. login {
align - items : flex - start ;
overflow - x : hidden ;
overflow - y : auto ;
padding : 80 px 24 px 120 px ;
}
. footbar { display : none ; }
}
@ media ( prefers - reduced - motion : reduce ) {
. stage { animation : none ; }
. dot , . pipeline i , . ghost { animation : none ; }
. panel { animation : none ; }
. core - mark , . panel h1 , . panel . sub , . form , . divider , . dingtalk { animation : none ; }
* { transition - duration : .01 ms ! important ; }
}
< / style >