From be945964a24362b77438b5c75e0e18dfbc3772fe Mon Sep 17 00:00:00 2001 From: Sliverber <2622874537@qq.com> Date: Tue, 16 Jan 2024 17:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Mystudent/Mystudent.vue | 45 ++++++++++++------- pages_teacher/teacher_class/class_members.vue | 12 ++++- 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/pages/Mystudent/Mystudent.vue b/pages/Mystudent/Mystudent.vue index 9c978af..aa028a6 100644 --- a/pages/Mystudent/Mystudent.vue +++ b/pages/Mystudent/Mystudent.vue @@ -3,7 +3,7 @@ - + @@ -27,7 +27,12 @@ 较昨日 - + + + 0% + + + @@ -35,12 +40,12 @@ - + {{beforyes}}% - + @@ -224,28 +229,29 @@ return { // echarts, totalScore: 10, - grammaticalScore: 8, - vocabularyScore: 8, - pronounceScore: 8, - fluencyScore: 8, + write: 8, + speak: 8, + read: 8, + listen: 8, bgc: { backgroundColor: "transparent", }, sdydata: [], isalready: true, - id: 1523, + id: 0, workinfo: {}, orgworkinfo: {}, beforyes: '', isup: '', - works:{} + works:{}, + isloading:false // https://file.langsi.online/yasiimg/web/static/uBHiWpVS8LQdX241DdjX } }, onLoad(option) { - + this.id =option.id // this.changedata() this.getinfo() }, @@ -271,14 +277,19 @@ this.orgworkinfo = JSON.parse(JSON.stringify(res.data)); const percentageChange = ((this.workinfo.todayStudyPoint - this.workinfo .yesterdayStudyPoint) / Math.abs(this.workinfo.yesterdayStudyPoint)) * 100; - + this.totalScore=(this.workinfo.scoreMap.writingScore+this.workinfo.scoreMap.writingScore+this.workinfo.scoreMap.readingScore+this.workinfo.scoreMap.listeningScore)/4 + this.write=this.workinfo.scoreMap.writingScore + this.speak=this.workinfo.scoreMap.speakingScore + this.read=this.workinfo.scoreMap.readingScore + this.listen=this.workinfo.scoreMap.listeningScore + // Determine whether it's an improvement or decline this.isup = percentageChange > 0; // Assign the absolute percentage change to this.beforyes this.beforyes = Math.abs(percentageChange); this.changedata() - + this.isloading=true // this.classlist = res.data.list // this.isloding = false @@ -363,22 +374,22 @@ color: '#FFFFFF ' // 标签特定的颜色。 }, { - name: '写作' + ' ' + Number(_this.grammaticalScore).toFixed(1), + name: '写作' + ' ' + Number(_this.write).toFixed(1), max: 100, color: '#FFFFFF' // 标签特定的颜色。 }, { - name: '阅读' + ' ' + Number(_this.vocabularyScore).toFixed(1), + name: '阅读' + ' ' + Number(_this.read).toFixed(1), max: 100, color: '#FFFFFF' // 标签特定的颜色。 }, { - name: '口语' + ' ' + Number(_this.pronounceScore).toFixed(1), + name: '口语' + ' ' + Number(_this.speak).toFixed(1), max: 100, color: '#FFFFFF' // 标签特定的颜色。 }, { - name: '听力' + ' ' + Number(_this.fluencyScore).toFixed(1), + name: '听力' + ' ' + Number(_this.listen).toFixed(1), max: 100, color: '#FFFFFF' // 标签特定的颜色。 } diff --git a/pages_teacher/teacher_class/class_members.vue b/pages_teacher/teacher_class/class_members.vue index 4334764..7f4d0cf 100644 --- a/pages_teacher/teacher_class/class_members.vue +++ b/pages_teacher/teacher_class/class_members.vue @@ -19,7 +19,7 @@ --> - + @@ -99,6 +99,16 @@ } }) }, + topage(id){ + // console.log(''); + uni.navigateTo({ + url: "/pages/Mystudent/Mystudent?id=" + id + }).then(res => { + + }).catch(err => { + + }); + }, }