fix: 计划查看-头部空白高度修复
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
</customHeader>
|
||||
|
||||
<!-- 高度来避免头部遮挡 -->
|
||||
<view class="top-height" :style="{ paddingTop: navBarPaddingTop + 'px' }"></view>
|
||||
|
||||
<view class="top-height"></view>
|
||||
<!-- 正文内容 -->
|
||||
<view>
|
||||
|
||||
@@ -37,61 +36,61 @@
|
||||
</view>
|
||||
|
||||
<!-- 分页部分 -->
|
||||
<!-- <mescroll-uni ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"-->
|
||||
<!-- :up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"-->
|
||||
<!-- class="scroll-h" :class="{'loading-scroll':cssFlag}">-->
|
||||
<view class="white-bg" v-if="list.length">
|
||||
<!--v-for="(item, index) in list" :key="index" @click="handleDetail(item)"-->
|
||||
<view style="text-align: center; margin-bottom: 30rpx; font-size: 30rpx;">
|
||||
{{ parseInt(searchValue.selectDate.substring(5, 7)) }}月
|
||||
<span class="line"></span>
|
||||
{{searchValue.selectDate.substring(0, 4) }}年
|
||||
</view>
|
||||
<!-- <mescroll-uni ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"-->
|
||||
<!-- :up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"-->
|
||||
<!-- class="scroll-h" :class="{'loading-scroll':cssFlag}">-->
|
||||
<view class="white-bg" v-if="list.length">
|
||||
<!--v-for="(item, index) in list" :key="index" @click="handleDetail(item)"-->
|
||||
<view style="text-align: center; margin-bottom: 30rpx; font-size: 30rpx;">
|
||||
{{ parseInt(searchValue.selectDate.substring(5, 7)) }}月
|
||||
<span class="line"></span>
|
||||
{{searchValue.selectDate.substring(0, 4) }}年
|
||||
</view>
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="1">
|
||||
<view class="demo-uni-col right-radius">序号</view>
|
||||
</uni-col>
|
||||
<uni-col :span="2">
|
||||
<view class="demo-uni-col left-radius">姓名</view>
|
||||
</uni-col>
|
||||
<block v-for="(field, i) in OrdinalDate">
|
||||
<uni-col :span="3">
|
||||
<view class="demo-uni-col mar-left">
|
||||
<text>{{ WeekShortCN[i] }}</text>
|
||||
<text v-if="list[0][field]">{{ list[0][field].substring(8) }}</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
</block>
|
||||
</uni-row>
|
||||
<block v-for="(item, index) in list" :key="index">
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="1">
|
||||
<view class="demo-uni-col right-radius">序号</view>
|
||||
<view class="demo-uni-col right-radius">
|
||||
<text>{{ index + 1 }}</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
<uni-col :span="2">
|
||||
<view class="demo-uni-col left-radius">姓名</view>
|
||||
<view class="demo-uni-col left-radius">
|
||||
<text>{{ item.nickName || item.userName }}</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
<block v-for="(field, i) in OrdinalDate">
|
||||
<block v-for="(field, i) in WorkType">
|
||||
<uni-col :span="3">
|
||||
<view class="demo-uni-col mar-left">
|
||||
<text>{{ WeekShortCN[i] }}</text>
|
||||
<text v-if="list[0][field]">{{ list[0][field].substring(8) }}</text>
|
||||
<view class="demo-uni-col mar-left color-white" @click="handleDetail(index, i)"
|
||||
:style="{ backgroundColor: COLOR_MAP[item[field]] }"
|
||||
><!--@click="handleView(index, i)"-->
|
||||
<text v-if="item[field]">{{ item[field] }}</text>
|
||||
<text v-else style="color: gray">暂无</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
</block>
|
||||
</uni-row>
|
||||
<block v-for="(item, index) in list" :key="index">
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="1">
|
||||
<view class="demo-uni-col right-radius">
|
||||
<text>{{ index + 1 }}</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
<uni-col :span="2">
|
||||
<view class="demo-uni-col left-radius">
|
||||
<text>{{ item.nickName || item.userName }}</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
<block v-for="(field, i) in WorkType">
|
||||
<uni-col :span="3">
|
||||
<view class="demo-uni-col mar-left color-white" @click="handleDetail(index, i)"
|
||||
:style="{ backgroundColor: COLOR_MAP[item[field]] }"
|
||||
><!--@click="handleView(index, i)"-->
|
||||
<text v-if="item[field]">{{ item[field] }}</text>
|
||||
<text v-else style="color: gray">暂无</text>
|
||||
</view>
|
||||
</uni-col>
|
||||
</block>
|
||||
</uni-row>
|
||||
</block>
|
||||
</view>
|
||||
<view v-else style="text-align: center; margin-top: 50%; color: white">
|
||||
暂无数据
|
||||
</view>
|
||||
<!-- </mescroll-uni>-->
|
||||
</block>
|
||||
</view>
|
||||
<view v-else style="text-align: center; margin-top: 50%; color: white">
|
||||
暂无数据
|
||||
</view>
|
||||
<!-- </mescroll-uni>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -144,10 +143,7 @@ const mescrollRef = ref(null);
|
||||
const upOption = ref({
|
||||
page: {num: 0, size: 10},
|
||||
noMoreSize: 5,
|
||||
empty: {
|
||||
tip: '~ 空空如也 ~',
|
||||
icon: "../../../../static/images/mescroll-empty.png"
|
||||
},
|
||||
empty: {tip: '~ 空空如也 ~'},
|
||||
textLoading: '加载中...',
|
||||
textNoMore: '已经到底了'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user