|
@@ -54,7 +54,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="class_list">
|
|
|
- <view class="class_item" :style="{borderImage: item.examInfo.progress === 'finish'?none:'linear-gradient(to right, #ff8caf, #FFF) 1'}" v-for="(item,index) in examData" :key="index" @click="navExamData(index)" v-if="examData.length != 0">
|
|
|
+ <view class="class_item"
|
|
|
+ :style="{borderImage: item.examInfo.progress === 'finish'?none:'linear-gradient(to right, #ff8caf, #FFF) 1'}"
|
|
|
+ v-for="(item,index) in examData" :key="index" @click="navExamData(index)"
|
|
|
+ v-if="examData.length != 0">
|
|
|
<view class="flex_row" style="margin: 0 20rpx;">
|
|
|
<view class="t-icon t-icon-examicon" style="width: 60rpx; height: 60rpx;"></view>
|
|
|
<view class="flex_cloumn" style="height:92rpx;justify-content: space-between;">
|
|
@@ -89,15 +92,48 @@
|
|
|
<view class="title" style="font-size: 32rpx;">评测练习</view>
|
|
|
<view class="bottom_tag"></view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="flex_row" style="width: 70%;"></view>
|
|
|
</view>
|
|
|
<scroll-view class="scroll_view_bottom" scroll-x="true" :scroll-with-animation="true" scroll-left="0">
|
|
|
- <view class="_item"></view>
|
|
|
- <view class="_item"></view>
|
|
|
- <view class="_item"></view>
|
|
|
- <view class="_item"></view>
|
|
|
- <view class="_item"></view>
|
|
|
+ <view class="_item" v-for="(item,index) in examPractice" :key="index">
|
|
|
+ <view class="flex_cloumn" style="height: 320rpx;">
|
|
|
+ <view class="flex_row" style="margin: 10rpx;">
|
|
|
+ <view class="t-icon t-icon-yuwen" v-if="item.subject === '语文'"></view>
|
|
|
+ <view class="t-icon t-icon-shuxue" v-if="item.subject === '数学'"></view>
|
|
|
+ <view class="t-icon t-icon-yingyu" v-if="item.subject === '英语'"></view>
|
|
|
+ <view class="t-icon t-icon-tiyu" v-if="item.subject === '体育'"></view>
|
|
|
+ <view class="t-icon t-icon-tianwen" v-if="item.subject === '科学'"></view>
|
|
|
+ <view class="t-icon t-icon-zuixinkecheng" v-if="item.subject === '思品'"></view>
|
|
|
+ <view class="t-icon t-icon-wuli" v-if="item.subject === '物理'"></view>
|
|
|
+ <view class="t-icon t-icon-huaxue" v-if="item.subject === '化学'"></view>
|
|
|
+ <view class="t-icon t-icon-meishu" v-if="item.subject === '美术'"></view>
|
|
|
+ <view class="t-icon t-icon-yinle" v-if="item.subject === '音乐'"></view>
|
|
|
+ <view class="t-icon t-icon-dili" v-if="item.subject === '地理'"></view>
|
|
|
+ <view class="t-icon t-icon-lishi" v-if="item.subject === '历史'"></view>
|
|
|
+ <view class="flex_cloumn" style="height: 100rpx;justify-content: space-around;">
|
|
|
+ <view class="title" style="font-size: 32rpx;">{{item.subject}}</view>
|
|
|
+ <view class="tag_fill"
|
|
|
+ style="background-color: #d8deff;width:fit-content;margin-left: 0;padding: 5rpx 10rpx;">
|
|
|
+ <view class="t-icon t-icon-zhengceguizhang"
|
|
|
+ style="width: 30rpx;height: 30rpx;margin-right: 5rpx;"></view>
|
|
|
+ <view class="tag_text" style="color: #4169E1;">{{item.type}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex_cloumn" style="height: 100%;justify-content: space-around;margin: 0 30rpx 20rpx 30rpx;">
|
|
|
+ <view class="title" style="font-size: 32rpx;">{{item.title}}</view>
|
|
|
+ <view class="title" style="font-size: 30rpx;font-weight: 400;">「 {{item.modality}} 」</view>
|
|
|
+ <view class="flex_baseline">
|
|
|
+ <view class="subtitle" style="font-weight: 400;font-size: 28rpx;">评测题量,共</view>
|
|
|
+ <view class="subtitle" style="font-weight: 400;font-size: 40rpx;margin-left: 4rpx;">{{item.amount}}</view>
|
|
|
+ <view class="subtitle" style="font-weight: 400;font-size: 28rpx;margin-left: 4rpx;">题</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -109,7 +145,7 @@
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapState('m_chart', ['examChartData']),
|
|
|
- ...mapState('m_children', ['examData'])
|
|
|
+ ...mapState('m_children', ['examData', 'examPractice'])
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -144,8 +180,9 @@
|
|
|
performance: '',
|
|
|
//完成数据
|
|
|
finishData: '',
|
|
|
+ finishRate: '',
|
|
|
timeStamp: '',
|
|
|
- image1:'https://image.meiye.art/pic_1631411821365LA63Wc70BLbmyHhj2XjiL'
|
|
|
+ image1: 'https://image.meiye.art/pic_1631411821365LA63Wc70BLbmyHhj2XjiL',
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -176,12 +213,14 @@
|
|
|
},
|
|
|
//获得评判信息
|
|
|
getPerformance() {
|
|
|
- if(this.examData.length != 0){
|
|
|
+ if (this.examData.length != 0) {
|
|
|
this.finishData = this.examData.filter(x => x.examInfo.progress === 'finish')
|
|
|
+ this.finishRate = (this.finishData.length * 100 / this.examData.length).toFixed(0)
|
|
|
this.performance = this.finishData.length / this.examData.length >= 0.4 ?
|
|
|
(this.finishData.length / this.examData.length >= 0.7 ? '优秀' : '良好') : '较差'
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.finishData = []
|
|
|
+ this.finishRate = 0
|
|
|
this.performance = '无评测'
|
|
|
}
|
|
|
|
|
@@ -215,12 +254,12 @@
|
|
|
}
|
|
|
},
|
|
|
navExamList() {
|
|
|
- let value = this.performance
|
|
|
+ let value = this.finishRate
|
|
|
uni.navigateTo({
|
|
|
url: `/subpkg/datalist/examlist?value=${value}`
|
|
|
})
|
|
|
},
|
|
|
- navExamData(index){
|
|
|
+ navExamData(index) {
|
|
|
uni.navigateTo({
|
|
|
url: `/subpkg/datalist/examdata?index=${index}`
|
|
|
})
|
|
@@ -240,12 +279,15 @@
|
|
|
background-color: $color-pink;
|
|
|
margin-left: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
.circle_line1 {
|
|
|
background-image: linear-gradient(to right, #ff8caf, #ff8caf), linear-gradient(90deg, #FFF -50%, rgba(255, 255, 255, 0.0));
|
|
|
}
|
|
|
+
|
|
|
.circle_line2 {
|
|
|
background-image: linear-gradient(to right, #ff8caf, #ff8caf), linear-gradient(180deg, #FFF -50%, rgba(255, 255, 255, 0.0));
|
|
|
}
|
|
|
+
|
|
|
.circle_line3 {
|
|
|
background-image: linear-gradient(to right, #ff8caf, #ff8caf), linear-gradient(0deg, #FFF -50%, rgba(255, 255, 255, 0.0));
|
|
|
}
|