Commit c468faf3 by chenwq

fix(teamList): 调整下拉刷新组件样式并优化列表布局

1 parent 76d0e3b6
...@@ -43,13 +43,8 @@ ...@@ -43,13 +43,8 @@
</div> </div>
</van-sticky> </van-sticky>
<div class="content-box"> <div class="content-box">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh"> <van-pull-refresh class="refresh" v-model="refreshing" @refresh="onRefresh">
<van-list v-if="list.length" <van-list class="list" v-if="list.length" v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore">
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"
...@@ -381,60 +376,64 @@ export default { ...@@ -381,60 +376,64 @@ export default {
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;
} }
.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;
} }
} }
.number { .number {
height: 15px; height: 15px;
font-size: 12px; font-size: 12px;
color: #00000066; color: #00000066;
padding: 8px 12px; padding: 8px 12px;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.content-box { .content-box {
padding: 0 12px; padding: 0 12px;
box-sizing: border-box; box-sizing: border-box;
height: calc(100vh); height: calc(100vh);
overflow: scroll; overflow: scroll;
.list { .refresh {
height: calc(100vh - 350px); height: calc(100vh - 300px);
overflow: scroll; overflow: scroll;
.item { }
border-radius: 12px; .list {
background: #ffffff; width: 100%;
padding: 12px; height: 100%;
margin-bottom: 8px; .item {
&:last-child { border-radius: 12px;
margin-bottom: 0; background: #ffffff;
} padding: 12px;
.name { margin-bottom: 8px;
font-size: 14px; &:last-child {
font-weight: 500; margin-bottom: 0;
color: #000000e5; }
} .name {
.status-badge { font-size: 14px;
font-size: 10px; font-weight: 500;
padding: 4px 6px; color: #000000e5;
border-radius: 4px; }
} .status-badge {
font-size: 10px;
padding: 4px 6px;
border-radius: 4px;
}
/* 专项督办 */ /* 专项督办 */
.special-item { .special-item {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!