From f5f11750798aca9f1000568905279a080f7c5ef5 Mon Sep 17 00:00:00 2001 From: x ronger Date: Tue, 4 Aug 2020 21:50:59 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E4=BC=98=E5=8C=96=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=AB=AF=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/archive/list.vue | 2 +- components/common/notification/list.vue | 51 +++--- components/layouts/mobile/header.vue | 202 +++++++++++------------- components/layouts/mobile/main.vue | 4 +- pages/article/_article_id.vue | 4 +- pages/portfolio/_portfolio_id.vue | 4 +- store/global.js | 5 +- store/index.js | 23 +++ 8 files changed, 150 insertions(+), 145 deletions(-) diff --git a/components/archive/list.vue b/components/archive/list.vue index 18cb4b1..edd7652 100644 --- a/components/archive/list.vue +++ b/components/archive/list.vue @@ -23,7 +23,7 @@ - +
{{ article.articleAuthorName }} diff --git a/components/common/notification/list.vue b/components/common/notification/list.vue index d6278a8..71e8393 100644 --- a/components/common/notification/list.vue +++ b/components/common/notification/list.vue @@ -6,18 +6,7 @@ - {{ notification.createdTime }} - - - - - - - - - - - {{ notification.createdTime }} + {{ notification.createdTime }} @@ -26,14 +15,26 @@ - - - {{ notification.createdTime }} + + - - - 标记已读 - + + + + + {{ notification.createdTime }} + + + {{ notification.dataSummary }} + + + + + 标记已读 + + @@ -68,19 +69,15 @@ }, read(id) { let _ts = this; - this.$axios.$put('/api/notification/read/' + id).then(function (res) { + this.$axios.$put('/api/notification/read/' + id).then(function () { _ts.currentChange(1); }).catch(error => console.log(error)); }, onRouter(notification) { - if ('0' === notification.dataType) { - if (notification.hasRead === '0') { - this.read(notification.idNotification); - } - this.$router.push({ - path: '/article/' + notification.dataId - }) + if (notification.hasRead === '0') { + this.read(notification.idNotification); } + window.location.href = notification.dataUrl; } } } diff --git a/components/layouts/mobile/header.vue b/components/layouts/mobile/header.vue index ad08646..434800f 100644 --- a/components/layouts/mobile/header.vue +++ b/components/layouts/mobile/header.vue @@ -1,25 +1,12 @@