From b0b9e5162226c57a41bc725472ef675f455b5f96 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Mon, 26 Dec 2022 17:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E8=AF=BE=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/portal.scss | 6 +++--- src/views/portal/course/Index.vue | 23 +++++++++++++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/assets/styles/portal.scss b/src/assets/styles/portal.scss index e21fe7a6..d95e71e7 100644 --- a/src/assets/styles/portal.scss +++ b/src/assets/styles/portal.scss @@ -189,7 +189,7 @@ body {margin: 0px;padding: 0px;} .course-card-favorite{ position: absolute; right:25px; - bottom: 72px; + bottom: 84px; } // margin-right: 35px; @@ -254,7 +254,7 @@ body {margin: 0px;padding: 0px;} .course-title { height: 44px; // margin: 10px 0; - margin: 10px 0 10px 0px; + margin: 10px 0 0px 0px; line-height: 24px; font-size: 16px; font-weight: 600; @@ -383,7 +383,7 @@ body {margin: 0px;padding: 0px;} .course-card-favorite{ position: absolute; right:20px; - bottom: 72px; + bottom: 84px; } .course-image-box { width:218; diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 55d75108..f33982f5 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -95,7 +95,12 @@ 线下课 学习项目 -
+
+ +
+ +
授课时间:{{ cinfo.startTime }}
+
@@ -824,6 +829,11 @@ export default { if (res.status == 200 && res.result.list.length > 0) { this.totalPages = res.result.totalPages; res.result.list.forEach(item => { + // item.startTime + if(item.startTime != '') { + let time = item.startTime.split('-'); + item.startTime = `${time[0]}年${time[1]}月${time[2]}日` + } //教师转化 if(item.teacher){ let dotIdx=item.teacher.indexOf(','); @@ -844,7 +854,7 @@ export default { } }); - + this.courseList.push(...res.result.list); this.moreState = 1; } else { @@ -948,6 +958,15 @@ export default {