diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index 21f70716..49a243f9 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -48,14 +48,14 @@ {{data.shares}} -
+
-
+ {{ formatNum(data.views)}} -
+
+ {{ 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); // } } }