feat 完善注释
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
// 业务详情页:数据只经 useHomeStore,不直接 import api
|
||||
import { useHomeStore } from '@/stores/modules/home'
|
||||
import type { BusinessType } from '@/types/api'
|
||||
import HomeServiceContents from './cpns/HomeServiceContents.vue'
|
||||
@@ -23,7 +22,6 @@ onMounted(load)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 业务详情:设计实测内容区 x70→1850(宽 1780),故与其它常规页一致用 .container -->
|
||||
<div class="business-detail">
|
||||
<div class="container">
|
||||
<nav class="business-detail__breadcrumb">
|
||||
@@ -60,13 +58,11 @@ onMounted(load)
|
||||
|
||||
<style lang="less" scoped>
|
||||
.business-detail {
|
||||
// 设计实测:面包屑 y104、头图条 y190、白卡 y429/y736
|
||||
padding-top: 32px; // 面包屑顶 = 104 − 顶栏 72
|
||||
padding-top: 32px;
|
||||
padding-bottom: @spacing-xxl;
|
||||
|
||||
&__breadcrumb {
|
||||
// 设计稿面包屑 @(70,104) 24px/500 #666666
|
||||
margin-bottom: 49px; // 头图条顶 190 − 面包屑底(104+37)
|
||||
margin-bottom: 49px;
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
line-height: 37px;
|
||||
@@ -77,11 +73,10 @@ onMounted(load)
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿头图条 矩形 195 @(70,190) 1780×219(浅蓝渐变底)
|
||||
&__hero {
|
||||
.flex(column, flex-start);
|
||||
margin-bottom: @spacing-base;
|
||||
padding: 129px 29px 0; // 业务名 @(99,319) → 卡内 x29 / y129
|
||||
padding: 129px 29px 0;
|
||||
border-radius: @radius-lg;
|
||||
background: @home-detail-hero-bg;
|
||||
height: 219px;
|
||||
@@ -95,16 +90,15 @@ onMounted(load)
|
||||
}
|
||||
|
||||
&__logo {
|
||||
display: none; // 设计稿头图条内无独立 logo 块
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__intro {
|
||||
.flex(column, flex-start);
|
||||
gap: 8px; // 名称底 319+33=352 → 副标题顶 360
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
&__name {
|
||||
// 设计稿业务名 @(99,319) 26px / #333333
|
||||
margin: 0;
|
||||
font-size: 26px;
|
||||
font-weight: 400;
|
||||
@@ -113,7 +107,6 @@ onMounted(load)
|
||||
}
|
||||
|
||||
&__slogan {
|
||||
// 设计稿副标题 @(99,360) 14px/400 #333333
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -122,7 +115,7 @@ onMounted(load)
|
||||
}
|
||||
|
||||
&__cta {
|
||||
display: none; // 设计稿无底部 CTA 块
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user