feat ui设计稿

This commit is contained in:
Ironsp
2026-09-30 15:55:36 +08:00
parent ce8210fb3f
commit 9ab6253c81
102 changed files with 4855 additions and 2359 deletions

View File

@@ -6,7 +6,7 @@ const siteStore = useSiteStore()
const quickLinks = [
{ label: '首页', path: '/' },
{ label: '案例库', path: '/cases' },
{ label: '需求池', path: '/demand' },
{ label: '需求提报', path: '/demand' },
{ label: '下载 APP', path: '/' },
{ label: '消息中心', path: '/message' },
]
@@ -25,19 +25,11 @@ const coreBusiness = [
<div class="app-footer__inner container">
<div class="app-footer__about">
<div class="app-footer__brand">
<!-- TODO(蓝湖): 替换 logo 切图 -->
<img src="@/assets/vue.svg" class="app-footer__logo" alt="虫子智造 logo">
<span class="app-footer__name">虫子智造</span>
</div>
<p class="app-footer__desc">
研发智造一体化自营平台,打通研发‑仿真‑设计‑PCB‑SMT‑整机装配‑售后迭代全链路,为科技企业、硬件厂商、创客团队提供软硬一体化定制与量产落地服务。平台自营不开放第三方服务商入驻,对项目质量全权兜底。
</p>
<p class="app-footer__legal">
©2026 虫子智造 研发智造一体化平台 版权所有|自营研发生产平台,所有项目源码、图纸受平台知识产权保护,禁止盗用、复制、二次分发
</p>
<p class="app-footer__legal">
{{ siteStore.siteInfo.icp }} | {{ siteStore.siteInfo.police }}
</p>
</div>
<div class="app-footer__col">
@@ -75,19 +67,29 @@ const coreBusiness = [
<span class="app-footer__contact">工作时间:{{ siteStore.siteInfo.workTime }}</span>
</div>
</div>
<div class="app-footer__bottom">
<p class="app-footer__legal">
©2026 虫子智造 研发智造一体化平台 版权所有|自营研发生产平台,所有项目源码、图纸受平台知识产权保护,禁止盗用、复制、二次分发
</p>
<p class="app-footer__legal">
{{ siteStore.siteInfo.icp }} | {{ siteStore.siteInfo.police }}
</p>
</div>
</footer>
</template>
<style lang="less" scoped>
.app-footer {
background: @heading-color;
color: @text-color-secondary;
background: @footer-bg;
color: @white;
&__inner {
.flex(row, space-between, flex-start);
gap: @spacing-xl;
padding-top: @spacing-xxl;
padding-bottom: @spacing-xxl;
padding-left: @footer-inset;
padding-right: @footer-inset;
}
&__about {
@@ -96,26 +98,19 @@ const coreBusiness = [
&__brand {
.flex(row, flex-start);
gap: @spacing-sm;
margin-bottom: @spacing-base;
}
&__logo {
width: 28px;
height: 28px;
}
&__name {
font-size: @font-size-lg;
font-weight: 600;
font-size: @font-size-title;
font-weight: 500;
color: @white;
}
&__desc,
&__legal {
&__desc {
margin-top: @spacing-sm;
font-size: @font-size-sm;
line-height: 1.6;
line-height: 1.8;
}
&__col {
@@ -125,22 +120,37 @@ const coreBusiness = [
&__title {
margin-bottom: @spacing-sm;
font-size: @font-size-base;
font-size: @font-size-title;
font-weight: 500;
color: @white;
}
&__link {
font-size: @font-size-sm;
line-height: 1.5;
cursor: pointer;
transition: color 0.2s;
&:hover {
color: @primary-color;
color: @primary-light;
}
}
&__contact {
font-size: @font-size-sm;
line-height: 1.8;
}
// 版权 / 备案:设计稿为页脚底部居中两行
&__bottom {
padding: @spacing-xxl @footer-inset;
text-align: center;
}
&__legal {
font-size: @font-size-sm;
line-height: 1.8;
color: @white;
}
}
</style>

View File

@@ -11,7 +11,7 @@ interface NavItem {
const navItems: NavItem[] = [
{ label: '首页', path: '/' },
{ label: '案例库', path: '/cases' },
{ label: '需求池', path: '/demand' },
{ label: '需求提报', path: '/demand' },
{ label: '项目中心', path: '/project' },
{ label: '合同中心', path: '/contract' },
{ label: '财务中心', path: '/finance' },
@@ -28,8 +28,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
<header class="app-header">
<div class="app-header__inner container">
<RouterLink to="/" class="app-header__logo">
<!-- TODO(蓝湖): 替换 logo 切图 -->
<img src="@/assets/vue.svg" class="app-header__logo-icon" alt="虫子智造 logo">
<span class="app-header__logo-text">虫子智造</span>
</RouterLink>
@@ -45,10 +43,12 @@ onMounted(() => void messageStore.fetchUnreadCount())
</nav>
<div class="app-header__actions">
<RouterLink to="/demand" class="app-header__action app-header__action--primary">
快速提报
<RouterLink to="/demand" class="app-header__action">
<img src="@/assets/icons/quick-report.png" class="app-header__action-icon" alt="">
快捷提报
</RouterLink>
<RouterLink to="/service" class="app-header__action app-header__action--success">
<RouterLink to="/service" class="app-header__action">
<img src="@/assets/icons/online-service.png" class="app-header__action-icon" alt="">
在线客服
</RouterLink>
<RouterLink to="/message" class="app-header__bell" aria-label="消息中心">
@@ -69,8 +69,8 @@ onMounted(() => void messageStore.fetchUnreadCount())
top: 0;
z-index: 100;
height: @header-height;
background: @white;
box-shadow: @shadow-base;
background: @header-bg;
border-bottom: 1px solid @header-border;
&__inner {
.flex(row, space-between);
@@ -79,12 +79,6 @@ onMounted(() => void messageStore.fetchUnreadCount())
&__logo {
.flex(row, flex-start);
gap: @spacing-sm;
&-icon {
width: 32px;
height: 32px;
}
&-text {
font-size: @font-size-xl;
@@ -95,16 +89,38 @@ onMounted(() => void messageStore.fetchUnreadCount())
&__nav {
.flex(row, center);
gap: @spacing-lg;
gap: @header-nav-gap;
height: 100%;
@media (max-width: 1280px) {
gap: 32px;
}
&-item {
position: relative;
.flex(row, center);
height: 100%;
font-size: @font-size-base;
color: @text-color;
font-weight: 500;
color: @black;
transition: color 0.2s;
&:hover,
&.router-link-active {
color: @primary-color;
color: @primary-strong;
}
// 激活项底部短横线(设计 29×2px × 0.77,距顶栏底边 11px × 0.77)
&.router-link-active::after {
content: '';
position: absolute;
left: 50%;
bottom: 9px;
width: 22px;
height: 2px;
border-radius: 1px;
background: @primary-color;
transform: translateX(-50%);
}
}
}
@@ -116,23 +132,23 @@ onMounted(() => void messageStore.fetchUnreadCount())
&__action {
.flex(row, center);
gap: @spacing-xs;
height: 28px;
padding: 0 @spacing-base;
border-radius: @radius-round;
padding: 0 @spacing-sm;
border-radius: @radius-sm;
background: @primary-color;
color: @white;
font-size: @font-size-sm;
font-weight: 500;
transition: opacity 0.2s;
&:hover {
opacity: 0.88;
}
&--primary {
background: linear-gradient(90deg, @warning-color, @danger-color);
}
&--success {
background: linear-gradient(90deg, #22b14c, @success-color);
&-icon {
width: 16px;
height: 16px;
}
}

View File

@@ -68,8 +68,10 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
<style lang="less" scoped>
.case-card {
overflow: hidden;
border: 1px solid @cases-card-border;
border-radius: @radius-base;
background: @white;
box-shadow: @cases-card-shadow;
cursor: pointer;
transition: box-shadow 0.2s, transform 0.2s;
@@ -80,10 +82,8 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
&__cover {
position: relative;
margin: @spacing-sm @spacing-sm 0;
border-radius: @radius-base;
aspect-ratio: 396 / 138; // 设计04 封面 396×137.8,通栏无留白
overflow: hidden;
aspect-ratio: 16 / 5;
}
&__img {
@@ -92,21 +92,21 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
object-fit: cover;
&--placeholder {
background: linear-gradient(135deg, @primary-light, @bg-color);
background: @primary-strong; // 设计04 封面占位实底 rgba(2,79,255)
}
}
&__tag {
position: absolute;
top: 10px;
left: 10px;
height: 24px;
padding: 0 10px;
border-radius: @radius-round;
background: @primary-color;
top: 6px;
left: 14px;
height: 19px; // 设计15 标签 24 × 0.77
padding: 0 6px;
border-radius: @radius-sm;
background: @primary-strong;
color: @white;
font-size: @font-size-sm;
line-height: 24px;
font-size: 11px; // 设计 10 → 7.7,取可读下限 11
line-height: 19px;
&--hardware {
background: @tag-hardware;
@@ -160,13 +160,13 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
}
&__body {
padding: @spacing-sm @spacing-base @spacing-base;
padding: 13px 16px 11px; // 上 17 / 左 20 / 下 14 × 0.77
}
&__title {
font-size: @font-size-lg;
font-weight: 600;
color: @heading-color;
font-size: 12px; // 设计 16 × 0.77 ≈ 12.3
font-weight: 500;
color: @cases-text;
.ellipsis();
}
@@ -175,9 +175,9 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 6px @spacing-sm;
margin-top: @spacing-sm;
font-size: @font-size-sm;
font-size: 11px; // 设计 10 → 7.7,取可读下限 11
line-height: 1.5;
color: @heading-color;
color: @cases-text;
li {
/* 值可能较长(如「完成时间:2026/11/30」),换行而非截断,避免丢信息 */
@@ -186,16 +186,16 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
}
&__label {
color: @text-color-secondary;
color: inherit; // 设计04 标签与值同色 rgba(51,51,51)
}
&__more {
display: block;
width: fit-content;
margin: @spacing-base 0 0 auto;
color: @primary-color;
font-size: @font-size-base;
font-weight: 500;
margin: 11px 0 0 auto; // 设计 14 × 0.77
color: @primary-strong; // 设计04 实取 rgba(2,79,255)
font-size: 11px; // 设计 12 → 9.2,取可读下限 11
font-weight: 400;
}
}
</style>

View File

@@ -58,72 +58,92 @@ function onCancel(): void {
</template>
<style lang="less" scoped>
// 设计 24(取消绑定确认)/ 29(注销风险提示):白卡 ~840 设计px、无蒙层压暗、
// 底部两枚等宽整行按钮(次级 #EEF0F3 / 主色或危险色)
.confirm-dialog {
position: fixed;
inset: 0;
z-index: 1000;
.flex(row, center);
background: rgba(0, 0, 0, 0.45);
background: transparent;
&__panel {
width: 400px;
width: 660px; // 设计 840 × 0.77
max-width: calc(100vw - 32px);
padding: @spacing-lg;
padding: @spacing-base;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-lg;
}
// 蓝条 + 标题 15 设计px w700(与个人中心各弹窗一致)
&__title {
position: relative;
margin-bottom: @spacing-base;
font-size: @font-size-lg;
font-weight: 600;
padding-left: 12px;
font-size: 12px;
font-weight: 700;
color: @heading-color;
line-height: 20px;
&::before {
content: '';
position: absolute;
left: 0;
top: 3px;
width: 3px;
height: 14px;
border-radius: 2px;
background: @primary-strong;
}
}
&__body {
margin-bottom: @spacing-lg;
font-size: @font-size-base;
font-size: 11px; // 设计 29 条目 13 → 11
color: @text-color;
line-height: 1.6;
line-height: 1.7;
}
// 设计 24:两枚等宽整行按钮铺满卡宽
&__footer {
.flex(row, flex-end);
.flex(row, flex-start);
gap: @spacing-sm;
}
&__btn {
height: 34px;
flex: 1;
height: 36px;
padding: 0 @spacing-base;
border: 1px solid @border-color-dark;
border-radius: @radius-base;
background: @white;
border: none;
border-radius: @profile-radius;
background: @profile-quiet-btn;
color: @text-color;
font-size: @font-size-base;
font-size: 12px;
font-weight: 500;
transition: all 0.2s;
&:hover {
border-color: @primary-color;
color: @primary-color;
border: none;
background: darken(@profile-quiet-btn, 4%);
color: @text-color;
}
// 设计 24 主按钮 #024FFF / 设计 29 危险按钮 #EF4444
&--confirm {
border-color: @primary-color;
background: @primary-color;
background: @primary-strong;
color: @white;
&:hover {
background: @primary-hover;
background: darken(@primary-strong, 6%);
color: @white;
}
&.is-danger {
border-color: @danger-color;
background: @danger-color;
&:hover {
background: fade(@danger-color, 85%);
background: darken(@danger-color, 6%);
}
}
}

View File

@@ -45,13 +45,14 @@ const emit = defineEmits<{
.flex(column, flex-start);
gap: @spacing-sm;
// 设计稿(06/07 附件条):实底 #EDEDED 灰条、无描边
&__item {
.flex(row, space-between);
gap: @spacing-base;
padding: @spacing-sm @spacing-base;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @bg-color-light;
padding: @spacing-base;
border: none;
border-radius: @radius-sm;
background: @demand-upload-bg;
}
&__info {

View File

@@ -71,50 +71,54 @@ const emit = defineEmits<{
<style lang="less" scoped>
.filter-panel {
padding: @spacing-base @spacing-lg;
border-radius: @radius-lg;
padding: 24px 36px; // 设计04 搜索卡左右内缩 47 × 0.77
border-radius: @radius-base;
background: @white;
box-shadow: @shadow-base;
&__bar {
.flex(row, flex-start);
gap: @spacing-sm;
gap: 18px; // 按钮间距 24 × 0.77
}
&__input {
width: 240px;
height: 34px;
flex: 1;
max-width: 456px; // 设计输入框 592 × 0.77
margin-right: 28px; // 与按钮总距 60 × 0.77(叠加 bar gap 18)
height: 38px; // 设计 49 × 0.77
padding: 0 @spacing-base;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @bg-color-light;
font-size: @font-size-base;
border: 1px solid @cases-input-border;
border-radius: @radius-sm;
background: @white;
color: @cases-text;
font-size: 15px; // 设计 20 × 0.77
outline: none;
transition: border-color 0.2s;
&::placeholder {
color: @cases-input-border;
}
&:focus {
border-color: @primary-color;
border-color: @cases-accent;
}
}
&__btn {
height: 34px;
min-width: 77px; // 设计 100 × 0.77
height: 38px; // 设计 49 × 0.77
padding: 0 @spacing-base;
border: 1px solid @border-color-dark;
border-radius: @radius-base;
background: @white;
color: @text-color;
font-size: @font-size-base;
border-radius: @radius-sm;
background: @cases-accent; // 设计 重置/搜索 均为 rgba(7,92,255)
color: @white;
font-size: 15px; // 设计 20 × 0.77
transition: all 0.2s;
&:hover {
border-color: @primary-color;
color: @primary-color;
background: @primary-hover;
}
&--primary {
border-color: @primary-color;
background: @primary-color;
background: @cases-accent;
color: @white;
&:hover {
@@ -127,29 +131,36 @@ const emit = defineEmits<{
&__chips {
.flex(row, flex-start, center);
flex-wrap: wrap;
gap: @spacing-sm;
gap: 11px 10px; // 行距 14 / 列距 13 × 0.77
margin-top: @spacing-base;
font-size: @font-size-sm;
padding: 12px 18px 16px; // 「已选条件」面板内边距 16/24/21 × 0.77
border-radius: @radius-base;
background: @chips-panel-bg;
font-size: 15px; // 设计 20 × 0.77
}
&__chips-label {
color: @cases-text; // 设计04 标题 rgba(51,51,51)
font-weight: 500;
}
&__chip {
height: 26px;
height: 25px; // 设计 32 × 0.77
padding: 0 @spacing-sm;
border: 1px solid @primary-light;
border-radius: @radius-round;
background: @primary-light;
color: @primary-color;
font-size: @font-size-sm;
background: @white;
color: @cases-accent; // 设计 chips 文字 rgba(7,92,255)
font-size: 11px; // 设计 14 → 10.8,取可读下限 11
font-weight: 500;
transition: all 0.2s;
&:hover {
border-color: @primary-color;
color: @primary-hover;
}
&--clear {
border-color: @border-color;
background: @white;
color: @text-color-secondary;
background: transparent;
color: @primary-strong; // 设计15「清空」为纯文字蓝链
}
}

View File

@@ -67,30 +67,30 @@ function go(page: number): void {
<style lang="less" scoped>
.pagination {
.flex(row, center);
gap: @spacing-xs;
padding: @spacing-base 0;
gap: @spacing-xs; // 盒间距 6 × 0.77 ≈ 5
padding: 12px 0; // 网格 → 分页 36 × 0.77(叠加主栏 gap 18)
&__btn {
.flex(row, center);
min-width: 32px;
height: 32px;
padding: 0 @spacing-xs;
min-width: 20px; // 设计15 页码盒 26 × 0.77
height: 25px; // 设计 32 × 0.77
padding: 0 3px;
border: 1px solid @border-color;
border-radius: @radius-sm;
background: @white;
color: @text-color;
font-size: @font-size-base;
color: @text-color-secondary; // 设计15 实取 rgba(107,114,128)
font-size: 11px; // 设计 12 → 9.2,取可读下限 11
transition: all 0.2s;
&:hover:not(:disabled):not(.is-ellipsis) {
border-color: @primary-color;
color: @primary-color;
border-color: @primary-strong;
color: @primary-strong;
}
&.is-active {
border-color: @primary-color;
background: @primary-color;
color: @white;
border-color: @cases-page-active-bg;
background: @cases-page-active-bg;
color: @primary-strong; // 设计15 当前页文字 rgba(2,79,255)
}
&.is-ellipsis {

View File

@@ -36,20 +36,25 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
</template>
<style lang="less" scoped>
// 设计稿(54/55):满宽强度条(弱=首段红,余段浅灰轨道)+ 右端灰色强度文字 + 下方红色提示
.pwd-strength {
.flex(column, flex-start);
gap: @spacing-xs;
display: grid;
grid-template-columns: 1fr auto;
column-gap: @spacing-sm;
row-gap: 9px;
align-items: center;
&__bars {
.flex(row, center);
gap: 4px;
gap: 8px;
}
// 设计稿轨道实取 #EDEFF2,条高 5 设计px ≈ 4px
&__bar {
width: 56px;
flex: 1;
height: 4px;
border-radius: @radius-round;
background: @border-color;
border-radius: 2px;
background: @auth-track;
&.is-on.is-weak {
background: @danger-color;
@@ -64,24 +69,17 @@ const levelIndex = computed(() => (level.value === 'strong' ? 3 : level.value ==
}
}
// 设计稿强度文字为 11 设计px 中性灰(「弱」实取 rgba(156,163,175))
&__label {
font-size: @font-size-sm;
&.is-weak {
color: @danger-color;
}
&.is-medium {
color: @warning-color;
}
&.is-strong {
color: @success-color;
}
justify-self: end;
font-size: 11px;
color: @text-color-disabled;
}
&__tip {
font-size: @font-size-sm;
grid-column: 1 / -1;
margin: 0;
font-size: 11px;
color: @danger-color;
}
}

View File

@@ -57,7 +57,7 @@ onMounted(() => {
</div>
<p class="qr-panel__status text-secondary">
<template v-if="!expired">
二维码将在 <strong class="qr-panel__count">{{ countdownText }}</strong> 后失效(过期可点击二维码刷新)
<span class="qr-panel__countdown">二维码将在 <strong class="qr-panel__count">{{ countdownText }}</strong> 后失效</span>(过期可点击二维码刷新)
</template>
<template v-else>
二维码已过期,请点击刷新
@@ -67,25 +67,22 @@ onMounted(() => {
</template>
<style lang="less" scoped>
// 扫码面板(设计 39:灰色二维码占位块 + 红色倒计时胶囊 + 灰色小字提示)
.qr-panel {
.flex(column, center);
gap: @spacing-sm;
gap: 17px; // 二维码 → 倒计时(设计 22 × 0.77)
&__box {
.flex(column, center);
gap: @spacing-xs;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @white;
border: none;
border-radius: @radius-sm;
background: @contract-qr-bg;
cursor: pointer;
transition: border-color 0.2s;
&:hover {
border-color: @primary-color;
}
transition: background 0.2s;
&.is-expired {
background: @bg-color;
background: @bg-color-light;
color: @text-color-secondary;
}
}
@@ -98,12 +95,28 @@ onMounted(() => {
&__tip {
font-size: @font-size-sm;
color: @text-color-secondary;
color: @text-color;
text-align: center;
}
// 状态行:胶囊(倒计时)+ 下方灰色提示,整体居中
&__status {
font-size: @font-size-sm;
display: flex;
flex-direction: column;
align-items: center;
gap: @spacing-sm;
font-size: 11px; // 设计 13/11 → 可读下限
color: @text-color-disabled;
}
&__countdown {
display: inline-flex;
align-items: center;
padding: 8px 16px; // 胶囊高 42 设计 × 0.77
border-radius: @radius-round;
background: fade(@danger-color, 8%);
color: @danger-color; // 设计 39 实取 @danger-color
line-height: 1.4;
}
&__count {

View File

@@ -37,32 +37,40 @@ function onGetCode(): void {
.flex(row, stretch);
gap: @spacing-sm;
// 设计稿(02/54/55):验证码输入框与普通输入框同规格 40 设计px ≈ 32px、13 设计px 字号
&__input {
flex: 1;
min-width: 0;
height: 40px;
padding: 0 @spacing-base;
height: 32px;
padding: 0 12px;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @bg-color-light;
font-size: @font-size-base;
border-radius: 6px;
background: @white;
font-size: 11px;
color: @heading-color;
outline: none;
transition: border-color 0.2s;
&:focus {
border-color: @primary-color;
border-color: @primary-strong;
}
&::placeholder {
color: @heading-color;
}
}
// 设计稿:「获取验证码」为白底蓝描边蓝字小按钮(#024FFF)
&__btn {
flex-shrink: 0;
width: 132px;
height: 40px;
border: 1px solid @primary-color;
border-radius: @radius-base;
min-width: 96px;
height: 32px;
padding: 0 @spacing-sm;
border: 1px solid @primary-strong;
border-radius: 6px;
background: @white;
color: @primary-color;
font-size: @font-size-sm;
color: @primary-strong;
font-size: 11px;
transition: all 0.2s;
&:hover:not(:disabled) {

View File

@@ -14,12 +14,13 @@ withDefaults(defineProps<Props>(), { variant: 'info' })
</template>
<style lang="less" scoped>
// 设计稿(项目中心 09 付款计划徽标):约 57×22 设计px、圆角 4 设计px、11px 字、浅底彩色字
.status-tag {
display: inline-block;
padding: 2px @spacing-sm;
padding: 3px 10px;
border-radius: @radius-sm;
font-size: @font-size-sm;
line-height: 1.5;
font-size: 11px;
line-height: 16px;
white-space: nowrap;
&--primary {
@@ -28,13 +29,13 @@ withDefaults(defineProps<Props>(), { variant: 'info' })
}
&--success {
background: fade(@success-color, 12%);
background: @tag-success-bg;
color: @success-color;
}
&--warning {
background: fade(@warning-color, 12%);
color: @warning-color;
background: @tag-warning-bg;
color: @tag-warning-text;
}
&--danger {
@@ -43,7 +44,7 @@ withDefaults(defineProps<Props>(), { variant: 'info' })
}
&--info {
background: @bg-color;
background: @tag-info-bg;
color: @text-color-secondary;
}
}

View File

@@ -28,59 +28,55 @@ defineProps<Props>()
</template>
<style lang="less" scoped>
// 设计稿(06/07 三步表单):白卡上竖排「大号蓝色序号 + 区块标题」,无连接线/分隔线/阴影
.step-form {
padding: @spacing-lg @spacing-xl;
border-radius: @radius-lg;
border-radius: @radius-base;
background: @white;
box-shadow: @shadow-base;
box-shadow: none;
&__header {
.flex(row, center);
gap: @spacing-sm;
.flex(column, flex-start, baseline);
gap: @spacing-base;
margin-bottom: @spacing-lg;
padding-bottom: @spacing-base;
border-bottom: 1px solid @border-color;
padding-bottom: 0;
border-bottom: none;
}
&__step {
.flex(row, center);
.flex(row, baseline);
gap: @spacing-xs;
&.is-active .step-form__dot {
background: @primary-color;
color: @white;
}
&.is-done .step-form__dot {
border-color: @primary-color;
color: @primary-color;
}
&.is-active .step-form__label {
color: @primary-color;
font-weight: 600;
}
}
// 设计稿序号:48 设计px ≈ 37px、#024FFF、与内容列对齐(列宽 46px)
&__dot {
.flex(row, center);
width: 24px;
height: 24px;
border: 1px solid @border-color-dark;
border-radius: @radius-round;
font-size: @font-size-sm;
color: @text-color-secondary;
flex-shrink: 0;
width: 46px;
border: none;
border-radius: 0;
background: transparent;
font-size: 37px;
font-weight: 500;
line-height: 1;
color: @demand-accent;
text-align: left;
}
// 设计稿区块标题:28 设计px ≈ 22px、500、rgba(51,51,51)
&__label {
font-size: @font-size-base;
color: @text-color;
font-size: @font-size-title;
font-weight: 500;
color: @demand-heading;
}
// 设计稿无步骤连接线
&__line {
flex: 1;
height: 1px;
background: @border-color;
display: none;
}
&__body {
// 内容列与序号后的标题对齐(序号列 46px)
margin-left: 46px;
}
}
</style>

View File

@@ -63,20 +63,21 @@ function onDrop(event: DragEvent): void {
</template>
<style lang="less" scoped>
// 设计稿(06/07 附件条):实底 #EDEDED 灰条、无描边、90 设计px ≈ 69px 高
.upload-area {
.flex(column, center);
gap: @spacing-xs;
padding: @spacing-lg;
border: 1px dashed @border-color-dark;
border-radius: @radius-base;
background: @bg-color-light;
min-height: 69px;
padding: @spacing-base;
border: none;
border-radius: @radius-sm;
background: @demand-upload-bg;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
transition: background 0.2s;
&:hover,
&.is-dragging {
border-color: @primary-color;
background: @primary-light;
background: darken(@demand-upload-bg, 5%);
}
&.is-disabled {
@@ -85,8 +86,8 @@ function onDrop(event: DragEvent): void {
}
&__icon {
font-size: @font-size-xl;
color: @primary-color;
font-size: @font-size-lg;
color: @text-color-disabled;
}
&__hint {