Commit 63f0d637 by chenwq

fix(teamList): 优化团队列表空状态展示并清理代码

调整模板结构,将空状态组件移出列表容器并添加条件渲染
删除调试用的控制台打印语句
统一CSS代码的缩进格式,修复混乱的样式缩进
1 parent 155f70ad
......@@ -37,7 +37,7 @@
</van-sticky>
<div class="content-box">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore">
<van-list v-if="list.length" v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore">
<div class="list" v-if="list.length > 0">
<div class="item content" v-for="(item, index) in list" :key="index" @click="jump(item)">
<!-- 专项督办 (tabIndex == 3) -->
......@@ -72,9 +72,8 @@
</div>
</div>
</div>
<van-empty v-if="list.length === 0 && !loading && !refreshing" description="暂无数据" />
</van-list>
<van-empty v-if="list.length === 0 && !loading && !refreshing" description="暂无数据" />
</van-pull-refresh>
</div>
</div>
......@@ -311,7 +310,6 @@ export default {
this.$toast.clear()
}
console.log(res, 'res-----')
this.finished = true
this.setStaticData(res)
this.list = res?.supervisorList || []
......@@ -364,19 +362,19 @@ export default {
z-index: 0;
}
.container {
box-sizing: border-box;
height: 100vh;
position: relative;
z-index: 1;
overflow: hidden;
box-sizing: border-box;
height: 100vh;
position: relative;
z-index: 1;
overflow: hidden;
::v-deep .van-tab {
font-size: 14px;
font-weight: 600;
&.van-tab--active {
font-size: 17px !important;
}
::v-deep .van-tab {
font-size: 14px;
font-weight: 600;
&.van-tab--active {
font-size: 17px !important;
}
}
.date {
padding: 8px 12px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!