From 84188772a045bcbc854f37f9a359481582830471 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 24 Nov 2022 21:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/user/Message.vue | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/views/portal/user/Message.vue b/src/views/portal/user/Message.vue index 9b246d20..e281263f 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,18 +315,28 @@ 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; + // return this.webBaseUrl + '/article/detail?id=' + item.refId; + this.$router.push('/article/detail?id='+ item.refId); } else if (item.refType == 4||item.refType == 5) { - return this.webBaseUrl + '/qa/answer?id=' + item.refId; + // return this.webBaseUrl + '/qa/answer?id=' + item.refId; + this.$router.push('/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; + // return this.webBaseUrl + '/course/detail?id=' + item.refId; + this.$router.push('/course/detail?id='+ item.refId); // } } }