tum преди 2 години
родител
ревизия
d0108dc2b1
променени са 6 файла, в които са добавени 4896 реда и са изтрити 173 реда
  1. 4864 164
      package-lock.json
  2. 3 0
      package.json
  3. 10 0
      src/theme/myapp.scss
  4. 2 1
      src/theme/variables.css
  5. 16 7
      src/views/Tab1Page.vue
  6. 1 1
      src/views/TabsPage.vue

Файловите разлики са ограничени, защото са твърде много
+ 4864 - 164
package-lock.json


+ 3 - 0
package.json

@@ -41,6 +41,9 @@
41 41
     "eslint": "^8.35.0",
42 42
     "eslint-plugin-vue": "^9.9.0",
43 43
     "jsdom": "^21.1.0",
44
+    "node-sass": "^8.0.0",
45
+    "sass": "^1.61.0",
46
+    "sass-loader": "^13.2.2",
44 47
     "typescript": "^4.9.3",
45 48
     "vite": "^4.1.0",
46 49
     "vitest": "^0.29.2",

+ 10 - 0
src/theme/myapp.scss

@@ -0,0 +1,10 @@
1
+ion-button#cartBtn {
2
+  position:relative;
3
+  #bd {
4
+    top:0px;
5
+    right:-5px;
6
+    font-size:8px;
7
+    position:absolute;
8
+    background-color:#f00;
9
+  }
10
+}

+ 2 - 1
src/theme/variables.css

@@ -233,4 +233,5 @@ http://ionicframework.com/docs/theming/ */
233 233
 
234 234
     --ion-card-background: #1e1e1e;
235 235
   }
236
-}
236
+}
237
+

+ 16 - 7
src/views/Tab1Page.vue

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

+ 1 - 1
src/views/TabsPage.vue

@@ -6,7 +6,7 @@
6 6
         <ion-tab-button tab="tab1" href="/tabs/tab1">
7 7
           <font-awesome-icon icon="fa-solid fa-face-smile" size="2x" />
8 8
 
9
-          <ion-label>สินค้าแนะนำ</ion-label>
9
+          <ion-label>แนะนำ</ion-label>
10 10
         </ion-tab-button>
11 11
 
12 12
         <ion-tab-button tab="tab2" href="/tabs/tab2">