Commit 63f0d637 by chenwq

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

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