Commit 7a1a2ae5 authored by Facius's avatar Facius

fix: 学练记录页面布局

parent 9a0bda86
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</view> </view>
<!-- <view class="u-calendar__content__bg-month">{{ month }}</view> --> <!-- <view class="u-calendar__content__bg-month">{{ month }}</view> -->
</view> </view>
<view class="u-calendar__line"></view> <!-- <view class="u-calendar__line"></view> -->
<!-- <view class="u-calendar__bottom"> <!-- <view class="u-calendar__bottom">
<view class="u-calendar__bottom__choose"> <view class="u-calendar__bottom__choose">
<text>{{mode == 'date' ? activeDate : startDate}}</text> <text>{{mode == 'date' ? activeDate : startDate}}</text>
...@@ -621,7 +621,7 @@ export default { ...@@ -621,7 +621,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 20rpx 30rpx 10rpx; padding: 0 20rpx 30rpx 10rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: transparent;
position: relative; position: relative;
&--end-date { &--end-date {
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
></Calendar> ></Calendar>
</view> </view>
</view> </view>
<view class="space-view"></view>
<view class="charts-view"> <view class="charts-view">
<view class="content-title" id="part-total">练习分析</view> <view class="content-title" id="part-total">练习分析</view>
<view class="range-view"> <view class="range-view">
...@@ -76,6 +77,7 @@ ...@@ -76,6 +77,7 @@
<qiun-data-charts <qiun-data-charts
type="area" type="area"
:opts="{ :opts="{
padding: [15, 34, 0, 10],
dataLabel: false, dataLabel: false,
xAxis: { labelCount: 4 }, xAxis: { labelCount: 4 },
extra: { extra: {
...@@ -109,6 +111,7 @@ ...@@ -109,6 +111,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="space-view"></view>
<view class="list-view"> <view class="list-view">
<view class="content-title" id="part-today">模考成绩</view> <view class="content-title" id="part-today">模考成绩</view>
<view class="list-content"> <view class="list-content">
...@@ -376,7 +379,8 @@ export default { ...@@ -376,7 +379,8 @@ export default {
background-image: linear-gradient(to top, #2272ff 0%, #2953ff 50%); background-image: linear-gradient(to top, #2272ff 0%, #2953ff 50%);
background-size: 100% 400rpx; background-size: 100% 400rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
display: flex;
flex-direction: column;
.head-view { .head-view {
padding: 10rpx 60rpx 50rpx 60rpx; padding: 10rpx 60rpx 50rpx 60rpx;
display: flex; display: flex;
...@@ -405,6 +409,9 @@ export default { ...@@ -405,6 +409,9 @@ export default {
} }
} }
.body-view { .body-view {
height: 100%;
display: flex;
flex-direction: column;
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 0; width: 0;
height: 0; height: 0;
...@@ -413,7 +420,6 @@ export default { ...@@ -413,7 +420,6 @@ export default {
} }
border-radius: 24rpx 24rpx 0 0; border-radius: 24rpx 24rpx 0 0;
background-color: #ffffff; background-color: #ffffff;
height: calc(100vh - 178px);
overflow: auto; overflow: auto;
.scroll-view { .scroll-view {
height: 100%; height: 100%;
...@@ -427,7 +433,7 @@ export default { ...@@ -427,7 +433,7 @@ export default {
font-size: 32rpx; font-size: 32rpx;
color: #191c27; color: #191c27;
font-weight: bold; font-weight: bold;
padding: 24rpx 30rpx 0rpx 30rpx; padding: 26rpx 30rpx 0rpx 30rpx;
} }
.charts-view { .charts-view {
.range-view { .range-view {
...@@ -480,20 +486,24 @@ export default { ...@@ -480,20 +486,24 @@ export default {
.charts-content { .charts-content {
width: 100%; width: 100%;
height: 570rpx; height: 570rpx;
padding: 0 0 10rpx 0rpx; margin-bottom: 30rpx;
.charts-box { .charts-box {
width: 100%; width: 100%;
height: 570rpx; height: 570rpx;
} }
} }
} }
.space-view {
height: 8rpx;
width: 100%;
background-color: #f7f9fc;
}
.list-view { .list-view {
padding-bottom: 44rpx; padding-bottom: 44rpx;
min-height: 240rpx; min-height: 240rpx;
border-top: 2rpx solid #f7f9fc;
.list-content { .list-content {
padding: 0 30rpx 20rpx 30rpx; padding: 0 30rpx 20rpx 30rpx;
min-height: 44rpx; min-height: 100rpx;
.show-more { .show-more {
display: flex; display: flex;
justify-content: center; justify-content: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment