From 616842235d2c951c63d7dede8efdbbdf32d9125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Wed, 22 Dec 2021 17:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=91=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/History.vue | 17 +++++++++++------ src/views/Introduce.vue | 31 ++++++++++++++++++------------- 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/views/History.vue b/src/views/History.vue index 01ff217..0102c0a 100644 --- a/src/views/History.vue +++ b/src/views/History.vue @@ -6,11 +6,12 @@
-
{{ dateSplit(dateList[index]) }}
+
{{ dateSplit(history[index].date) }}
{{ item.content }}
+
{{ history[index].treeHole }}
@@ -23,15 +24,14 @@ export default { return { cardTypes: [], historyCardList: [], - dateList: [] + history: [] } }, async created() { - const history = JSON.parse(localStorage.getItem('card_history') || '[]') - if(history.length) { + this.history = JSON.parse(localStorage.getItem('card_history') || '[]') + if(this.history.length) { this.cardTypes = await this.$http.get('/api/rainbow_card/card/types') - this.historyCardList = await this.$http.post('/api/rainbow_card/card/list', history.map(item => item.num)) - this.dateList = history.map(item => item.date) + this.historyCardList = await this.$http.post('/api/rainbow_card/card/list', this.history.map(item => item.num)) } }, methods: { @@ -94,6 +94,11 @@ export default { left: -10px; top: 12px; } + > .tree-hole { + border-top: 1px dashed #FFF; + margin-top: 5px; + padding-top: 5px; + } } } \ No newline at end of file diff --git a/src/views/Introduce.vue b/src/views/Introduce.vue index 15d9e15..7406a4e 100644 --- a/src/views/Introduce.vue +++ b/src/views/Introduce.vue @@ -36,7 +36,7 @@ - +