Commit e9251670 by 李伟康

style(mobile): 格式化报告组件代码样式

- 统一HTML标签属性换行格式
- 统一CSS颜色值大小写格式
- 优化表格边框样式定义
- 添加卡片模式下多个元素的字体大小样式
- 规范CSS选择器和属性缩进格式
1 parent 66a4457b
<template> <template>
<div class="report-component " :class="{ 'is-card': isCard }"> <div
class="report-component "
:class="{ 'is-card': isCard }"
>
<template v-if="reportIndex == 1"> <template v-if="reportIndex == 1">
<div class="date">统计周期:{{dayjs(reportItem.reportStartDate).format('YYYY年M月')}} ({{ reportItem.reportStartDate }}至{{ reportItem.reportEndDate }})</div> <div class="date">统计周期:{{dayjs(reportItem.reportStartDate).format('YYYY年M月')}} ({{ reportItem.reportStartDate }}至{{ reportItem.reportEndDate }})</div>
</template> </template>
...@@ -83,7 +86,10 @@ ...@@ -83,7 +86,10 @@
<span class="dot">●</span> <span class="dot">●</span>
整体结论 整体结论
</div> </div>
<div class="content-text" v-html="formatText(b.overallConclusion)"> <div
class="content-text"
v-html="formatText(b.overallConclusion)"
>
</div> </div>
<!-- 行动建议 --> <!-- 行动建议 -->
...@@ -91,7 +97,10 @@ ...@@ -91,7 +97,10 @@
<span class="dot">●</span> <span class="dot">●</span>
行动建议 行动建议
</div> </div>
<div class="content-text" v-html="formatText(b.actionSuggestion)"> <div
class="content-text"
v-html="formatText(b.actionSuggestion)"
>
</div> </div>
</div> </div>
</template> </template>
...@@ -234,7 +243,7 @@ export default { ...@@ -234,7 +243,7 @@ export default {
margin-bottom: 16px; margin-bottom: 16px;
border-radius: 8px; border-radius: 8px;
overflow: auto; overflow: auto;
border: 1px solid #D8E6F0; border: 1px solid #d8e6f0;
table { table {
width: 100%; width: 100%;
...@@ -250,7 +259,7 @@ export default { ...@@ -250,7 +259,7 @@ export default {
text-align: left; text-align: left;
font-weight: 600; font-weight: 600;
color: #333; color: #333;
border: 1px solid #D8E6F0; border: 1px solid #d8e6f0;
border-top: none; border-top: none;
&:first-child { &:first-child {
...@@ -267,11 +276,11 @@ export default { ...@@ -267,11 +276,11 @@ export default {
tbody { tbody {
tr { tr {
background: #fff; background: #fff;
td{ td {
border-left: none !important; border-left: none !important;
&:last-child { &:last-child {
border-right: none !important; border-right: none !important;
} }
} }
&:last-child { &:last-child {
td { td {
...@@ -281,13 +290,11 @@ export default { ...@@ -281,13 +290,11 @@ export default {
} }
} }
} }
td { td {
padding: 6px 8px; padding: 6px 8px;
text-align: left; text-align: left;
border: 1px solid #D8E6F0; border: 1px solid #d8e6f0;
&.change-up { &.change-up {
color: #ff2d55; color: #ff2d55;
...@@ -330,10 +337,27 @@ export default { ...@@ -330,10 +337,27 @@ export default {
} }
} }
.is-card{ .is-card {
.date {
.content-text,.section-title{ font-size: 14.31px !important;
font-size: 15.31px; }
.content-text,
.section-title,
.business-title,
.sub-title {
font-size: 15.31px !important;
}
.merchant-list .merchant-item {
.value{
font-size: 19.68px !important;
}
.label,
.unit {
font-size: 15.31px !important;
}
}
.data-table table{
font-size: 14.31px !important;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!