feat ui设计稿bug修复
This commit is contained in:
@@ -165,54 +165,84 @@ function fileMeta(file: FileInfo): string {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿实测(1920,1:1):标题 (82,342) 15/700;计划卡 (70,380) 372×139 / (70,533) 372×144 /
|
||||
// (70,691) 372×116,描边 1px #F0F1F3、圆角 13;期次名 (89,398) 14/700;状态 (378,400) 11/500;
|
||||
// 字段行 (89,426) 11/400 #6B7280;金额 (341.33,453) 20/700;「立即支付」通栏 372×34 #F59E0B;
|
||||
// 发票记录标题 (82,841)、合同文件标题 (82,1033);文件行 1780×55 #F7F8FA。
|
||||
.project-finance {
|
||||
.flex(column, flex-start, stretch);
|
||||
gap: @spacing-base;
|
||||
// 设计 09:合同财务区块直接落在白底页面上,无外层卡片
|
||||
padding: 0;
|
||||
|
||||
// 区块标题:与「项目进度/项目文件/售后信息」同款(12px/700 + 左侧蓝色竖条)
|
||||
// 分割线 317 → 「付款计划」盒 339(ink 342,843103b2)
|
||||
&__title {
|
||||
.section-title();
|
||||
padding-left: 9px;
|
||||
font-size: 12px;
|
||||
margin-top: 22px;
|
||||
padding-left: 12px;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: 20px;
|
||||
|
||||
&::before {
|
||||
width: 3px;
|
||||
height: 15px;
|
||||
width: 4px;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
// 只读回落态(后端未重启、响应无 bills)的说明行
|
||||
&__note {
|
||||
font-size: @font-size-sm;
|
||||
// 首区块标题盒底 359 → 首张卡顶 380
|
||||
&__title:first-child + &__plans {
|
||||
margin-top: 21px;
|
||||
}
|
||||
|
||||
// 区块间距:付款计划卡底 807 → 「发票记录」盒 838(31);发票行底 999 → 「合同文件」盒 1030(31)
|
||||
&__plans + &__title,
|
||||
&__files + &__title {
|
||||
margin-top: 31px;
|
||||
}
|
||||
|
||||
// 区块标题盒底 → 首行顶:838+20 → 879(21);1030+20 → 1071(21)
|
||||
&__title + &__files,
|
||||
&__title + &__file {
|
||||
margin-top: 21px;
|
||||
}
|
||||
|
||||
// ---------- 付款计划 ----------
|
||||
|
||||
// 设计稿:卡片**竖排单列、定宽左对齐**(不是横排多列网格)
|
||||
// 卡片竖排单列、定宽 372 左对齐;卡间距 14(380→533→691 实测 153/158,扣卡高)
|
||||
&__plans {
|
||||
.flex(column, flex-start, flex-start);
|
||||
// 设计 09:卡片间距 13 设计px × 0.77
|
||||
gap: 10px;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
// 设计 09:白底 + 1px #F0F1F3 描边、圆角 ≈13 设计px,定宽竖排
|
||||
// 白底 + 1px #F0F1F3 描边、圆角 13,定宽 372;内容内缩 19/17
|
||||
&__plan {
|
||||
.flex(column, flex-start, stretch);
|
||||
gap: @spacing-sm;
|
||||
width: @finance-card-width;
|
||||
padding: 14px 15px;
|
||||
position: relative;
|
||||
width: 372px;
|
||||
padding: 17px 19px 17px;
|
||||
border: 1px solid @project-divider;
|
||||
border-radius: @finance-card-radius;
|
||||
border-radius: 13px;
|
||||
background: @white;
|
||||
box-sizing: border-box;
|
||||
gap: 0; // 段间距全部走显式 margin,避免 gap 与 margin 叠加
|
||||
|
||||
// 带「立即支付」时按钮贴卡片下缘:底部不留内边距
|
||||
&:has(.project-finance__pay) {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
// 两条字段、无支付按钮(卡3):底距 17(设计卡高 116 = 2+17+19+8+53+17)
|
||||
&:not(:has(.project-finance__field:nth-child(3))):not(:has(.project-finance__pay)) {
|
||||
padding-bottom: 17px;
|
||||
}
|
||||
|
||||
// 三条字段、无支付按钮(卡1):底距 15(设计卡高 139 = 2+17+19+8+78+15)
|
||||
&:has(.project-finance__field:nth-child(3)):not(:has(.project-finance__pay)) {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
// 三态配色(浅底徽标 + 同色系金额)
|
||||
&.is-paid {
|
||||
.project-finance__badge {
|
||||
background: @tag-success-bg;
|
||||
color: @finance-paid;
|
||||
}
|
||||
|
||||
@@ -223,7 +253,6 @@ function fileMeta(file: FileInfo): string {
|
||||
|
||||
&.is-pending {
|
||||
.project-finance__badge {
|
||||
background: @tag-warning-bg;
|
||||
color: @tag-warning-text;
|
||||
}
|
||||
|
||||
@@ -234,8 +263,7 @@ function fileMeta(file: FileInfo): string {
|
||||
|
||||
&.is-idle {
|
||||
.project-finance__badge {
|
||||
background: @tag-info-bg;
|
||||
color: @text-color-secondary;
|
||||
color: @project-label;
|
||||
}
|
||||
|
||||
.project-finance__amount {
|
||||
@@ -249,61 +277,90 @@ function fileMeta(file: FileInfo): string {
|
||||
gap: @spacing-sm;
|
||||
}
|
||||
|
||||
// 设计 09:期次标题 14 设计px × 0.77 ≈ 11px / 700
|
||||
// 期次标题 14/700,行高 19(顶 398 = 卡内 380+18)
|
||||
&__plan-name {
|
||||
font-size: 11px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: @heading-color;
|
||||
line-height: 19px;
|
||||
color: @project-ink;
|
||||
.ellipsis();
|
||||
}
|
||||
|
||||
// 状态徽标:浅底彩色字(设计 09:约 57×22 设计px、圆角 4 设计px、11px 字)
|
||||
// 状态纯文字(设计 11/500)
|
||||
&__badge {
|
||||
.flex(row, center, center);
|
||||
flex-shrink: 0;
|
||||
padding: 3px 10px;
|
||||
border-radius: @radius-sm;
|
||||
margin-top: 2px;
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
line-height: 15px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// 金额是**文本覆盖层**,不参与卡高:设计里它压在字段区右侧、与首字段行齐平
|
||||
// (ink 453 = 卡顶 380 + 73;字段盒顶 424 + 29)。必须 absolute,否则 26 高的
|
||||
// 行盒会把 __plan-body 撑高,三张卡分别虚高 8/8/0。
|
||||
&__plan-body {
|
||||
.flex(row, space-between, center);
|
||||
.flex(row, space-between, flex-start);
|
||||
position: relative;
|
||||
margin-top: 8px; // 期次行盒底 416 → 字段块顶 424
|
||||
gap: @spacing-base;
|
||||
}
|
||||
|
||||
// 字段块按内容定高(3 行 78 / 2 行 53),行距由绝对偏移给,避免 margin 叠加。
|
||||
// 设计:卡1 424→502(3 行 0/23/61),卡2 564→617、卡3 729→782(2 行 0/23)。
|
||||
&__fields {
|
||||
.flex(column, flex-start, stretch);
|
||||
gap: 4px;
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
min-width: 0;
|
||||
|
||||
// 3 行时块高 78,2 行时 53
|
||||
height: 53px;
|
||||
|
||||
&:has(> :nth-child(3)) {
|
||||
height: 78px;
|
||||
}
|
||||
}
|
||||
|
||||
&__field {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
color: @finance-meta-color;
|
||||
line-height: 15px;
|
||||
color: @project-label;
|
||||
.ellipsis();
|
||||
|
||||
// 字段行距:426 → 449 → 487(相对块顶 0 / 23 / 61)
|
||||
&:nth-child(1) { top: 0; }
|
||||
|
||||
&:nth-child(2) { top: 23px; }
|
||||
|
||||
&:nth-child(3) { top: 61px; }
|
||||
}
|
||||
|
||||
// 金额:设计稿在卡片**右侧**、字号最大且随状态变色(20 设计px × 0.77 ≈ 15px)
|
||||
// 金额 20/700:设计 ink 453(卡顶 380 + 73),相对首字段行盒顶(424)再下移 29
|
||||
&__amount {
|
||||
position: absolute;
|
||||
top: 29px;
|
||||
right: 0;
|
||||
flex-shrink: 0;
|
||||
font-size: 15px;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
line-height: 22px;
|
||||
line-height: 26px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// 「立即支付」:设计稿是卡内**满宽**金色按钮,通铺到卡片左右下缘
|
||||
// 「立即支付」:设计卡内通铺 370×34、贴卡片下缘。
|
||||
// 卡2:字段块底 617 → 按钮顶 642(间距 25),按钮底 676,卡底 677。
|
||||
&__pay {
|
||||
height: 28px;
|
||||
margin: 0 -15px -14px;
|
||||
height: 34px;
|
||||
margin: 11px -19px 0;
|
||||
border: none;
|
||||
border-radius: 0 0 @finance-card-radius @finance-card-radius;
|
||||
border-radius: 0 0 13px 13px;
|
||||
background: @finance-pending;
|
||||
color: @white;
|
||||
font-size: 12px;
|
||||
line-height: 34px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
|
||||
@@ -314,31 +371,34 @@ function fileMeta(file: FileInfo): string {
|
||||
|
||||
// ---------- 发票 / 合同文件 ----------
|
||||
|
||||
// 发票行间距 10(879→944 / 1071→1136)
|
||||
&__files {
|
||||
.flex(column, flex-start, stretch);
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
// 设计稿:整行通铺 #F7F8FA 浅底、圆角 ≈8 设计px(区别于卡片)
|
||||
// 整行通铺 #F7F8FA、圆角 8,行高 55
|
||||
&__file {
|
||||
.flex(row, space-between, center);
|
||||
gap: @spacing-sm;
|
||||
padding: 6px 14px;
|
||||
border-radius: 6px;
|
||||
gap: @spacing-base;
|
||||
height: 55px;
|
||||
box-sizing: border-box;
|
||||
padding: 0 5.7px 0 16px; // 徽标左缘 86 = 内容区 70 + 16;操作右缘 x1845
|
||||
border-radius: 8px;
|
||||
background: @finance-row-bg;
|
||||
}
|
||||
|
||||
// 文件类型标识:按后缀着色的小方块(与需求提报页附件行同一套色板)
|
||||
// 文件类型方块(设计 ≈33×21)
|
||||
&__file-badge {
|
||||
.flex(row, center, center);
|
||||
flex-shrink: 0;
|
||||
width: 34px;
|
||||
height: 20px;
|
||||
width: 33px;
|
||||
height: 21px;
|
||||
border-radius: @radius-sm;
|
||||
font-size: 11px;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
@@ -346,35 +406,35 @@ function fileMeta(file: FileInfo): string {
|
||||
&__file-info {
|
||||
.flex(column, flex-start, stretch);
|
||||
flex: 1;
|
||||
gap: 2px;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
&__file-name {
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
color: @heading-color;
|
||||
max-width: 1410px;
|
||||
font-size: 13px;
|
||||
line-height: 17px;
|
||||
color: @project-ink;
|
||||
.ellipsis();
|
||||
}
|
||||
|
||||
&__file-meta {
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
color: @text-color-disabled;
|
||||
color: @project-muted;
|
||||
}
|
||||
|
||||
&__file-actions {
|
||||
.flex(row, flex-end, center);
|
||||
gap: 12px;
|
||||
gap: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// 设计 09:行内操作是灰色纯文字(非蓝色)
|
||||
&__act {
|
||||
.flex(row, center, center);
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
font-size: 12px;
|
||||
color: @text-color-secondary;
|
||||
line-height: 16px;
|
||||
color: @project-label;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
|
||||
@@ -384,7 +444,7 @@ function fileMeta(file: FileInfo): string {
|
||||
}
|
||||
|
||||
&__empty {
|
||||
font-size: @font-size-base;
|
||||
font-size: @font-size-body;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user