Commit d93ea262 by chenwq

fix(teamList): 调整团队列表布局并修复滚动问题

优化列表渲染结构,调整CSS样式以适配正确的滚动显示行为
1 parent 9205aef8
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
</van-sticky> </van-sticky>
<div class="content-box"> <div class="content-box">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh"> <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list v-if="list.length" v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore"> <van-list class="list" v-if="list.length" v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore">
<div class="list" v-if="list.length > 0"> <template v-if="list.length > 0">
<div class="item content" v-for="(item, index) in list" :key="index" @click="jump(item)"> <div class="item content" v-for="(item, index) in list" :key="index" @click="jump(item)">
<!-- 专项督办 (tabIndex === 3) --> <!-- 专项督办 (tabIndex === 3) -->
<div v-if="tabIndex == 3" class="special-item"> <div v-if="tabIndex == 3" class="special-item">
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </template>
</van-list> </van-list>
<van-empty v-if="list.length === 0 && !loading && !refreshing" image-size="100" :image="IMG_URL + 'icon-empty.png'" description="暂无数据" /> <van-empty v-if="list.length === 0 && !loading && !refreshing" image-size="100" :image="IMG_URL + 'icon-empty.png'" description="暂无数据" />
</van-pull-refresh> </van-pull-refresh>
...@@ -345,8 +345,8 @@ export default { ...@@ -345,8 +345,8 @@ export default {
.data-container { .data-container {
box-sizing: border-box; box-sizing: border-box;
height: calc(100vh - 90px); height: calc(100vh - 90px);
padding-bottom: env(safe-area-inset-bottom); // padding-bottom: env(safe-area-inset-bottom);
overflow: auto; // overflow: auto;
.sticky-box { .sticky-box {
&.is-sticky { &.is-sticky {
background: #f2f3f7; background: #f2f3f7;
...@@ -363,7 +363,11 @@ export default { ...@@ -363,7 +363,11 @@ export default {
.content-box { .content-box {
padding: 0 12px; padding: 0 12px;
box-sizing: border-box; box-sizing: border-box;
height: calc(100vh);
overflow: scroll;
.list { .list {
height: calc(100vh - 300px);
overflow: scroll;
.item { .item {
border-radius: 12px; border-radius: 12px;
background: #ffffff; background: #ffffff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!