From e8401b6130660303fcfe0d2632d51d82e62a0999 Mon Sep 17 00:00:00 2001 From: lucky Date: Wed, 6 Jan 2021 17:21:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Index/IndexNewList.vue | 12 ++++------- src/views/Activity/Activity.vue | 21 +++++++++++--------- src/views/Community/Community.vue | 12 ++++------- src/views/Policy/Policy.vue | 17 ++++++++-------- src/views/Policy/PolicyDetails.vue | 16 +++++---------- src/views/Policy/components/PolicyList.vue | 23 +++++++++++++++++----- 6 files changed, 51 insertions(+), 50 deletions(-) diff --git a/src/components/Index/IndexNewList.vue b/src/components/Index/IndexNewList.vue index ca2ecd7..4a758b0 100644 --- a/src/components/Index/IndexNewList.vue +++ b/src/components/Index/IndexNewList.vue @@ -35,9 +35,9 @@
-
- Dec. - 03 +
+ {{ monthEnglish[item.releaseTime.split('-')[1] - 1] }}. + {{ item.releaseTime.split(' ')[0].split('-')[2] }}
{{ item.title }}
@@ -66,11 +66,7 @@ export default { }, }, data() { - return {}; - }, - - created() { - console.log('lists: ', this.lists); + return { monthEnglish: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Spt', 'Oct', 'Nov', 'Dec'] }; }, methods: { diff --git a/src/views/Activity/Activity.vue b/src/views/Activity/Activity.vue index 4472a9d..59e9340 100644 --- a/src/views/Activity/Activity.vue +++ b/src/views/Activity/Activity.vue @@ -5,14 +5,21 @@ -->