Commit f177ebd1 by chenwq

fix(团队列表): 调整列表组件的样式和结构

1 parent 660406d3
...@@ -43,8 +43,15 @@ ...@@ -43,8 +43,15 @@
</div> </div>
</van-sticky> </van-sticky>
<div class="content-box"> <div class="content-box">
<van-pull-refresh class="refresh" v-model="refreshing" @refresh="onRefresh"> <van-pull-refresh v-model="refreshing"
<van-list class="list" v-if="list.length" v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore"> class="refresh"
@refresh="onRefresh">
<van-list v-if="list.length"
v-model="loading"
class="list"
finished-text="到底了~"
:finished="finished"
@load="onLoadMore">
<template v-if="list.length > 0"> <template v-if="list.length > 0">
<div v-for="(item, index) in list" <div v-for="(item, index) in list"
:key="index" :key="index"
...@@ -388,7 +395,7 @@ export default { ...@@ -388,7 +395,7 @@ export default {
} }
.data-container { .data-container {
box-sizing: border-box; box-sizing: border-box;
height: calc(100vh - 90px); height: calc(100vh - 190px);
// padding-bottom: env(safe-area-inset-bottom); // padding-bottom: env(safe-area-inset-bottom);
// overflow: auto; // overflow: auto;
.sticky-box { .sticky-box {
...@@ -410,7 +417,7 @@ export default { ...@@ -410,7 +417,7 @@ export default {
height: calc(100vh); height: calc(100vh);
overflow: scroll; overflow: scroll;
.refresh { .refresh {
height: calc(100vh - 300px); height: calc(100vh - 340px);
overflow: scroll; overflow: scroll;
} }
.list { .list {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!