From 3860087facf2c4fea98fc1223927be7a70f223f3 Mon Sep 17 00:00:00 2001
From: huangzhe <3451701311@qq.com>
Date: Mon, 15 Sep 2025 11:35:49 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=B1=95=E7=A4=BA=EF=BC=8C=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98=EF=BC=8C=E6=8F=90=E7=A4=BA?=
=?UTF-8?q?=E8=AF=AD=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/portal/course/qualityCourse.vue | 36 +++++++++++++----------
1 file changed, 20 insertions(+), 16 deletions(-)
diff --git a/src/views/portal/course/qualityCourse.vue b/src/views/portal/course/qualityCourse.vue
index 7987a962..d6fc4260 100644
--- a/src/views/portal/course/qualityCourse.vue
+++ b/src/views/portal/course/qualityCourse.vue
@@ -69,7 +69,7 @@
-
+
-
+
@@ -217,7 +217,7 @@
- 暂无课程,请优先学习其它课程吧~
+ 当前分类下暂未标记精品课
{
- if (item.checked) {
- list.push(item);
- }
- });
+ // 取消 全部 内部专享 外部精选 三种的显示
+ // this.ctypeList.forEach(item => {
+ // if (item.checked) {
+ // list.push(item);
+ // }
+ // });
this.oneList.forEach(one => {
var twoChildChecked = false;//是否有下级
one.children.forEach(two => {
@@ -479,10 +481,9 @@ export default {
mounted() {
qualityCourseTimeMark().then(response=>{
- console.log(`qualityCourseTimeMark`, response)
this.years = response.data.result
})
- let screenWidth = window.screen.availWidth;
+ // let screenWidth = window.screen.availWidth;
// if (screenWidth < 1280) {
// this.course.pageSize = 9;
// this.columns = 3;
@@ -644,6 +645,7 @@ export default {
},
//搜索条件
stagClose(tag, tagIndex) {
+ this.courseChosen = void 0;
tag.checked = false;
if (tag.type == 0) {
this.keyword = '';
@@ -689,9 +691,10 @@ export default {
handleClearTags() {
//清空所有的条件
this.keyword = '';
- this.ctypeList.forEach(item => {
- item.checked = false;
- });
+ // 取消搜索条件标签展示
+ // this.ctypeList.forEach(item => {
+ // item.checked = false;
+ // });
this.oneList.forEach(one => {
one.checked = false;
one.children.forEach(two => {
@@ -701,6 +704,8 @@ export default {
})
})
});
+ // 清除左侧被选中的内容
+ this.courseChosen = void 0;
this.twoList = [];
this.threeList = [];
this.navTitle = [];
@@ -921,7 +926,6 @@ export default {
// 头部
emitInput(val) {
this.keyword = val;
- //this.stagList;
this.searchData();
},
@@ -2108,7 +2112,7 @@ export default {
.search-div {
background: #fff;
- padding: 10px 0;
+ padding: 10px 15px;
border-radius: 8px;
::v-deep .el-input {