Commit 5b923ffa by chenwq

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

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