|
@@ -17,7 +17,7 @@
|
|
|
</view>
|
|
|
<!-- 内容 -->
|
|
|
<view class="calendar_container">
|
|
|
- <zsyCalendar :sundayIndex="6" @change="change" :mode="'close'" />
|
|
|
+ <zsyCalendar :sundayIndex="6" @change="chooseCalendar" :mode="'close'" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -27,7 +27,7 @@
|
|
|
<text class="info-text">今日评测</text>
|
|
|
</view>
|
|
|
<view class="charts-box">
|
|
|
- <qiun-data-charts type="home-arcbar" :chartData="todayData.evaluationArcbar" :loadingType="4"
|
|
|
+ <qiun-data-charts type="arcbar" :chartData="todayData.evaluationArcbar" :loadingType="4"
|
|
|
:canvas2d='true' canvasId='canvans931' :opts="evaluationOpts" />
|
|
|
</view>
|
|
|
</view>
|
|
@@ -38,7 +38,7 @@
|
|
|
<text class="info-text">今日作业</text>
|
|
|
</view>
|
|
|
<view class="charts-box">
|
|
|
- <qiun-data-charts type="home-arcbar" :chartData="todayData.homeworkArcbar" :loadingType="4"
|
|
|
+ <qiun-data-charts type="arcbar" :chartData="todayData.homeworkArcbar" :loadingType="4"
|
|
|
:canvas2d='true' canvasId='canvans932' :opts="homeworkOpts" />
|
|
|
</view>
|
|
|
</view>
|
|
@@ -58,14 +58,14 @@
|
|
|
<u-collapse accordion :border="false">
|
|
|
<u-collapse-item title="孩子今日课程:">
|
|
|
<view style="display: flex; flex-wrap: wrap;">
|
|
|
- <u-tag v-for="(item,index) in classList"
|
|
|
- :key="index" :text="item" plain shape="circle" size="mini"></u-tag>
|
|
|
+ <u-tag v-for="(item,index) in classList" :key="index" :text="item" plain shape="circle"
|
|
|
+ size="mini"></u-tag>
|
|
|
</view>
|
|
|
</u-collapse-item>
|
|
|
<u-collapse-item title="今日授课老师:">
|
|
|
<view style="display: flex; flex-wrap: wrap;">
|
|
|
- <u-tag v-for="(item,index) in teacherList"
|
|
|
- :key="index":text="item" plain shape="circle" size="mini"></u-tag>
|
|
|
+ <u-tag v-for="(item,index) in teacherList" :key="index" :text="item" plain
|
|
|
+ shape="circle" size="mini"></u-tag>
|
|
|
</view>
|
|
|
</u-collapse-item>
|
|
|
</u-collapse>
|
|
@@ -83,7 +83,7 @@
|
|
|
<view style="color: #3B4144;margin-left: 30rpx;font-size: 30rpx;font-weight: bold;">问卷完成率:</view>
|
|
|
<view class="card-content">{{questionnaire}}%</view>
|
|
|
</view>
|
|
|
- <view style="padding: 0rpx 10rpx 10rpx 10rpx;">
|
|
|
+ <view style="padding: 0rpx 20rpx 10rpx 20rpx;">
|
|
|
<u-line-progress :showText="false" :percentage="questionnaire" activeColor="#6495ed" height="15">
|
|
|
</u-line-progress>
|
|
|
</view>
|
|
@@ -92,7 +92,7 @@
|
|
|
<view style="color: #3B4144;margin-left: 30rpx;font-size: 30rpx;font-weight: bold;">投票完成率:</view>
|
|
|
<view class="card-content">{{vote}}%</view>
|
|
|
</view>
|
|
|
- <view style="padding: 0rpx 10rpx 10rpx 10rpx;">
|
|
|
+ <view style="padding: 0rpx 20rpx 10rpx 20rpx;">
|
|
|
<u-line-progress :showText="false" :percentage="vote" activeColor="#fd7193" height="15">
|
|
|
</u-line-progress>
|
|
|
</view>
|
|
@@ -104,14 +104,33 @@
|
|
|
<view class="card-item" style="width: 100%;">
|
|
|
<view class="card-info">
|
|
|
<view class="t-icon t-icon-jiaoshidaka"></view>
|
|
|
- <text class="info-text">今日自主学习</text>
|
|
|
+ <text class="info-text">孩子学习记录</text>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%; height: 500rpx; margin-top: -30rpx;">
|
|
|
+ <qiun-data-charts type="column" :chartData="todayData.studyColumn" :loadingType="4" :canvas2d='true'
|
|
|
+ canvasId='canvans912' :opts="{dataLabel:false, extra:{column: {barBorderCircle:true}}}" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="card-item">
|
|
|
+ <view class="card-info">
|
|
|
+ <view class="t-icon t-icon-jiankangshangbao"></view>
|
|
|
+ <text class="info-text">运动记录</text>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%; height: 350rpx; margin-top: -10rpx;">
|
|
|
+ <qiun-data-charts type="pie" :chartData="todayData.exercisePie" :loadingType="4" :canvas2d='true'
|
|
|
+ canvasId='canvans8121' />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="card-item">
|
|
|
<view class="card-info">
|
|
|
<view class="t-icon t-icon-jiankangshangbao"></view>
|
|
|
- <text class="info-text">今日睡眠时间</text>
|
|
|
+ <text class="info-text">睡眠记录</text>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%; height: 350rpx; margin-top: -10rpx;">
|
|
|
+ <qiun-data-charts type="ring" :chartData="todayData.sleepRing" :loadingType="4"
|
|
|
+ :canvas2d='true' canvasId='canvans9122' :tooltipFormat='yAxisDemo1' />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -180,6 +199,11 @@
|
|
|
},
|
|
|
subtitle: {
|
|
|
name: this.todayData.evaluationArcbar.series[0].name
|
|
|
+ },
|
|
|
+ extra: {
|
|
|
+ arcbar: {
|
|
|
+ type: 'circle'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
let homework = {
|
|
@@ -189,13 +213,18 @@
|
|
|
},
|
|
|
subtitle: {
|
|
|
name: this.todayData.homeworkArcbar.series[0].name
|
|
|
+ },
|
|
|
+ extra: {
|
|
|
+ arcbar: {
|
|
|
+ type: 'circle'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
this.evaluationOpts = evaluation;
|
|
|
this.homeworkOpts = homework;
|
|
|
},
|
|
|
// 日历选中日期改变事件回调
|
|
|
- change(e) {
|
|
|
+ chooseCalendar(e) {
|
|
|
console.log(e)
|
|
|
},
|
|
|
//更新时间戳
|
|
@@ -212,10 +241,12 @@
|
|
|
|
|
|
<style lang="scss">
|
|
|
.home-container {
|
|
|
+ width: 100%;
|
|
|
height: 100%;
|
|
|
+ overflow-x: hidden; //隐藏多余的页面
|
|
|
|
|
|
.notice {
|
|
|
- margin: -100rpx 20rpx 20rpx 20rpx;
|
|
|
+ margin: -50rpx 20rpx 20rpx 20rpx;
|
|
|
}
|
|
|
|
|
|
.card-box {
|