fix
parent
3d987bdfdf
commit
244dda0235
File diff suppressed because it is too large
Load Diff
|
|
@ -1,10 +1,6 @@
|
|||
// ============================================================
|
||||
// 2026-08-08 依据原型 V1.6 register.html「认证信息填报页」1:1 还原
|
||||
// 变更原因:原型为原生 HTML/CSS(非 antd),需按原型样式、布局、颜色、边框、字体、
|
||||
// 按钮、响应式做 1:1 还原。
|
||||
// 变更逻辑:将原型 register.html 内联 CSS 迁入本文件,置于 .register-more 命名空间下
|
||||
// 避免影响全局;保留 .audit-look 审核中动画等既有区块。
|
||||
// 变更理由:最小侵入、样式与原型一一对应,支持 max-width:760px 响应式单列布局。
|
||||
// 认证信息填报页样式(antd Form 重构后仅保留页面级布局:hero / steps / card / state)
|
||||
// 表单控件样式由 antd Form / Input / InputNumber / Checkbox / Upload / Button 接管。
|
||||
// ============================================================
|
||||
.register-more {
|
||||
// 背景
|
||||
|
|
@ -15,7 +11,7 @@
|
|||
box-sizing: border-box;
|
||||
padding-bottom: 40px;
|
||||
|
||||
// ---- hero 头图区(原型 .hero)----
|
||||
// ---- hero 头图区 ----
|
||||
.register-more-hero {
|
||||
height: 230px;
|
||||
background: linear-gradient(90deg, #eef3fb, #fff, #e7f0ff);
|
||||
|
|
@ -30,14 +26,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
// ---- 内容容器(原型 .wrap)----
|
||||
// ---- 内容容器 ----
|
||||
.register-more-wrap {
|
||||
max-width: 1180px;
|
||||
margin: auto;
|
||||
padding: 30px 24px 60px;
|
||||
}
|
||||
|
||||
// ---- 步骤条(原型 .steps / .step)----
|
||||
// ---- 步骤条 ----
|
||||
.register-more-steps {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
@ -77,7 +73,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
// ---- 卡片(原型 .card)----
|
||||
// ---- 卡片 ----
|
||||
.register-more-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e4e9f0;
|
||||
|
|
@ -92,182 +88,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
// ---- 两列 grid(原型 .grid / .field)----
|
||||
.register-more-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px 60px;
|
||||
}
|
||||
.register-more-field {
|
||||
display: grid;
|
||||
grid-template-columns: 150px 1fr;
|
||||
align-items: center;
|
||||
|
||||
label {
|
||||
text-align: right;
|
||||
padding-right: 14px;
|
||||
font-size: 14px;
|
||||
color: #1f2937;
|
||||
}
|
||||
&.required label::before {
|
||||
content: "*";
|
||||
color: #ef4444;
|
||||
margin-right: 4px;
|
||||
}
|
||||
input,
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
border: 1px solid #d3d8e1;
|
||||
border-radius: 3px;
|
||||
padding: 8px 11px;
|
||||
font: 14px inherit;
|
||||
color: #1f2937;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
transition: border-color 0.15s;
|
||||
|
||||
&::placeholder {
|
||||
color: #9ca3af;
|
||||
}
|
||||
&:focus {
|
||||
border-color: #1677ed;
|
||||
}
|
||||
&:disabled {
|
||||
background: #f5f7fa;
|
||||
color: #9ca3af;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
textarea {
|
||||
height: 68px;
|
||||
resize: vertical;
|
||||
}
|
||||
&.align-start {
|
||||
align-items: start;
|
||||
label {
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.register-more-large-textarea {
|
||||
height: 150px !important;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
// ---- 控件容器与错误提示(原生受控表单)----
|
||||
.register-more-control {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
input[type="number"] {
|
||||
// 隐藏 number input 的步进箭头,保持原型简洁外观
|
||||
&::-webkit-outer-spin-button,
|
||||
&::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
-moz-appearance: textfield;
|
||||
appearance: textfield;
|
||||
}
|
||||
}
|
||||
.register-more-error {
|
||||
color: #ef4444;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.is-disabled {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
// ---- 营业执照上传区(与单位名称/信用代码同为两列布局,按钮与文本输入框同高同边框)----
|
||||
.register-more-license {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 6px;
|
||||
}
|
||||
// 2026-08-08 营业执照按钮:与 .field input 同 36px 高、同 1px solid #d3d8e1 边框、同 3px 圆角,
|
||||
// 仅与右侧文本输入对齐且宽度自适应;框内左侧 * 红星表示必填。
|
||||
.register-more-file-btn {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 36px;
|
||||
padding: 0 11px;
|
||||
border: 1px solid #d3d8e1;
|
||||
border-radius: 3px;
|
||||
color: #1f2937;
|
||||
background: #fff;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
flex: 0 0 auto;
|
||||
transition: border-color 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #1677ed;
|
||||
}
|
||||
input[type="file"] {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.register-more-file-text {
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
// ---- 业务范围多选(原型 .scope-options)----
|
||||
.register-more-scope {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px 18px;
|
||||
padding: 14px;
|
||||
border: 1px solid #d3d8e1;
|
||||
border-radius: 3px;
|
||||
background: #fbfcfe;
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
text-align: left;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
cursor: pointer;
|
||||
color: #1f2937;
|
||||
}
|
||||
input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 3px 8px 0 0;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
// ---- 可选说明 / 底部提示(原型 .optional-note / .tip)----
|
||||
.register-more-optional-note {
|
||||
display: block;
|
||||
color: #8b95a5;
|
||||
font-size: 12px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
// ---- 底部提示 ----
|
||||
.register-more-tip {
|
||||
margin: 20px 0 0 150px;
|
||||
margin: 20px 0;
|
||||
color: #8b95a5;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
// ---- 全宽字段(原型 .wide)----
|
||||
.register-more-wide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
// ---- 操作按钮(原型 .actions / .btn)----
|
||||
// ---- 操作按钮区 ----
|
||||
.register-more-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
@ -276,67 +104,8 @@
|
|||
margin-top: 28px;
|
||||
padding-top: 24px;
|
||||
}
|
||||
.register-more-btn {
|
||||
height: 40px;
|
||||
padding: 0 25px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
transition: opacity 0.15s;
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
&.primary {
|
||||
background: #1677ed;
|
||||
color: #fff;
|
||||
&:hover:not(:disabled) {
|
||||
background: #0958d9;
|
||||
}
|
||||
}
|
||||
&.secondary {
|
||||
background: #f1f4f8;
|
||||
color: #475569;
|
||||
&:hover:not(:disabled) {
|
||||
background: #e5eaf1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---- 营业执照文件列表(自定义,贴近原型原生 file input 的说明样式)----
|
||||
.register-more-license-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
.license-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid #d3d8e1;
|
||||
border-radius: 3px;
|
||||
background: #fbfcfe;
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
color: #1f2937;
|
||||
a {
|
||||
color: #1677ed;
|
||||
text-decoration: none;
|
||||
}
|
||||
.license-remove {
|
||||
border: 0;
|
||||
background: none;
|
||||
color: #ef4444;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---- 审核中/通过 区块(既有动画,保留)----
|
||||
// ---- 审核中/通过 区块 ----
|
||||
.audit-look {
|
||||
background-repeat: no-repeat;
|
||||
height: 175px;
|
||||
|
|
@ -373,7 +142,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
// ---- 响应式(原型 @media max-width:760px)----
|
||||
// ---- 响应式 ----
|
||||
@media (max-width: 760px) {
|
||||
.register-more-hero {
|
||||
height: 140px;
|
||||
|
|
@ -391,19 +160,6 @@
|
|||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
.register-more-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
.register-more-wide {
|
||||
grid-column: auto;
|
||||
}
|
||||
.register-more-field {
|
||||
grid-template-columns: 125px 1fr;
|
||||
}
|
||||
.register-more-scope {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.register-more-step:not(:last-child)::after {
|
||||
width: 28px;
|
||||
margin: 0 7px;
|
||||
|
|
@ -411,8 +167,5 @@
|
|||
.register-more-step {
|
||||
font-size: 12px;
|
||||
}
|
||||
.register-more-tip {
|
||||
margin-left: 125px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue