44e236R6">6
+ <ion-buttons slot="start">
+ <ion-back-button></ion-back-button>
+ </ion-buttons>
+ <ion-title>Material Detail</ion-title>
+ </ion-toolbar>
+ </ion-header>
+ <ion-content class='ion-text-wrap'>
+ <div style="padding:56.25% 0 0 0;position:relative;" v-html="mat.embed" v-if='mat'></div>
+ <div v-if="mat" class='ion-padding ion-text-wrap'>
+ <h2 v-if='name'>{{ name }}</h2>
+ {{ mat }}
+ </div>
+ </ion-content>
+ </ion-page>
+</template>
+
+<script setup lang="ts">
+import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonNavLink,
+ IonButton,
+ IonButtons,
+ IonBackButton, onIonViewWillEnter, IonRow, IonGrid, IonCol } from '@ionic/vue';
+import { useRoute } from 'vue-router';
+import { getMat } from '@/settings';
+import { ref } from 'vue';
+import CourseMat from '@/components/CourseMat.vue'
+
+const route = useRoute();
+const { id } = route.params;
+
+const mat = ref()
+const name = ref()
+onIonViewWillEnter(async () => {
+ mat.value = await getMat(id)
+ name.value = mat.value.vimeo_name || mat.value.course_name
+})
+</script>
|
||
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
|
| 5 |
|
|
| 5 |
|
|
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 | 10 |
|
| 11 |
|
|
| 11 |
|
|
| 12 | 12 |
|
| 13 | 13 |
|
| 14 |
|
|
| 15 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 16 | 21 |
|
| 17 | 22 |
|
| 18 | 23 |
|
| 19 | 24 |
|
| 20 | 25 |
|
| 21 |
|
|
| 22 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 23 | 37 |
|