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 @@ - +