|
@@ -13,10 +13,12 @@
|
|
<!-- 详情头部卡片 -->
|
|
<!-- 详情头部卡片 -->
|
|
<view class="module-box" v-for="(item,index) in card" :key="index" v-if="current == index">
|
|
<view class="module-box" v-for="(item,index) in card" :key="index" v-if="current == index">
|
|
<view class="card" :style="{backgroundColor: `${item.color}`}">
|
|
<view class="card" :style="{backgroundColor: `${item.color}`}">
|
|
- <view style="display: flex; flex-direction: column;">
|
|
|
|
|
|
+ <view class="box">
|
|
<text class="card-title">{{item.title}}{{item.detail.data.length}}</text>
|
|
<text class="card-title">{{item.title}}{{item.detail.data.length}}</text>
|
|
- <text class="card-subtitle">{{item.subtitle}}{{item.detail.finishData.length}}</text>
|
|
|
|
- <text class="card-subtitle">完成情况: {{item.level}}</text>
|
|
|
|
|
|
+ <view class="box" style="margin-top: 20rpx;">
|
|
|
|
+ <text class="card-subtitle">{{item.subtitle}}{{item.detail.finishData.length}}</text>
|
|
|
|
+ <text class="card-subtitle">完成情况: {{item.level}}</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="image" :style="{backgroundImage:`url(${item.image})`}"></view>
|
|
<view class="image" :style="{backgroundImage:`url(${item.image})`}"></view>
|
|
</view>
|
|
</view>
|
|
@@ -36,13 +38,16 @@
|
|
</view>
|
|
</view>
|
|
<!-- 图表部分 -->
|
|
<!-- 图表部分 -->
|
|
<view class="charts-box" v-if="current == 0">
|
|
<view class="charts-box" v-if="current == 0">
|
|
- <qiun-data-charts type="fin-area" :chartData="homeworkData.testData" :loadingType="4" :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0980111' />
|
|
|
|
|
|
+ <qiun-data-charts type="fin-area" :chartData="homeworkData.testData" :loadingType="4"
|
|
|
|
+ :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0980111' />
|
|
</view>
|
|
</view>
|
|
<view class="charts-box" v-if="current == 1">
|
|
<view class="charts-box" v-if="current == 1">
|
|
- <qiun-data-charts type="fin-area" :chartData="homeworkData.homeworkData" :loadingType="4" :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0933511' />
|
|
|
|
|
|
+ <qiun-data-charts type="fin-area" :chartData="homeworkData.homeworkData" :loadingType="4"
|
|
|
|
+ :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0933511' />
|
|
</view>
|
|
</view>
|
|
<view class="charts-box" v-if="current == 2">
|
|
<view class="charts-box" v-if="current == 2">
|
|
- <qiun-data-charts type="fin-area" :chartData="homeworkData.activityData" :loadingType="4" :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0531032' />
|
|
|
|
|
|
+ <qiun-data-charts type="fin-area" :chartData="homeworkData.activityData" :loadingType="4"
|
|
|
|
+ :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0531032' />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -51,7 +56,7 @@
|
|
<view class="t-icon t-icon-shenhe"></view>
|
|
<view class="t-icon t-icon-shenhe"></view>
|
|
<view class="item-text">今日已完成</view>
|
|
<view class="item-text">今日已完成</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view style="display: flex; flex-wrap: wrap;">
|
|
<view style="display: flex; flex-wrap: wrap;">
|
|
<view class="block-finish" v-for="(j,y) in item.detail.finishData" :key="y">
|
|
<view class="block-finish" v-for="(j,y) in item.detail.finishData" :key="y">
|
|
<view class="title">{{j.name}}</view>
|
|
<view class="title">{{j.name}}</view>
|
|
@@ -63,19 +68,19 @@
|
|
<view class="tag">{{j.teacher}}</view>
|
|
<view class="tag">{{j.teacher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
<view class="detail-box-item">
|
|
<view class="detail-box-item">
|
|
<view class="item-info">
|
|
<view class="item-info">
|
|
<view class="t-icon t-icon-daiban"></view>
|
|
<view class="t-icon t-icon-daiban"></view>
|
|
<view class="item-text">{{item.detail.title}}</view>
|
|
<view class="item-text">{{item.detail.title}}</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="class-block" v-for="(i,x) in item.detail.data" :key="x">
|
|
<view class="class-block" v-for="(i,x) in item.detail.data" :key="x">
|
|
<view class="block-title">{{i.name}}</view>
|
|
<view class="block-title">{{i.name}}</view>
|
|
<view class="block-tag-box">
|
|
<view class="block-tag-box">
|
|
@@ -154,8 +159,8 @@
|
|
teacher: '李老师',
|
|
teacher: '李老师',
|
|
description: '这里是评测描述信息'
|
|
description: '这里是评测描述信息'
|
|
}],
|
|
}],
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
finishData: [{
|
|
finishData: [{
|
|
name: '评测数据1',
|
|
name: '评测数据1',
|
|
subject: '数学',
|
|
subject: '数学',
|
|
@@ -198,8 +203,8 @@
|
|
teacher: '王老师',
|
|
teacher: '王老师',
|
|
description: '这里是作业描述信息'
|
|
description: '这里是作业描述信息'
|
|
}],
|
|
}],
|
|
-
|
|
|
|
- finishData:[{
|
|
|
|
|
|
+
|
|
|
|
+ finishData: [{
|
|
name: '作业数据1',
|
|
name: '作业数据1',
|
|
subject: '数学',
|
|
subject: '数学',
|
|
teacher: '王老师',
|
|
teacher: '王老师',
|
|
@@ -256,9 +261,9 @@
|
|
teacher: '王老师',
|
|
teacher: '王老师',
|
|
description: '这里是活动描述信息'
|
|
description: '这里是活动描述信息'
|
|
}],
|
|
}],
|
|
-
|
|
|
|
-
|
|
|
|
- finishData:[{
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ finishData: [{
|
|
name: '活动数据1',
|
|
name: '活动数据1',
|
|
subject: '数学',
|
|
subject: '数学',
|
|
teacher: '王老师',
|
|
teacher: '王老师',
|
|
@@ -301,7 +306,7 @@
|
|
this.saveToStudyChart()
|
|
this.saveToStudyChart()
|
|
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
|
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
|
let curParam = routes[routes.length - 1].options; //获取路由参数
|
|
let curParam = routes[routes.length - 1].options; //获取路由参数
|
|
- this.current = curParam.index
|
|
|
|
|
|
+ this.current = curParam.index
|
|
},
|
|
},
|
|
//刷新页面
|
|
//刷新页面
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -350,9 +355,10 @@
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
@import '@/pages/common/blockmsg.scss';
|
|
@import '@/pages/common/blockmsg.scss';
|
|
- .home-topinfo {
|
|
|
|
- background: linear-gradient($color-green, $page-background-color) !important;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ .home-topinfo {
|
|
|
|
+ background: linear-gradient($color-green, $page-background-color) !important;
|
|
|
|
+ }
|
|
|
|
|
|
.module-container {
|
|
.module-container {
|
|
margin-top: -70rpx;
|
|
margin-top: -70rpx;
|
|
@@ -367,14 +373,14 @@
|
|
border-radius: $card-border-radius;
|
|
border-radius: $card-border-radius;
|
|
|
|
|
|
.card-title {
|
|
.card-title {
|
|
- margin: 30rpx 0 20rpx 20rpx;
|
|
|
|
|
|
+ margin-left: 20rpx;
|
|
font-size: 45rpx;
|
|
font-size: 45rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
color: #FFF;
|
|
color: #FFF;
|
|
}
|
|
}
|
|
|
|
|
|
.card-subtitle {
|
|
.card-subtitle {
|
|
- margin: 10rpx 20rpx;
|
|
|
|
|
|
+ margin: 10rpx 0 0 20rpx;
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
color: #FFF;
|
|
color: #FFF;
|
|
}
|
|
}
|
|
@@ -391,6 +397,13 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .box {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ justify-content: center;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
.cut-off {
|
|
.cut-off {
|
|
font-size: 35rpx;
|
|
font-size: 35rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -431,7 +444,8 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .block-finish{
|
|
|
|
|
|
+
|
|
|
|
+ .block-finish {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -442,30 +456,34 @@
|
|
width: 44%;
|
|
width: 44%;
|
|
height: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: $card-border-radius;
|
|
border-radius: $card-border-radius;
|
|
|
|
+
|
|
.title {
|
|
.title {
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
color: $color-title;
|
|
color: $color-title;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.subtitle {
|
|
.subtitle {
|
|
font-size: 22rpx;
|
|
font-size: 22rpx;
|
|
color: $color-title;
|
|
color: $color-title;
|
|
}
|
|
}
|
|
- .tag-box{
|
|
|
|
|
|
+
|
|
|
|
+ .tag-box {
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
border: 1rpx solid #3C9CFF;
|
|
border: 1rpx solid #3C9CFF;
|
|
padding: 6rpx;
|
|
padding: 6rpx;
|
|
margin: 10rpx;
|
|
margin: 10rpx;
|
|
- .tag{
|
|
|
|
|
|
+
|
|
|
|
+ .tag {
|
|
font-size: 22rpx;
|
|
font-size: 22rpx;
|
|
color: #3C9CFF;
|
|
color: #3C9CFF;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.charts-box {
|
|
.charts-box {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 230rpx;
|
|
height: 230rpx;
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|