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

@@ -76,12 +76,8 @@ function onDeleteFile(): void {
<!-- 规则 3:已完成 + 已提交售后 → 工单横幅 + 售后信息 + 取消售后 -->
<template v-else-if="hasTicket && afterSales">
<!-- 设计 10:整宽浅红提示横幅,只有标题 + 说明两行,无图标 -->
<div class="project-after-sales__banner">
<span class="project-after-sales__banner-icon" aria-hidden="true">
<svg viewBox="0 0 24 24" width="22" height="22" fill="currentColor">
<path d="M6 2h7l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm7 1.6V8h4.4L13 3.6ZM8 12.2h8v1.6H8v-1.6Zm0 3.6h8v1.6H8v-1.6Z" />
</svg>
</span>
<div class="project-after-sales__banner-text">
<h3 class="project-after-sales__banner-title">
售后工单处理中
@@ -113,7 +109,7 @@ function onDeleteFile(): void {
<div class="project-after-sales__field">
<div class="project-after-sales__field-head">
<span class="project-after-sales__label">附件上传</span>
<span class="project-after-sales__field-hint text-secondary">支持图片/文档/压缩包,大小不超过1G</span>
<span class="project-after-sales__field-hint">支持图片/文档/压缩包,大小不超过1G</span>
</div>
<FileList
v-if="afterSales.attachments.length > 0"
@@ -146,7 +142,7 @@ function onDeleteFile(): void {
</div>
<div class="project-after-sales__actions">
<button
class="project-after-sales__btn project-after-sales__btn--primary"
class="project-after-sales__btn project-after-sales__btn--apply"
@click="emit('apply')"
>
申请售后
@@ -159,29 +155,17 @@ function onDeleteFile(): void {
<style lang="less" scoped>
.project-after-sales {
.flex(column, flex-start, stretch);
gap: @spacing-lg;
padding: @spacing-lg @spacing-xl;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
gap: @spacing-base;
// 设计 10:售后信息区块直接落在白底页面上,无外层卡片
padding: 0;
// ── 顶部工单横幅:浅红底 + 红色图标块(设计稿) ──
// ── 顶部工单横幅:浅红底、无图标块(设计 10 实取 #FDEEEE) ──
&__banner {
.flex(row, flex-start, center);
gap: @spacing-base;
padding: @spacing-base @spacing-lg;
border-radius: @radius-base;
background: fade(@danger-color, 8%);
}
&__banner-icon {
.flex(row, center);
flex-shrink: 0;
width: 44px;
height: 44px;
border-radius: @radius-base;
background: @danger-color;
color: @white;
margin-bottom: 16px;
padding: 12px 20px;
border-radius: 6px;
background: @project-banner-bg;
}
&__banner-text {
@@ -190,59 +174,72 @@ function onDeleteFile(): void {
min-width: 0;
}
// 设计 10:标题 17 设计px × 0.77 ≈ 13px / 700 红
&__banner-title {
font-size: @font-size-lg;
font-weight: 600;
color: @heading-color;
line-height: 1.2;
font-size: 13px;
font-weight: 700;
color: @project-banner-title;
line-height: 1.3;
}
// 设计 10:说明 13 设计px × 0.77 ≈ 11px #4B5563
&__banner-desc {
font-size: @font-size-sm;
color: @text-color-secondary;
font-size: 11px;
color: @text-color;
}
// ── 「售后信息」区块标题:竖条 + 15px 缩进(与其它页签一致) ──
// ── 「售后信息」区块标题:竖条 + 缩进(与其它页签一致) ──
&__title {
.section-title();
margin-top: 0;
padding-left: 9px;
font-size: 12px;
font-weight: 700;
margin-top: @spacing-xs;
&::before {
width: 3px;
height: 15px;
}
}
&__field {
.flex(column, flex-start, stretch);
gap: @spacing-sm;
gap: 6px;
}
// 设计 10:标签与提示同行,间距 14 设计px × 0.77
&__field-head {
.flex(row, flex-start, baseline);
gap: @spacing-sm;
gap: 11px;
}
// 设计 10:提示 11 设计px #9CA3AF
&__field-hint {
font-size: @font-size-sm;
font-size: 11px;
color: @text-color-disabled;
}
// 设计 10:字段标签 13 设计px × 0.77 ≈ 11px / 500
&__label {
font-size: @font-size-base;
font-weight: 600;
font-size: 11px;
font-weight: 500;
color: @heading-color;
}
// 只读展示(设计稿里是灰底带边框的框,不是输入控件)
// 只读展示(设计 10:灰底圆角实底框,无描边)
&__readonly {
min-height: 40px;
padding: 0 @spacing-base;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @bg-color-light;
min-height: 36px;
padding: 0 12px;
border: none;
border-radius: 6px;
background: @input-bg;
color: @text-color;
font-size: @font-size-base;
line-height: 40px;
font-size: 11px;
line-height: 36px;
&--block {
min-height: 96px;
padding: @spacing-sm @spacing-base;
min-height: 104px;
padding: 12px;
line-height: 1.7;
white-space: pre-wrap;
word-break: break-word;
@@ -263,18 +260,22 @@ function onDeleteFile(): void {
font-size: @font-size-base;
}
// 设计 10:按钮组贴右,间距 34 设计px × 0.77
&__actions {
.flex(row, flex-end, center);
gap: @spacing-sm;
gap: 24px;
margin-top: 8px;
}
// 设计 10:高 ≈36 设计px × 0.77、圆角 ≈8 设计px、文字 15 设计px × 0.77
&__btn {
height: 36px;
padding: 0 @spacing-lg;
border-radius: @radius-base;
font-size: @font-size-base;
height: 28px;
padding: 0 14px;
border-radius: 6px;
font-size: 12px;
transition: all 0.2s;
// 「取消售后」= 品牌蓝(设计 10 实取 #1F67EF)
&--primary {
border: none;
background: @primary-color;
@@ -284,6 +285,53 @@ function onDeleteFile(): void {
background: @primary-hover;
}
}
// 「申请售后」= 红(设计 10 实取 #E3464B)
&--apply {
border: none;
background: @project-apply;
color: @white;
&:hover {
background: fade(@project-apply, 88%);
}
}
}
// 设计 10:附件行 = #F7F8FA 圆角行、灰字操作(公共 FileList,仅本页覆写外观)
:deep(.file-list) {
gap: 12px;
}
:deep(.file-list__item) {
padding: 6px 14px;
border: none;
border-radius: 6px;
background: @finance-row-bg;
}
:deep(.file-list__name) {
font-size: 11px;
line-height: 15px;
}
:deep(.file-list__meta) {
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
}
:deep(.file-list__actions) {
gap: 12px;
}
:deep(.file-list__btn) {
font-size: 12px;
color: @text-color-secondary;
}
:deep(.file-list__btn--danger) {
color: @danger-color;
}
}
</style>

View File

@@ -30,7 +30,7 @@ const emit = defineEmits<{
>
<div class="project-files__info">
<span class="project-files__name" :title="file.name">{{ file.name }}</span>
<span class="project-files__meta text-secondary">
<span class="project-files__meta">
{{ formatFileSize(file.size) }} · {{ file.uploadTime }}
</span>
</div>
@@ -60,27 +60,36 @@ const emit = defineEmits<{
.project-files {
.flex(column, flex-start, stretch);
gap: @spacing-base;
padding: @spacing-lg @spacing-xl;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
// 设计 11:项目文件区块直接落在白底页面上,无卡片
padding: 0;
&__title {
.section-title();
// 设计 11:竖条 4×20 设计px、文字 15 设计px/700
padding-left: 9px;
font-size: 12px;
font-weight: 700;
&::before {
width: 3px;
height: 15px;
}
}
&__list {
.flex(column, flex-start, stretch);
gap: @spacing-sm;
// 设计 11:行间距 15 设计px × 0.77
gap: 12px;
}
// 设计 11:整行通铺 #F7F8FA 浅底、圆角 ≈8 设计px,无描边
&__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: 6px 16px;
border: none;
border-radius: 6px;
background: @finance-row-bg;
}
&__info {
@@ -89,25 +98,31 @@ const emit = defineEmits<{
min-width: 0;
}
// 设计 11:文件名 13 设计px、副行 11 设计px #9CA3AF
&__name {
font-size: @font-size-base;
font-size: 11px;
line-height: 15px;
color: @heading-color;
.ellipsis();
}
&__meta {
font-size: @font-size-sm;
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
}
&__actions {
.flex(row, center);
gap: @spacing-sm;
// 设计 11:「预览 / 下载」间距 14 设计px × 0.77
gap: 12px;
flex-shrink: 0;
}
// 设计 11:行内操作是灰色纯文字(非蓝色),删除保持警示红
&__btn {
font-size: @font-size-sm;
color: @primary-color;
font-size: 12px;
color: @text-color-secondary;
transition: opacity 0.2s;
&:hover {

View File

@@ -122,26 +122,9 @@ function fileMeta(file: FileInfo): string {
</div>
<div class="project-finance__file-actions">
<button class="project-finance__act" type="button" @click="emit('preview', file)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path
d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"
stroke="currentColor"
stroke-width="1.2"
/>
<circle cx="8" cy="8" r="1.8" stroke="currentColor" stroke-width="1.2" />
</svg>
预览
</button>
<button class="project-finance__act" type="button" @click="emit('download', file)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path
d="M8 2v8m0 0 3-3m-3 3L5 7M3 13h10"
stroke="currentColor"
stroke-width="1.2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
下载
</button>
</div>
@@ -168,26 +151,9 @@ function fileMeta(file: FileInfo): string {
</div>
<div class="project-finance__file-actions">
<button class="project-finance__act" type="button" @click="emit('preview', contractFile)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path
d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"
stroke="currentColor"
stroke-width="1.2"
/>
<circle cx="8" cy="8" r="1.8" stroke="currentColor" stroke-width="1.2" />
</svg>
预览
</button>
<button class="project-finance__act" type="button" @click="emit('download', contractFile)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path
d="M8 2v8m0 0 3-3m-3 3L5 7M3 13h10"
stroke="currentColor"
stroke-width="1.2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
下载
</button>
</div>
@@ -202,14 +168,20 @@ function fileMeta(file: FileInfo): string {
.project-finance {
.flex(column, flex-start, stretch);
gap: @spacing-base;
padding: @spacing-lg @spacing-xl;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
// 设计 09:合同财务区块直接落在白底页面上,无外层卡片
padding: 0;
// 区块标题:与「项目进度/项目文件/售后信息」同款(16px/600 + 左侧蓝色竖条)
// 区块标题:与「项目进度/项目文件/售后信息」同款(12px/700 + 左侧蓝色竖条)
&__title {
.section-title();
padding-left: 9px;
font-size: 12px;
font-weight: 700;
&::before {
width: 3px;
height: 15px;
}
}
// 只读回落态(后端未重启、响应无 bills)的说明行
@@ -222,23 +194,26 @@ function fileMeta(file: FileInfo): string {
// 设计稿:卡片**竖排单列、定宽左对齐**(不是横排多列网格)
&__plans {
.flex(column, flex-start, flex-start);
gap: @spacing-sm;
// 设计 09:卡片间距 13 设计px × 0.77
gap: 10px;
}
// 设计 09:白底 + 1px #F0F1F3 描边、圆角 ≈13 设计px,定宽竖排
&__plan {
.flex(column, flex-start, stretch);
gap: @spacing-sm;
width: @finance-card-width;
padding: 12px;
padding: 14px 15px;
border: 1px solid @project-divider;
border-radius: @finance-card-radius;
background: @white;
// 设计稿用阴影立卡片、**不描边**;阴影比页面默认更淡,只做「浮起」暗示
box-shadow: @finance-card-shadow;
box-sizing: border-box;
// 三态配色(徽标实底白字 + 金额同色)
// 三态配色(浅底徽标 + 同色系金额)
&.is-paid {
.project-finance__badge {
background: @finance-paid;
background: @tag-success-bg;
color: @finance-paid;
}
.project-finance__amount {
@@ -248,7 +223,8 @@ function fileMeta(file: FileInfo): string {
&.is-pending {
.project-finance__badge {
background: @finance-pending;
background: @tag-warning-bg;
color: @tag-warning-text;
}
.project-finance__amount {
@@ -258,7 +234,8 @@ function fileMeta(file: FileInfo): string {
&.is-idle {
.project-finance__badge {
background: @finance-idle;
background: @tag-info-bg;
color: @text-color-secondary;
}
.project-finance__amount {
@@ -272,27 +249,27 @@ function fileMeta(file: FileInfo): string {
gap: @spacing-sm;
}
// 设计 09:期次标题 14 设计px × 0.77 ≈ 11px / 700
&__plan-name {
font-size: @font-size-base;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.8px;
color: @heading-color;
.ellipsis();
}
// 状态徽标:实底白字的小圆角块(设计 48×22 / 圆角 4 / 10 设计px 字号)
// 状态徽标:浅底彩色字(设计 09:约 57×22 设计px、圆角 4 设计px、11px 字)
&__badge {
.flex(row, center, center);
flex-shrink: 0;
padding: 2px @spacing-sm;
padding: 3px 10px;
border-radius: @radius-sm;
font-size: 11px;
line-height: 16px;
color: @white;
white-space: nowrap;
}
&__plan-body {
.flex(row, space-between, flex-start);
.flex(row, space-between, center);
gap: @spacing-base;
}
@@ -303,29 +280,30 @@ function fileMeta(file: FileInfo): string {
}
&__field {
font-size: @font-size-sm;
line-height: 17px;
font-size: 11px;
line-height: 16px;
color: @finance-meta-color;
.ellipsis();
}
// 金额:设计稿在卡片**右侧**、字号最大且随状态变色(不是左下角恒定深色)
// 金额:设计稿在卡片**右侧**、字号最大且随状态变色(20 设计px × 0.77 ≈ 15px)
&__amount {
flex-shrink: 0;
font-size: @font-size-xl;
font-size: 15px;
font-weight: 700;
line-height: 28px;
line-height: 22px;
white-space: nowrap;
}
// 「立即支付」:设计稿是卡内**满宽**金色胶囊(不是右下角的小蓝按钮)
// 「立即支付」:设计稿是卡内**满宽**金色按钮,通铺到卡片左右下缘
&__pay {
height: 22px;
height: 28px;
margin: 0 -15px -14px;
border: none;
border-radius: @radius-round;
border-radius: 0 0 @finance-card-radius @finance-card-radius;
background: @finance-pending;
color: @white;
font-size: @font-size-sm;
font-size: 12px;
cursor: pointer;
transition: background 0.2s;
@@ -338,17 +316,18 @@ function fileMeta(file: FileInfo): string {
&__files {
.flex(column, flex-start, stretch);
gap: @spacing-sm;
gap: 12px;
margin: 0;
padding: 0;
list-style: none;
}
// 设计稿:整行通铺浅灰底、无描边无圆角(区别于卡片)
// 设计稿:整行通铺 #F7F8FA 浅底、圆角 ≈8 设计px(区别于卡片)
&__file {
.flex(row, space-between, center);
gap: @spacing-sm;
padding: @spacing-sm @spacing-base;
padding: 6px 14px;
border-radius: 6px;
background: @finance-row-bg;
}
@@ -357,9 +336,9 @@ function fileMeta(file: FileInfo): string {
.flex(row, center, center);
flex-shrink: 0;
width: 34px;
height: 34px;
height: 20px;
border-radius: @radius-sm;
font-size: 10px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.2px;
}
@@ -372,27 +351,30 @@ function fileMeta(file: FileInfo): string {
}
&__file-name {
font-size: @font-size-base;
font-size: 11px;
line-height: 15px;
color: @heading-color;
.ellipsis();
}
&__file-meta {
font-size: @font-size-sm;
color: @text-color-secondary;
font-size: 11px;
line-height: 15px;
color: @text-color-disabled;
}
&__file-actions {
.flex(row, flex-end, center);
gap: @spacing-base;
gap: 12px;
flex-shrink: 0;
}
// 设计 09:行内操作是灰色纯文字(非蓝色)
&__act {
.flex(row, center, center);
gap: 4px;
font-size: @font-size-sm;
color: @text-color;
font-size: 12px;
color: @text-color-secondary;
cursor: pointer;
transition: color 0.2s;

View File

@@ -67,56 +67,57 @@ function businessTypeText(project: Project): string {
<style lang="less" scoped>
.project-info-card {
.flex(row, flex-start, center);
gap: @spacing-base;
padding: @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
gap: 14px;
// 设计 09:标识 + 文字 + 右侧状态直接排在白底页面上,无卡片底/阴影/内边距
padding: 0;
&__logo {
.flex(row, center, center);
flex-shrink: 0;
width: 56px;
height: 56px;
border-radius: 14px;
background: @white;
box-shadow: @shadow-base;
// 设计 09:方块 ≈56 设计px × 0.77,浅灰底、圆角 ≈12 设计px × 0.77
width: 44px;
height: 44px;
border-radius: 12px;
background: @project-logo-bg;
}
// 设计 09:方块内只有蓝色「</>」文字,无描边徽标框
&__logo-badge {
.flex(row, center, center);
width: 34px;
height: 34px;
border: 2px solid @project-accent;
border-radius: 10px;
width: auto;
height: auto;
border: none;
border-radius: 0;
color: @project-accent;
font-family: Consolas, Menlo, 'Courier New', monospace;
font-size: @font-size-base;
font-weight: 700;
letter-spacing: -1px;
font-family: inherit;
font-size: 15px;
font-weight: 400;
letter-spacing: 0;
}
&__main {
.flex(column, flex-start, stretch);
flex: 1;
min-width: 0;
gap: @spacing-sm;
gap: 6px;
}
// 设计 09:主标题 19 设计px × 0.77 ≈ 15px / 700
&__name {
font-size: @font-size-title;
font-weight: 600;
font-size: 15px;
font-weight: 700;
line-height: 1.2;
color: @heading-color;
.ellipsis();
}
// 设计稿:三个字段是**单行**「标签:值」,等距排布
// 设计稿:三个字段是**单行**「标签:值」,等距排布(11px 小字号不跟缩)
&__meta {
.flex(row, flex-start, center);
flex-wrap: wrap;
gap: @spacing-lg;
font-size: @font-size-sm;
gap: 20px;
font-size: 11px;
font-weight: 500;
color: @heading-color;
}
@@ -128,12 +129,14 @@ function businessTypeText(project: Project): string {
&__label {
color: @text-color-secondary;
font-style: normal;
font-weight: 400;
}
// 设计 09:右侧状态是纯文字,16 设计px × 0.77 ≈ 12px / 700
&__status {
flex-shrink: 0;
font-size: @font-size-title;
font-weight: 600;
font-size: 12px;
font-weight: 700;
&.is-active {
color: @project-accent;

View File

@@ -50,7 +50,7 @@ function linkDone(index: number): boolean {
</span>
<span class="project-milestones__name">{{ node.name }}</span>
<!-- 设计稿:已完成节点显示完成时间,其余显示状态文案 -->
<span class="project-milestones__sub text-secondary">{{ node.time || node.status }}</span>
<span class="project-milestones__sub">{{ node.time || node.status }}</span>
</li>
</ol>
@@ -61,25 +61,32 @@ function linkDone(index: number): boolean {
</template>
<style lang="less" scoped>
// 节点列宽 = 设计稿相邻节点中心距(237 设计px × 0.77 ≈ 182px)
@milestone-node-width: 182px;
@milestone-dot-size: 32px;
// 节点列宽 = 设计稿相邻节点中心距(356 设计px × 0.77 ≈ 274px)
@milestone-node-width: 274px;
@milestone-dot-size: 18px;
.project-milestones {
.flex(column, flex-start, stretch);
padding: @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
// 设计 13:里程碑区块直接落在白底页面上,无卡片
padding: 0;
&__title {
.section-title();
// 设计 13:竖条 4×20 设计px、文字 15 设计px/700
padding-left: 9px;
font-size: 12px;
font-weight: 700;
&::before {
width: 3px;
height: 15px;
}
}
// 设计稿:轨迹从卡片左侧正文位起、**固定节距**左对齐(不铺满整宽)
// 设计稿:轨迹从容器左缘起、**固定节距**左对齐(不铺满整宽)
&__track {
.flex(row, flex-start, flex-start);
margin-top: @spacing-lg;
margin-top: 16px;
padding-bottom: @spacing-xs;
overflow-x: auto;
.scrollbar();
@@ -99,7 +106,7 @@ function linkDone(index: number): boolean {
left: calc(50% + @milestone-dot-size / 2);
width: calc(100% - @milestone-dot-size);
height: 2px;
background: @milestone-idle;
background: @milestone-line;
}
&.is-link-done:not(:last-child)::after {
@@ -113,12 +120,15 @@ function linkDone(index: number): boolean {
z-index: 1;
width: @milestone-dot-size;
height: @milestone-dot-size;
border: 2px solid @milestone-idle;
border: 3px solid @milestone-idle;
border-radius: @radius-round;
background: @white;
box-sizing: border-box;
// 设计 13:已完成圆点略小(20 设计px)、实心绿
.is-done & {
width: 16px;
height: 16px;
border-color: @milestone-done;
background: @milestone-done;
}
@@ -130,39 +140,40 @@ function linkDone(index: number): boolean {
}
&__check {
width: 16px;
height: 16px;
width: 10px;
height: 10px;
}
&__name {
margin-top: @spacing-sm;
max-width: 100%;
font-size: @font-size-base;
font-weight: 600;
font-size: 12px;
font-weight: 400;
text-align: center;
color: @text-color-secondary;
color: @text-color;
.multi-ellipsis(2);
.is-done & {
color: @milestone-done;
color: @success-color;
}
.is-active & {
color: @project-accent;
font-weight: 600;
}
}
&__sub {
margin-top: @spacing-xs;
max-width: 100%;
font-size: @font-size-sm;
font-size: 11px;
text-align: center;
color: @text-color-disabled;
.multi-ellipsis(2);
}
&__empty {
margin-top: @spacing-base;
padding-left: 21px;
font-size: @font-size-base;
}
}

View File

@@ -37,8 +37,8 @@ function clampPercent(value: number): number {
</div>
<div class="project-progress__range">
<span class="text-secondary">开始时间:{{ props.startTime || '—' }}</span>
<span class="text-secondary">结束时间:{{ props.endTime || '—' }}</span>
<span>开始时间:{{ props.startTime || '—' }}</span>
<span>结束时间:{{ props.endTime || '—' }}</span>
</div>
</section>
</template>
@@ -46,36 +46,43 @@ function clampPercent(value: number): number {
<style lang="less" scoped>
.project-progress {
.flex(column, flex-start, stretch);
padding: @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
// 设计 13:开发进度区块直接落在白底页面上,无卡片
padding: 0;
&__title {
.section-title();
// 设计 13:竖条 4×20 设计px、文字 15 设计px/700,条→文间距 8 设计px
padding-left: 9px;
font-size: 12px;
font-weight: 700;
&::before {
width: 3px;
height: 15px;
}
}
// 设计稿:正文块相对标题再右缩进一级(设计 27 设计px × 0.77 ≈ 21px)
// 设计 13:正文与容器左缘对齐(只有标题被竖条顶出一级)
&__head {
.flex(row, space-between, center);
margin-top: @spacing-base;
padding-left: 21px;
margin-top: 20px;
}
&__label {
font-size: @font-size-sm;
font-size: 12px;
}
// 设计 13:「65%」20 设计px × 0.77 ≈ 15px / 700
&__percent {
font-size: @font-size-title;
font-weight: 600;
font-size: 15px;
font-weight: 700;
color: @project-accent;
}
&__track {
position: relative;
height: 5px;
margin: @spacing-base 0 0 21px;
margin: 12px 0 0;
border-radius: @radius-round;
background: @project-track;
}
@@ -87,11 +94,12 @@ function clampPercent(value: number): number {
transition: width 0.3s;
}
// 设计 13:末端白底蓝环圆点 ≈15 设计px × 0.77
&__knob {
position: absolute;
top: 50%;
width: 16px;
height: 16px;
width: 12px;
height: 12px;
border: 2px solid @project-accent;
border-radius: @radius-round;
background: @white;
@@ -101,8 +109,10 @@ function clampPercent(value: number): number {
&__range {
.flex(row, space-between, center);
margin-top: @spacing-lg;
font-size: @font-size-sm;
margin-top: 10px;
font-size: 11px;
// 设计 13:起止时间 (156,163,175)
color: @text-color-disabled;
}
}
</style>

View File

@@ -22,7 +22,7 @@ defineProps<Props>()
>
<span class="project-team__avatar">{{ member.avatarChar }}</span>
<span class="project-team__name">{{ member.name || '—' }}</span>
<span class="project-team__role text-secondary">{{ member.role }}</span>
<span class="project-team__role">{{ member.role }}</span>
</li>
</ul>
@@ -33,27 +33,33 @@ defineProps<Props>()
</template>
<style lang="less" scoped>
// 设计稿实测:头像直径 90 设计px、相邻头像中心距 183 设计px → ×0.77 得 69px / 141px
@team-avatar-size: 68px;
@team-avatar-gap: 72px;
// 设计稿实测:头像直径 64 设计px、相邻头像中心距 99 设计px → ×0.77 得 49px / 76px(取整 48 / 间距 28)
@team-avatar-size: 48px;
@team-avatar-gap: 28px;
.project-team {
.flex(column, flex-start, stretch);
padding: @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
// 设计 13:项目团队区块直接落在白底页面上,无卡片
padding: 0;
&__title {
.section-title();
// 设计 13:竖条 4×20 设计px、文字 15 设计px/700
padding-left: 9px;
font-size: 12px;
font-weight: 700;
&::before {
width: 3px;
height: 15px;
}
}
&__list {
.flex(row, flex-start, flex-start);
flex-wrap: wrap;
gap: @spacing-base @team-avatar-gap;
margin-top: @spacing-lg;
padding-left: 18px;
margin-top: 16px;
}
&__item {
@@ -61,6 +67,7 @@ defineProps<Props>()
width: @team-avatar-size;
}
// 设计 13:头像 = 品牌蓝实底圆 + 白色单字(16 设计px × 0.77 ≈ 12px)
&__avatar {
.flex(row, center, center);
width: @team-avatar-size;
@@ -68,14 +75,15 @@ defineProps<Props>()
border-radius: @radius-round;
background: @team-avatar-bg;
color: @white;
font-size: @font-size-title;
font-weight: 500;
font-size: 12px;
font-weight: 400;
}
// 设计 13:姓名 16 设计px/600,角色 12 设计px #9CA3AF
&__name {
margin-top: @spacing-sm;
margin-top: 16px;
max-width: 100%;
font-size: @font-size-lg;
font-size: 12px;
font-weight: 600;
color: @heading-color;
text-align: center;
@@ -85,14 +93,14 @@ defineProps<Props>()
&__role {
margin-top: @spacing-xs;
max-width: 100%;
font-size: @font-size-sm;
font-size: 12px;
text-align: center;
color: @text-color-disabled;
.ellipsis();
}
&__empty {
margin-top: @spacing-base;
padding-left: 18px;
font-size: @font-size-base;
}
}