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"
...@@ -376,64 +383,64 @@ export default { ...@@ -376,64 +383,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 - 190px);
// 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;
.refresh { .refresh {
height: calc(100vh - 300px); height: calc(100vh - 340px);
overflow: scroll; overflow: scroll;
} }
.list { .list {
width: 100%; width: 100%;
height: 100%; height: 100%;
.item { .item {
border-radius: 12px; border-radius: 12px;
background: #ffffff; background: #ffffff;
padding: 12px; padding: 12px;
margin-bottom: 8px; margin-bottom: 8px;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.name { .name {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #000000e5; color: #000000e5;
} }
.status-badge { .status-badge {
font-size: 10px; font-size: 10px;
padding: 4px 6px; padding: 4px 6px;
border-radius: 4px; 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!