|
|
@@ -19,7 +19,20 @@
|
|
19
|
19
|
<!--<ion-input v-model="name" placeholder="Your name" label='xx'></ion-input>-->
|
|
20
|
20
|
<!--</ion-item>-->
|
|
21
|
21
|
<template v-if="product">
|
|
22
|
|
- <ion-img :src="product.cover_image_str"></ion-img>
|
|
|
22
|
+ <swiper>
|
|
|
23
|
+ <swiper-slide v-for="p in product.product_photos">
|
|
|
24
|
+ <ion-img :src="p.image"></ion-img>
|
|
|
25
|
+ </swiper-slide>
|
|
|
26
|
+ </swiper>
|
|
|
27
|
+
|
|
|
28
|
+ <!-- <ion-img :src="product.cover_image_str"></ion-img> -->
|
|
|
29
|
+ <ion-grid class='ion-hide'>
|
|
|
30
|
+ <ion-row>
|
|
|
31
|
+ <ion-col size=3 v-for="(p,i) in product.product_photos" :key='p.id'>
|
|
|
32
|
+ <ion-img :src="p.image"></ion-img>
|
|
|
33
|
+ </ion-col>
|
|
|
34
|
+ </ion-row>
|
|
|
35
|
+ </ion-grid>
|
|
23
|
36
|
<ion-text>
|
|
24
|
37
|
<h1>{{ product.name }}</h1>
|
|
25
|
38
|
<vue-showdown :markdown="product.description" />
|
|
|
@@ -38,12 +51,16 @@ import {
|
|
38
|
51
|
IonButtons,
|
|
39
|
52
|
IonButton,
|
|
40
|
53
|
IonItem,
|
|
|
54
|
+ IonGrid,
|
|
|
55
|
+ IonRow,
|
|
|
56
|
+ IonCol,
|
|
41
|
57
|
IonLabel,
|
|
42
|
58
|
IonInput,
|
|
43
|
59
|
IonImg,
|
|
44
|
60
|
IonText,
|
|
45
|
61
|
modalController,
|
|
46
|
62
|
onIonViewWillEnter,
|
|
|
63
|
+ IonThumbnail
|
|
47
|
64
|
} from '@ionic/vue';
|
|
48
|
65
|
|
|
49
|
66
|
import { VueShowdown } from 'vue-showdown';
|
|
|
@@ -52,6 +69,10 @@ import { ref, onMounted } from 'vue'
|
|
52
|
69
|
import axios from 'axios';
|
|
53
|
70
|
import { API_URL } from '@/api_config';
|
|
54
|
71
|
|
|
|
72
|
+import { Swiper, SwiperSlide } from 'swiper/vue';
|
|
|
73
|
+import 'swiper/css';
|
|
|
74
|
+import '@ionic/vue/css/ionic-swiper.css';
|
|
|
75
|
+
|
|
55
|
76
|
const props = defineProps(['pid'])
|
|
56
|
77
|
let pid = ref(0)
|
|
57
|
78
|
let product = ref(null)
|