|
|
@@ -2,13 +2,19 @@
|
|
2
|
2
|
<ion-page>
|
|
3
|
3
|
<ion-header>
|
|
4
|
4
|
<ion-toolbar>
|
|
5
|
|
- <ion-title>
|
|
6
|
|
- <img src="@/assets/img/kacee-logo.png">
|
|
7
|
|
- </ion-title>
|
|
|
5
|
+ <ion-searchbar></ion-searchbar>
|
|
|
6
|
+ <ion-buttons slot="end">
|
|
|
7
|
+ <ion-button>
|
|
|
8
|
+ <ion-icon slot="icon-only" :icon="heart"></ion-icon>
|
|
|
9
|
+ </ion-button>
|
|
|
10
|
+ <ion-button id='cartBtn'>
|
|
|
11
|
+ <ion-icon :icon="cart" slot='start'></ion-icon>
|
|
|
12
|
+ <ion-badge slot="end" id='bd'>22</ion-badge>
|
|
|
13
|
+ </ion-button>
|
|
|
14
|
+ </ion-buttons>
|
|
8
|
15
|
</ion-toolbar>
|
|
9
|
16
|
</ion-header>
|
|
10
|
|
- <ion-content :fullscreen="true">
|
|
11
|
|
- <ion-searchbar></ion-searchbar>
|
|
|
17
|
+ <ion-content :fullscreen="true" id="content">
|
|
12
|
18
|
<swiper>
|
|
13
|
19
|
<swiper-slide v-for="p in tops">
|
|
14
|
20
|
<ion-card>
|
|
|
@@ -31,14 +37,17 @@
|
|
31
|
37
|
</ion-page>
|
|
32
|
38
|
</template>
|
|
33
|
39
|
|
|
|
40
|
+<style scoped lang="scss">
|
|
|
41
|
+</style>
|
|
34
|
42
|
<script setup lang="ts">
|
|
35
|
|
-import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonButton, IonItem, IonLabel, IonList, IonIcon, IonSearchbar, onIonViewDidEnter, onIonViewWillLeave, onIonViewWillEnter, IonThumbnail, IonImg, IonCard, IonCardContent } from '@ionic/vue';
|
|
|
43
|
+import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonButton, IonItem, IonLabel, IonList, IonIcon, IonSearchbar, onIonViewDidEnter, onIonViewWillLeave, onIonViewWillEnter, IonThumbnail, IonImg, IonCard, IonCardContent, IonButtons, IonBadge } from '@ionic/vue';
|
|
36
|
44
|
import ExploreContainer from '@/components/ExploreContainer.vue';
|
|
37
|
|
-import { logoAndroid, logoApple, star } from 'ionicons/icons';
|
|
|
45
|
+import { logoAndroid, logoApple, star, heart, cart } from 'ionicons/icons';
|
|
38
|
46
|
import axios from 'axios';
|
|
39
|
47
|
|
|
40
|
48
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
|
41
|
49
|
import 'swiper/css';
|
|
|
50
|
+import '@/theme/myapp.scss';
|
|
42
|
51
|
import '@ionic/vue/css/ionic-swiper.css';
|
|
43
|
52
|
import { API_URL } from '@/api_config';
|
|
44
|
53
|
import { ref, onMounted, reactive } from 'vue'
|