Commit b94109e6 by 李伟康

style(dailyNewspaper): 优化日报详情页面样式和结构

- 将主要内容包装在 report-content 容器中,提升布局结构
- 调整高度计算方式,从 calc(100% - 96rpx) 改为 100%,简化样式
- 移除多余 margin 和定位样式,改用更简洁的内边距设置
- 为列表项添加底部圆角和背景色,改善视觉效果
- 在表格自定义单元格中添加 text 标签包裹,确保文本渲染正确
- 优化滚动区域设置,将 overflow-y 属性移至内容容器
1 parent 2d0434c3
...@@ -2,29 +2,30 @@ ...@@ -2,29 +2,30 @@
<view class="daily-report"> <view class="daily-report">
<view class="common-title"> <view class="common-title">
</view> </view>
<template v-if="loadComplete"> <view class="report-content">
<template v-if="list.length"> <template v-if="loadComplete">
<template v-for="(item, index) in list"> <template v-if="list.length">
<view <template v-for="(item, index) in list">
class="list-box" <view
:key="index" class="list-box"
v-if="item.children && item.children.length" :key="index"
> v-if="item.children && item.children.length"
<view class="list-title">{{ item.label }}</view>
<Table
:columns="item.columns"
:data="item.dataList"
tableStyle="padding-right:32rpx"
isDetail
> >
</Table> <view class="list-title">{{ item.label }}</view>
<Table
:columns="item.columns"
:data="item.dataList"
tableStyle="padding-right:32rpx"
isDetail
>
</Table>
</view> </view>
</template>
</template> </template>
<nothing v-else />
</template> </template>
<nothing v-else /> </view>
</template>
</view> </view>
</template> </template>
...@@ -108,26 +109,25 @@ export default { ...@@ -108,26 +109,25 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.daily-report { .daily-report {
height: calc(100% - #{toRpx(96)}); height: 100%;
position: relative; position: relative;
overflow-y: auto; padding: 48rpx 0;
margin: 48rpx;
border-radius: 32rpx;
.common-title { .common-title {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
} }
.list-box { .report-content {
// position: absolute; height: 100%;
// width: calc(100% - #{toRpx(96)}); overflow-y: auto;
// height: calc(100% - #{toRpx(80)}); border-radius: 32rpx;
//
background: #fff; background: #fff;
// top: 48rpx; margin: 0 48rpx;
// left: 50%; box-sizing: border-box;
// transform: translateX(-50%); padding-bottom: 32rpx;
padding: 0 0 32rpx 32rpx; }
.list-box {
padding-left: 32rpx;
overflow-x: auto; overflow-x: auto;
.list-title { .list-title {
font-size: 32rpx; font-size: 32rpx;
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
:maxLength="i.rules.maxLength" :maxLength="i.rules.maxLength"
> >
<template v-slot:customCell="{row, colIndex}"> <template v-slot:customCell="{row, colIndex}">
{{ formatValue(row[colIndex].value) }} <text>{{ formatValue(row[colIndex].value) }}</text>
</template> </template>
</Table> </Table>
</template> </template>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
@clickAdd="addItem(index)" @clickAdd="addItem(index)"
> >
<template v-slot:customCell="{row, colIndex}"> <template v-slot:customCell="{row, colIndex}">
{{ formatValue(row[colIndex].value) }} <text>{{ formatValue(row[colIndex].value) }}</text>
</template> </template>
</Table> </Table>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!