Commit 5b923ffa by chenwq

style(reportDetail): 优化督导日报详情页的样式与配置

注释掉顶部导航栏组件
修改默认页面标题为「督导日报」
简化文本内容的模板写法
统一颜色值大小写规范,调整各模块间距与内边距
1 parent c2159531
<template> <template>
<div class="report-detail-page"> <div class="report-detail-page">
<van-nav-bar <!-- <van-nav-bar :title="title" left-arrow @click-left="onClickLeft" fixed placeholder class="navigation-header" /> -->
:title="title"
left-arrow
@click-left="onClickLeft"
fixed
placeholder
class="navigation-header"
/>
<div class="detail-container"> <div class="detail-container">
<div class="detail-section" v-for="(sec, index) in config" :key="index"> <div class="detail-section" v-for="(sec, index) in config" :key="index">
...@@ -35,9 +28,7 @@ ...@@ -35,9 +28,7 @@
<!-- 默认长文本类型 --> <!-- 默认长文本类型 -->
<template v-else> <template v-else>
<div class="label">{{ sec.label }}</div> <div class="label">{{ sec.label }}</div>
<div class="text-content"> <div class="text-content">{{itemData[sec.key]||'暂无'}}</div>
{{ itemData[sec.key] || '暂无' }}
</div>
</template> </template>
</div> </div>
</div> </div>
...@@ -52,7 +43,7 @@ export default { ...@@ -52,7 +43,7 @@ export default {
name: 'ReportDetail', name: 'ReportDetail',
data() { data() {
return { return {
title: '详情', title: '督导日报',
itemData: {}, itemData: {},
config: [], config: [],
taskIdKey: '' taskIdKey: ''
...@@ -61,7 +52,7 @@ export default { ...@@ -61,7 +52,7 @@ export default {
created() { created() {
const detailType = this.$route.query.detailType || 'dailyReport' const detailType = this.$route.query.detailType || 'dailyReport'
const strategy = constantData.JUMP_STRATEGY_MAP[detailType] || {} const strategy = constantData.JUMP_STRATEGY_MAP[detailType] || {}
this.title = strategy.title || '详情' this.title = strategy.title || '督导日报'
this.taskIdKey = strategy.taskIdKey this.taskIdKey = strategy.taskIdKey
try { try {
...@@ -144,11 +135,11 @@ export default { ...@@ -144,11 +135,11 @@ export default {
.navigation-header { .navigation-header {
:deep(.van-nav-bar__title) { :deep(.van-nav-bar__title) {
font-size: var(--fontSize34, 17px); font-size: var(--fontSize34, 17px);
color: #222222; color: #000000E5;
font-weight: 600; font-weight: 600;
} }
:deep(.van-icon) { :deep(.van-icon) {
color: #222222; color: #000000E5;
} }
} }
...@@ -159,7 +150,7 @@ export default { ...@@ -159,7 +150,7 @@ export default {
background: #ffffff; background: #ffffff;
border-radius: 8px; border-radius: 8px;
padding: 16px; padding: 16px;
margin-bottom: 12px; margin-bottom: 8px;
.status-row { .status-row {
display: flex; display: flex;
...@@ -168,7 +159,7 @@ export default { ...@@ -168,7 +159,7 @@ export default {
.label { .label {
font-size: 14px; font-size: 14px;
color: #000000E5; color: #000000e5;
font-weight: 400; font-weight: 400;
margin-bottom: 0; margin-bottom: 0;
} }
...@@ -180,9 +171,9 @@ export default { ...@@ -180,9 +171,9 @@ export default {
.label { .label {
font-size: 14px; font-size: 14px;
color: #000000E5; color: #000000e5;
font-weight: 500; font-weight: 500;
margin-bottom: 12px; margin-bottom: 8px;
} }
.tags-container { .tags-container {
...@@ -191,11 +182,11 @@ export default { ...@@ -191,11 +182,11 @@ export default {
gap: 8px; gap: 8px;
.tag { .tag {
background: #F2F3F7; background: #f2f3f7;
border-radius: 4px; border-radius: 4px;
padding: 6px 8px; padding: 4px 8px;
font-size: 12px; font-size: 12px;
color: #000000E5; color: #000000e5;
word-break: break-all; word-break: break-all;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!