Skip to content

Commit 1d22315

Browse files
committed
FIX: FireStoreからしゅとくする
1 parent 62c2bc7 commit 1d22315

File tree

2 files changed

+12
-31
lines changed

2 files changed

+12
-31
lines changed

src/components/StudyCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export default {
4949
},
5050
props: {
5151
schooltime: {
52-
type: String,
53-
default: '1',
52+
type: Number,
53+
default: 1,
5454
},
5555
realtime: {
5656
type: String,

src/pages/index.vue

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,17 @@
11
<template>
22
<div class="MainPage">
33
<v-row class="DataBlock">
4-
<v-col cols="12" md="6">
4+
<v-col
5+
v-for="(item, i) in classData.classData.Lessons['2020-04-04']"
6+
:key="i"
7+
cols="12"
8+
md="6"
9+
>
510
<StudyCard
6-
schooltime="1"
7-
realtime="9:00 - 10:00"
8-
:content="classData.classData.Lessons['2020-04-04'][0].Content"
9-
subject="国語"
10-
/>
11-
</v-col>
12-
<v-col cols="12" md="6">
13-
<StudyCard
14-
schooltime="2"
15-
realtime="10:00 - 11:00"
16-
content="Stess"
17-
subject="算数"
18-
/>
19-
</v-col>
20-
<v-col cols="12" md="6">
21-
<StudyCard
22-
schooltime="3"
23-
realtime="12:00 - 13:00"
24-
content="test"
25-
subject="理科"
26-
/>
27-
</v-col>
28-
<v-col cols="12" md="6">
29-
<StudyCard
30-
schooltime="4"
31-
realtime="14:00 - 15:00"
32-
content="内容(4時間目!!!!!)"
33-
subject="社会"
11+
:schooltime="i + 1"
12+
:realtime="item.realTime"
13+
:content="item.Content"
14+
:subject="item.Subject"
3415
/>
3516
</v-col>
3617
</v-row>

0 commit comments

Comments
 (0)