feat 完善注释

This commit is contained in:
Ironsp
2026-10-01 17:24:57 +08:00
parent 2b59f68fd7
commit 9f4a5c7cda
183 changed files with 485 additions and 3615 deletions

View File

@@ -12,7 +12,6 @@ interface Props {
defineProps<Props>()
// 设计稿四张卡的插画图案(81×111,蓝湖整稿切图);接口 logoUrl 优先
const FALLBACK_ILL: Record<BusinessType, string> = {
internet: illInternet,
hardware: illHardware,
@@ -34,13 +33,11 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
class="home-business__card"
:class="`home-business__card--${line.id}`"
>
<!-- 设计稿:插画 81×111 @卡内(48,4);接口 logoUrl 优先,静态切图兜底 -->
<img
class="home-business__ill"
:src="line.icon || FALLBACK_ILL[line.id]"
:alt="line.name"
/>
<!-- 设计稿卡片右上角选择圆环(31×31) -->
<span class="home-business__check" aria-hidden="true" />
<h4 class="home-business__name">
{{ line.name }}
@@ -55,15 +52,13 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
<style lang="less" scoped>
.home-business {
// 设计稿区块卡 1680×400:白底 + #E2E2E2 描边,标题 @190,1062(卡顶 +44),卡区左右距 70
padding: 44px 70px 54px;
border: 1px solid @home-section-border;
border-radius: @radius-lg;
background: @white;
&__title {
margin: 0 0 47px; // 标题盒底 1114 → 卡顶 1161
// 设计稿栏目标题 36px / 700 / #121212
margin: 0 0 47px;
font-size: @font-size-xxl;
font-weight: 700;
color: @home-ink;
@@ -71,14 +66,12 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
&__grid {
display: flex;
// 一行固定四张,窄视口行内等比收缩(wrap 会因 1px 之差把第四张挤到第二行)
gap: 22px;
}
&__card {
position: relative;
.flex(column, flex-start, flex-start);
// 设计稿业务卡 368×206,一行固定四张(4×368 + 3×22 = 1538 ≤ 1560)
flex: 0 1 368px;
min-width: 0;
height: 206px;
@@ -97,7 +90,6 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
}
}
// 设计稿插画 81×111 @卡内 (48,4)
&__ill {
position: absolute;
top: 4px;
@@ -107,7 +99,6 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
object-fit: contain;
}
// 右上角选择圆环(31×31)
&__check {
position: absolute;
top: 24px;
@@ -131,10 +122,8 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
}
}
// 设计稿标题 @卡内 (20,106),描述 @ (20,151)
&__name {
margin: 106px 0 0;
// 设计稿卡片标题 28px / 500 / #121212
font-size: @font-size-title;
font-weight: 500;
line-height: 41px;
@@ -150,7 +139,6 @@ const FALLBACK_ILL: Record<BusinessType, string> = {
.multi-ellipsis(1);
}
// 设计稿:首张「互联网软件」为 #024FFF 选中实底 + 白字白环;其余白底描边
&__card--internet {
border-color: @primary-strong;
background: @primary-strong;