diff --git a/public/images/gonggao/dlg_bg.png b/public/images/gonggao/dlg_bg.png
new file mode 100644
index 00000000..4a928fbd
Binary files /dev/null and b/public/images/gonggao/dlg_bg.png differ
diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue
index 5ec415c6..c1b630d5 100644
--- a/src/components/Course/courseForm.vue
+++ b/src/components/Course/courseForm.vue
@@ -1311,6 +1311,15 @@ export default {
if (this.sysTypeList.length > 2) {
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
}
+
+ //受众的处理
+ let crowds=[];
+ this.courseCrowds.forEach(item=>{
+ crowds.push({
+ groupId:item.key,
+ groupName:item.value
+ })
+ });
let saveTeachers = [];
this.teacherValues.forEach(item => {
@@ -1318,7 +1327,8 @@ export default {
});
let postData = {
course: this.courseInfo,
- teachers: saveTeachers
+ teachers: saveTeachers,
+ crowds:crowds
};
this.btnLoading = true;
let $this = this;
diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue
index 265823a2..cbb42c77 100644
--- a/src/components/Course/myNote.vue
+++ b/src/components/Course/myNote.vue
@@ -9,7 +9,7 @@
![]()
- {{formatSeconds(play_Time)}}1
+ {{formatSeconds(play_Time)}}
diff --git a/src/components/Gonggao.vue b/src/components/Gonggao.vue
new file mode 100644
index 00000000..45dd035b
--- /dev/null
+++ b/src/components/Gonggao.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
最新公告
+
+ 为了保障信息安全,为您提供更优质的服务,学习平台计划在2022年11月9日0点-11月9日早6点进行服务器升级,
+ 在此期间,您无法登录学习,给您带来不便,还请谅解,感谢您的理解与支持。
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue
index 96b9d553..70b5e0a6 100644
--- a/src/components/HomePage/courseList.vue
+++ b/src/components/HomePage/courseList.vue
@@ -15,7 +15,7 @@
-
{{item.info.courseName || item.contentInfo}}
+ {{item.info.courseName || item.contentInfo}}
{{sysTypeName(item.info.sysType1)}}
{{sysTypeName(item.info.sysType2)}}
{{sysTypeName(item.info.sysType3)}}
@@ -96,8 +96,9 @@
},
jumpDetail(data) {
if(!data.contentId){
- return;
+ return;
}
+
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
}
}
diff --git a/src/components/HomePage/followList.vue b/src/components/HomePage/followList.vue
index 27325b3c..0bfd1151 100644
--- a/src/components/HomePage/followList.vue
+++ b/src/components/HomePage/followList.vue
@@ -262,7 +262,7 @@ import apiUser from "@/api/system/user.js";
})
this.followMe.list = res.result.list;
//console.log(this.mypageList,'this.mypageList');
- this.getUserData(res.result.list);
+ this.getUserData(res.result.list,2);
}else{
console.log('加载关注我数据错误:'+res.message);
}
@@ -280,26 +280,26 @@ import apiUser from "@/api/system/user.js";
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
})
this.follow.list = res.result.list;
- this.getUserData(res.result.list);
+ this.getUserData(res.result.list, 1);
}
})
},
- getUserData(list) {
+ // num 判断是哪个接口
+ getUserData(list,num) {
let ids = [];
- if(this.active == 2) {
+ if(num == 2) {
ids = list.map(item=> item.userFollow.aid);
} else {
ids = list.map(item=> item.userFollow.followId);
}
-
apiUser.getByIds(ids).then(res => {
if (res.status == 200) {
list.forEach((item, index) => {
res.result.some(author => {
- if (this.active == 1 && author.aid == item.userFollow.followId) {
+ if (num == 1 && author.aid == item.userFollow.followId) {
item.userFollow.authorInfo = author;
return true;
- } else if(this.active == 2 && author.aid == item.userFollow.aid){
+ } else if(num == 2 && author.aid == item.userFollow.aid){
item.userFollow.authorInfo = author;
return true;
} else {
diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue
index ddb4d6fe..86556ca9 100644
--- a/src/components/PortalHeader.vue
+++ b/src/components/PortalHeader.vue
@@ -44,14 +44,14 @@
-
-
+
+
-
+