diff --git a/public/images/gonggao/close1.png b/public/images/gonggao/close1.png new file mode 100644 index 00000000..3b2810ee Binary files /dev/null and b/public/images/gonggao/close1.png differ diff --git a/public/index.html b/public/index.html index 12a0ba92..2be141ec 100644 --- a/public/index.html +++ b/public/index.html @@ -17,9 +17,9 @@ diff --git a/src/views/portal/qa/Answer.vue b/src/views/portal/qa/Answer.vue index cfe4c1e4..a2c57d8e 100644 --- a/src/views/portal/qa/Answer.vue +++ b/src/views/portal/qa/Answer.vue @@ -81,7 +81,7 @@
- +
diff --git a/src/views/portal/user/Message.vue b/src/views/portal/user/Message.vue index 9b246d20..f7081a16 100644 --- a/src/views/portal/user/Message.vue +++ b/src/views/portal/user/Message.vue @@ -67,14 +67,15 @@ 未读 已读 - {{ item.title }} + + {{ item.title }}
- -
{{item.tip}}-{{ item.content }}
-
{{item.tip}}
-
+ +
{{item.tip}}-{{ item.content }}
+
{{item.tip}}
+
删除
@@ -314,22 +315,40 @@ export default { // 跳转详情事件11 returnRouter(item) { + apiMessage.updateIsRead([item.id]).then(res => { + if (res.status == 200) { + this.$store.dispatch('refrashMsg'); + // this.queryMessage(true) + item.isRead = true; + } + }); if(item.pageUrl && item.pageUrl.length>10){ - return item.pageUrl; + location.href = item.pageUrl; }else{ - if (item.refType == 2) { - return this.webBaseUrl + '/article/detail?id=' + item.refId; - } else if (item.refType == 4||item.refType == 5) { - return this.webBaseUrl + '/qa/answer?id=' + item.refId; - } else { - // if (item.conType == 10) { - // return this.webBaseUrl + '/course/micro?id=' + item.refId; - // } else if (item.conType == 20) { - return this.webBaseUrl + '/course/detail?id=' + item.refId; - // } + if(item.pageType && item.pageParams){ + if(item.pageType==1){ + this.$router.push('/course/studyindex?id='+ item.pageParams); + }else if(item.pageType==2){ + this.$router.push('/article/detail?id='+ item.pageParams); + }else if(item.pageType==3){ + this.$router.push('/case/detail?id='+ item.pageParams); + }else if(item.pageType==4){ + this.$router.push('/qa/answer?id='+ item.pageParams); + } + }else{ + if (item.refType == 2) { + this.$router.push('/article/detail?id='+ item.refId); + }else if(item.refType==3){ + this.$router.push('/case/detail?id='+ item.refId); + }else if (item.refType == 4||item.refType == 5) { + this.$router.push('/qa/answer?id='+ item.refId); + } else if (item.refType == 1){ + this.$router.push('/course/studyindex?id='+ item.refId); + } } + } - + } } }; diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index b0ae212d..666cb528 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -814,6 +814,8 @@ refId:this.courseInfo.id, refType:1, source:1, + pageType:1, + pageParams:this.courseInfo.id, pageUrl:location.href, sendAid:this.userInfo.aid, sendName:this.userInfo.name, diff --git a/src/views/user/Mynotes.vue b/src/views/user/Mynotes.vue index 5aa21480..b19ee8ff 100644 --- a/src/views/user/Mynotes.vue +++ b/src/views/user/Mynotes.vue @@ -351,41 +351,17 @@ export default { } if(this.exportType == '1') { - - - apiNote.exportPdf(data).then(res=>{ - console.log("导出pdf完成"); const link = document.createElement('a');// 创建a标签 - // let blob = new Blob([res],{type: 'application/vnd.ms-pdf;charset=UTF-8'}); // 设置文件类型 - let blob = new Blob([res],{type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'}); // 设置文件类型 - link.style.display = "none"; - link.href = URL.createObjectURL(blob); // 创建URL - link.setAttribute("download", "我的笔记.pdf"); - document.body.appendChild(link); - link.click(); - link.remove(); // 一次性的,用完就删除a标签 - this.dialogVisible = false; + let blob = new Blob([res],{type: 'application/vnd.ms-pdf;charset=UTF-8'}); // 设置文件类型 + link.style.display = "none"; + link.href = URL.createObjectURL(blob); // 创建URL + link.setAttribute("download", "我的笔记.pdf"); + document.body.appendChild(link); + link.click(); + link.remove(); // 一次性的,用完就删除a标签 + this.dialogVisible = false; }) - - //apiNote.exportPdf(data); - // apiNote.exportPdf(data).then(res=>{ - // if(res.status) { - // this.$message.error('导出失败'); - // } else { - // const link = document.createElement('a');// 创建a标签 - // // let blob = new Blob([res],{type: 'application/vnd.ms-pdf;charset=UTF-8'}); // 设置文件类型 - // let blob = new Blob([res],{type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'}); // 设置文件类型 - // link.style.display = "none"; - // link.href = URL.createObjectURL(blob); // 创建URL - // link.setAttribute("download", "我的笔记.pdf"); - // document.body.appendChild(link); - // link.click(); - // document.body.removeChild(link); - // this.dialogVisible = false; - // } - - // }) } else { let data = { orderType:this.orderType,