From 6a38f22dfa61f8972be5379ea8eae225baee3f37 Mon Sep 17 00:00:00 2001 From: joshen <445497689@qq.com> Date: Tue, 14 May 2024 21:02:41 +0800 Subject: [PATCH] page css edit --- pages/lecturer/certification/info.vue | 21 +++----- pages/lecturer/certification/list.vue | 70 ++++++++++++++------------- 2 files changed, 43 insertions(+), 48 deletions(-) diff --git a/pages/lecturer/certification/info.vue b/pages/lecturer/certification/info.vue index fa5bf2a..212a1a2 100644 --- a/pages/lecturer/certification/info.vue +++ b/pages/lecturer/certification/info.vue @@ -169,20 +169,11 @@ apiLecturerCert.lecturerCertificationInfo({ teacherId: teacherId }).then(res => { - console.log('submit res::', res) + console.log('submit res::', res.data.length) if (res.code == 200 &&res.data.length) { - this.lecturersInfo = res.data[0] - // list.forEach((item, index) => { - // res.result.some(author => { - // if (author.aid == item.aid) { - // item.authorInfo = author; - // return true; - // } else { - // return false; - // } - // }); - // }); + this.lecturersInfo = res.data[0] || {} } else { + this.lecturersInfo = {} this.$refs.uToast.show({message:res.msg,type:'error'}); } }); @@ -193,9 +184,11 @@ teacherId: parseInt(this.teacherId), score: this.scoreNum, }).then(res => { - console.log('submit res::', res) + // 评分完成回列表 if (res.code == 200) { - this.lecturersList = res.data + uni.navigateTo({ + url:'/pages/lecturer/certification/list?reviewId='+this.teacherId + }) } else { this.$refs.uToast.show({message:res.msg,type:'error'}); } diff --git a/pages/lecturer/certification/list.vue b/pages/lecturer/certification/list.vue index f24f9c7..69c3ba3 100644 --- a/pages/lecturer/certification/list.vue +++ b/pages/lecturer/certification/list.vue @@ -1,37 +1,38 @@