样式调整
This commit is contained in:
@@ -7,16 +7,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-nav-bar>
|
</van-nav-bar>
|
||||||
|
|
||||||
<!-- 下拉刷新 -->
|
<!-- 月份选择器 固定区域 -->
|
||||||
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
|
||||||
<!-- 加载中 -->
|
|
||||||
<van-loading v-if="loading" vertical style="padding: 100px 0">
|
|
||||||
加载统计数据中...
|
|
||||||
</van-loading>
|
|
||||||
|
|
||||||
<!-- 统计内容 -->
|
|
||||||
<div v-else class="statistics-content">
|
|
||||||
<!-- 月份选择器 -->
|
|
||||||
<div class="month-selector">
|
<div class="month-selector">
|
||||||
<van-button
|
<van-button
|
||||||
icon="arrow-left"
|
icon="arrow-left"
|
||||||
@@ -37,6 +28,16 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 下拉刷新 -->
|
||||||
|
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
||||||
|
<!-- 加载中 -->
|
||||||
|
<van-loading v-if="loading" vertical style="padding: 100px 0">
|
||||||
|
加载统计数据中...
|
||||||
|
</van-loading>
|
||||||
|
|
||||||
|
<!-- 统计内容 -->
|
||||||
|
<div v-else class="statistics-content">
|
||||||
|
|
||||||
<!-- 月度概览卡片 -->
|
<!-- 月度概览卡片 -->
|
||||||
<div class="overview-card">
|
<div class="overview-card">
|
||||||
<div class="overview-item">
|
<div class="overview-item">
|
||||||
@@ -664,17 +665,38 @@ onActivated(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.page-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-container :deep(.van-nav-bar) {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-pull-refresh {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
.statistics-content {
|
.statistics-content {
|
||||||
padding: 16px 0 0 0;
|
padding: 16px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 月份选择器 */
|
/* 月份选择器 - 固定 */
|
||||||
.month-selector {
|
.month-selector {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
margin: 0 12px 16px;
|
margin: 0 12px;
|
||||||
|
margin-top: 12px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||||
|
|||||||
Reference in New Issue
Block a user