From fd515269ea64529b578061dc916330086f02a7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BE=9D=E6=A2=A6?= <15822465730@163.com> Date: Tue, 16 Dec 2025 18:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E6=9C=9F=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/portal-index.scss | 20 ++++++--- src/utils/tools.js | 11 +++++ src/views/course/CourseManage.vue | 70 +++++++++++++++++++---------- src/views/course/TeacherList.vue | 4 +- src/views/study/coursenew.vue | 40 ++++++++++++----- 5 files changed, 102 insertions(+), 43 deletions(-) diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index bb8a8e9b..1035ea8f 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -444,17 +444,20 @@ border: none !important; } .el-message--success.new-message { - box-shadow: none !important; background-color: rgba($color: #4CB967, $alpha: 0.1) !important; min-width: 240px !important; height: 52px !important; border-radius: 12px !important; top: 236px !important; - font-size: 20px !important; - font-weight: bold !important; - color: #189B39 !important; + font-size: 22px !important; + border: none !important; + .el-message__content { + color: #189B39 !important; + font-size: 20px !important; + font-weight: bold !important; + } } .el-message--error.new-message { box-shadow: none !important; @@ -463,10 +466,15 @@ height: 52px !important; border-radius: 12px !important; top: 236px !important; - font-size: 20px !important; + font-size: 22px !important; font-weight: bold !important; - color: #CF1717 !important; + border: none !important; + .el-message__content { + color: #CF1717 !important; + font-size: 20px !important; + font-weight: bold !important; + } } .el-message--warning.new-message { box-shadow: none !important; diff --git a/src/utils/tools.js b/src/utils/tools.js index eb286cd5..32615c7f 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -266,6 +266,17 @@ export function testType(type) { //此方法移到tools中 } return judgment; } + + export function newToScore(score) { + if (!score) { + return '0.0'; + } + if((''+score).indexOf('.')>-1){ + return score.toFixed(1); + }else{ + return score+'.0'; + } + } export function toScore(score) { if (!score) { return '0'; diff --git a/src/views/course/CourseManage.vue b/src/views/course/CourseManage.vue index 963e71ac..2098b1f6 100644 --- a/src/views/course/CourseManage.vue +++ b/src/views/course/CourseManage.vue @@ -13,12 +13,13 @@
告诉我们您的喜欢程度