From 702009f8908e308c358315831de59d2cc6fb6541 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 3 Nov 2022 17:37:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/guideBox.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/Portal/guideBox.vue b/src/components/Portal/guideBox.vue index b0113d75..9514bbb6 100644 --- a/src/components/Portal/guideBox.vue +++ b/src/components/Portal/guideBox.vue @@ -17,13 +17,13 @@
- +
-
+
@@ -71,8 +71,8 @@ delay: 2000, }, speed: 2000, //切换速度,即slider自动滑动开始到结束的时间(单位ms) - loop:true, //循环切换 - observe:true, + initialSlide:1, + loop:false, //循环切换 peed: 300,//循环速度 scrollbar: '.swiper-scrollbar', pagination: { @@ -90,7 +90,6 @@ created() { //这里的以后要去掉的,不应该是这样计算的 let width = document.body.clientWidth; - console.log(width,'width'); if(width > 1921) { this.dlgWidth = '1088px'; this.leftWidth='220px'; @@ -121,6 +120,7 @@ }, mounted() { this.getlist(); + // this.swiper.slideTo(3,2000,false); }, methods:{ show(){ @@ -152,7 +152,6 @@ } else { this.resonimgTow = item.images; } - } }, notYet() { From 71f19a450601f6391a0034cc8f2d1e6638f72b08 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 3 Nov 2022 18:04:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/courseList.vue | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue index f4c9c37c..c7226b0e 100644 --- a/src/components/HomePage/courseList.vue +++ b/src/components/HomePage/courseList.vue @@ -15,7 +15,12 @@
-
{{item.info.courseName || item.contentInfo}} {{toScore(item.info.lastScore)}}分
+
{{item.info.courseName || item.contentInfo}} + {{sysTypeName(item.info.sysType1)}} + {{sysTypeName(item.info.sysType2)}} + {{sysTypeName(item.info.sysType3)}} + {{toScore(item.info.lastScore)}}分 +

{{item.info.summary}}

当前进度:

最新一次学习时间:{{item.eventTime}}

@@ -55,7 +60,7 @@ } }, computed:{ - ...mapGetters(['curIdentity','identity','userInfo']), + ...mapGetters(['curIdentity','identity','userInfo','sysTypeMap']), }, components: { courseImage, @@ -82,6 +87,10 @@ this.pageId = this.$xpage.getHomeId(this.$route); }, methods:{ + sysTypeName(code){ + if(code==''){return '';} + return this.sysTypeMap.get(code); + }, emitHide(id) { this.$emit('hideIndex',id) }, @@ -111,6 +120,18 @@ margin: 0; font-size: 18px !important; line-height: 25px; + .sysType-name{ + display: inline-block; + padding:0px 8px; + margin-top: 5px; + line-height: 24px; + font-size: 12px; + border-radius:2px; + margin-right: 8px; + color: #2C68FF; + height: 24px; + background: rgba(44,104,255,0.06); + } } .title-info{ font-size: 14px; From c064c2585356be3b57bdf45b5bbd9bd96a538540 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 3 Nov 2022 18:07:11 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/courseList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue index c7226b0e..96b9d553 100644 --- a/src/components/HomePage/courseList.vue +++ b/src/components/HomePage/courseList.vue @@ -123,7 +123,7 @@ .sysType-name{ display: inline-block; padding:0px 8px; - margin-top: 5px; + // margin-top: 5px; line-height: 24px; font-size: 12px; border-radius:2px;