feat 完善注释
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import type { ServiceContentBlock } from '@/types/business/home'
|
||||
|
||||
interface Props {
|
||||
/** 服务内容区块列表:后端每条富文本目录一项 */
|
||||
contents: ServiceContentBlock[]
|
||||
}
|
||||
|
||||
@@ -10,7 +9,6 @@ defineProps<Props>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 设计稿:一个「服务内容」区块 = 一条富文本目录(块内含媒体与要点列表,可多块) -->
|
||||
<div v-if="contents.length" class="home-contents">
|
||||
<section
|
||||
v-for="(block, index) in contents"
|
||||
@@ -20,7 +18,6 @@ defineProps<Props>()
|
||||
<h3 class="home-contents__title">
|
||||
服务内容
|
||||
</h3>
|
||||
<!-- 后端富文本原文(含内嵌图片/视频),取自后台维护内容 -->
|
||||
<div class="home-contents__rich" v-html="block.content" />
|
||||
</section>
|
||||
</div>
|
||||
@@ -29,9 +26,8 @@ defineProps<Props>()
|
||||
<style lang="less" scoped>
|
||||
.home-contents {
|
||||
&__block {
|
||||
// 设计稿区块卡 矩形 148286 @(70,736) 1780×593:白底、无描边投影
|
||||
margin-bottom: @spacing-base;
|
||||
padding: 40px 45px 0; // 正文 @(115,1090) → 卡内 x45(112−70=42 标题左,正文 115−70=45)
|
||||
padding: 40px 45px 0;
|
||||
border-radius: @radius-lg;
|
||||
background: @white;
|
||||
min-height: 593px;
|
||||
@@ -43,8 +39,7 @@ defineProps<Props>()
|
||||
}
|
||||
|
||||
&__title {
|
||||
// 设计稿栏目标题 36px / 700 / #121212
|
||||
margin: 0 0 301px; // 正文顶 1090 − 标题底(736+40+52) ≈ 262 → 取 261
|
||||
margin: 0 0 301px;
|
||||
font-size: 36px;
|
||||
font-weight: 700;
|
||||
line-height: 52px;
|
||||
@@ -52,7 +47,6 @@ defineProps<Props>()
|
||||
}
|
||||
|
||||
&__rich {
|
||||
// 设计稿正文 @(115,1090) 1688×177 16px / #222222
|
||||
font-size: 16px;
|
||||
line-height: 1.75;
|
||||
color: @home-paragraph;
|
||||
@@ -76,7 +70,6 @@ defineProps<Props>()
|
||||
:deep(video) {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
// 设计稿视频/图片通栏贴卡内边距,圆角与卡片呼应
|
||||
margin: 0 auto @spacing-lg;
|
||||
border-radius: @radius-base;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user