Bläddra i källkod

Clean up of footer Code

Navbar ammend
SellPage changes
UnitPage changes
master
Kobus 5 år sedan
förälder
incheckning
3bfdb7edd3

+ 19
- 21
src/App.vue Visa fil

@@ -8,42 +8,34 @@
8 8
     <NavBar @routerGoTo="routerGoTo" />
9 9
     <div class="pushDown"></div>
10 10
     <router-view />
11
-    <FooterSection />
11
+    <FooterSection class="margin-top" />
12 12
   </div>
13 13
 </template>
14 14
 
15 15
 <script>
16
-// import HomePage from './components/home/homePage.vue';
17
-import SearchTab from "./components/shared/searchTab.vue";
18
-import NavBar from "./components/shared/navBar.vue";
19
-import FooterSection from "./components/shared/footerSection.vue";
16
+import SearchTab from './components/shared/searchTab.vue';
17
+import NavBar from './components/shared/navBar.vue';
18
+import FooterSection from './components/shared/footerSection.vue';
20 19
 
21 20
 export default {
22
-  name: "app",
21
+  name: 'app',
23 22
   components: {
24 23
     SearchTab,
25 24
     NavBar,
26
-    FooterSection
25
+    FooterSection,
27 26
   },
28
-  // created() {
29
-  //   this.$http.interceptors.response.use(undefined, (err) => {
30
-  //     return new Promise(function(resolve, reject) {
31
-  //       if (err.status === 401 && err.config && !err.config.__isRetryRequest) {
32
-  //         this.$store.dispatch(logout);
33
-  //       }
34
-  //       throw err;
35
-  //     });
36
-  //   });
37
-  // },
38 27
   methods: {
39 28
     routerGoTo(goTo) {
40 29
       this.$router.push(goTo);
41
-    }
42
-  }
30
+    },
31
+  },
43 32
 };
44 33
 </script>
45 34
 
46 35
 <style>
36
+.myFill {
37
+  fill: #60cbeb;
38
+}
47 39
 a {
48 40
   cursor: pointer;
49 41
 }
@@ -57,10 +49,16 @@ a:hover {
57 49
   text-align: center;
58 50
   color: #2c3e50;
59 51
 }
52
+.cursor-pointer {
53
+  cursor: pointer;
54
+}
55
+</style>
56
+
57
+<style scoped>
60 58
 .pushDown {
61 59
   height: 70px;
62 60
 }
63
-.cursor-pointer {
64
-  cursor: pointer;
61
+.margin-top {
62
+  margin-top: 50px;
65 63
 }
66 64
 </style>

+ 37
- 41
src/components/shared/footerSection.vue Visa fil

@@ -13,27 +13,25 @@
13 13
                   </router-link>
14 14
                 </h4>
15 15
               </div>
16
-              <div class="w-body-a"></div>
17 16
               <div class="w-footer-a">
18 17
                 <ul class="list-unstyled">
19 18
                   <li class="color-a">
20
-                    <eva-icon name="phone-call-outline" fill="#60CBEB"></eva-icon>
19
+                    <eva-icon name="phone-call-outline" class="myFill"></eva-icon>
21 20
                     <span class="color-text-a"></span> +27 (0)12 492 1238
22 21
                   </li>
23 22
                   <li class="color-a">
24
-                    <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
23
+                    <eva-icon name="email-outline" class="myFill"></eva-icon>
25 24
                     <span class="color-text-a"></span> info@univateproperties.co.za
26 25
                   </li>
27
-                  <br />
28 26
                   <li class="item-list-a">
29
-                    <eva-icon name="message-square-outline" fill="#60CBEB"></eva-icon>
27
+                    <eva-icon name="message-square-outline" class="myFill"></eva-icon>
30 28
                     <router-link to="/contactUs">Contact Us</router-link>
31 29
                   </li>
32 30
                 </ul>
33 31
               </div>
34 32
             </div>
35 33
           </div>
36
-          <div class="col-sm-12 col-md-4 section-md-t3">
34
+          <div class="col-sm-12 col-md-4">
37 35
             <div class="widget-a">
38 36
               <div class="w-header-a">
39 37
                 <h4 class="w-title-a">
@@ -44,13 +42,13 @@
44 42
                 <div class="w-body-a">
45 43
                   <ul class="list-unstyled">
46 44
                     <li class="item-list-a">
47
-                      <eva-icon name="slash-outline" fill="#60CBEB"></eva-icon>
45
+                      <eva-icon name="slash-outline" class="myFill"></eva-icon>
48 46
                       <router-link to="/privacypolicy">Privacy Policy</router-link>
49 47
                     </li>
50 48
                     <br />
51 49
                     <li class="list-inline-item">
52 50
                       <a href="https://www.facebook.com/univateproperties/">
53
-                        <eva-icon name="facebook-outline" fill="#60CBEB"></eva-icon>
51
+                        <eva-icon name="facebook-outline" class="myFill"></eva-icon>Facebook
54 52
                       </a>
55 53
                     </li>
56 54
                   </ul>
@@ -58,7 +56,7 @@
58 56
               </div>
59 57
             </div>
60 58
           </div>
61
-          <div class="col-sm-12 col-md-4 section-md-t3">
59
+          <div class="col-sm-12 col-md-4">
62 60
             <div class="w-header-a">
63 61
               <h4 class="w-title-a">
64 62
                 <b>Our Partners</b>
@@ -66,45 +64,26 @@
66 64
             </div>
67 65
             <div class="w-body-a">
68 66
               <ul class="list-unstyled">
69
-                <li class="item-list-a" style="margin-bottom: 1em">
67
+                <li class="item-list-a">
70 68
                   <a href="https:\\www.daelive.com">
71 69
                     <img
72
-                      class="img-fluid"
70
+                      class="img-fluid dae-Logo"
73 71
                       src="/img/logos/DAE_logo_notag.png"
74
-                      alt="DAE Logo"
75
-                      style="width:50px;height:30px;"
76 72
                       align="left"
77 73
                     />
78 74
                   </a>
79 75
                   <a href="https:\\www.gomelo.co.za">
80
-                    <img
81
-                      class="img-fluid"
82
-                      src="/img/logos/gomelo.png"
83
-                      alt="GoMelo Logo"
84
-                      style="width:35px;height:35px;"
85
-                      align="right"
86
-                    />
76
+                    <img class="img-fluid gomelo-Logo" src="/img/logos/gomelo.png" align="right" />
87 77
                   </a>
88 78
                 </li>
89
-
90
-                <li class="item-list-a" style="margin-bottom: 1em">
79
+                <li class="item-list-a">
91 80
                   <a href="https:\\www.rci.co.za">
92
-                    <img
93
-                      class="img-fluid"
94
-                      src="/img/logos/rci.png"
95
-                      alt="RCI Logo"
96
-                      style="width:40px;height:20px;"
97
-                    />
81
+                    <img class="img-fluid rci-Logo" src="/img/logos/rci.png" />
98 82
                   </a>
99 83
                 </li>
100
-                <li class="item-list-a" style="margin-bottom: 1em">
84
+                <li class="item-list-a">
101 85
                   <a href="https:\\www.voasa.co.za">
102
-                    <img
103
-                      class="img-fluid"
104
-                      src="/img/logos/voasa.png"
105
-                      alt="Voasa Logo"
106
-                      style="width:90px;height:45px;"
107
-                    />
86
+                    <img class="img-fluid voasa-Logo" src="/img/logos/voasa.png" />
108 87
                   </a>
109 88
                 </li>
110 89
               </ul>
@@ -126,12 +105,7 @@
126 105
             <div class="credits">
127 106
               Site created by
128 107
               <a href="http://www.provision-sa.co.za/">
129
-                <img
130
-                  src="img/logos/provision-logocropped.png"
131
-                  alt
132
-                  class="Provision Logo"
133
-                  style="width: 250px; height:15px;"
134
-                />
108
+                <img src="img/logos/provision-logocropped.png" class="pv-Logo" />
135 109
               </a>
136 110
             </div>
137 111
           </div>
@@ -149,3 +123,25 @@ export default {
149 123
   },
150 124
 };
151 125
 </script>
126
+<style scoped>
127
+.pv-Logo {
128
+  width: 250px;
129
+  height: 15px;
130
+}
131
+.voasa-Logo {
132
+  width: 90px;
133
+  height: 45px;
134
+}
135
+.rci-Logo {
136
+  width: 40px;
137
+  height: 20px;
138
+}
139
+.gomelo-Logo {
140
+  width: 35px;
141
+  height: 35px;
142
+}
143
+.dae-Logo {
144
+  width: 50px;
145
+  height: 30px;
146
+}
147
+</style>

+ 1
- 1
src/components/shared/navBar.vue Visa fil

@@ -44,7 +44,7 @@
44 44
             <!-- <li class="nav-item">
45 45
             <a class="nav-link active" @click="routerGoTo('/')">Home</a>
46 46
             </li>-->
47
-            <li class="nav-item dropdowsn">
47
+            <li class="nav-item dropdown">
48 48
               <a
49 49
                 class="nav-link dropdown-toggle"
50 50
                 href="#"

+ 1
- 1
src/components/timeshare/buy/buyPage.vue Visa fil

@@ -90,7 +90,7 @@
90 90
                   <iframe
91 91
                     :src="mapUrl"
92 92
                     width="100%"
93
-                    height="450"
93
+                    height="600"
94 94
                     frameborder="0"
95 95
                     style="border-radius:10px"
96 96
                     allowfullscreen

+ 7
- 7
src/components/timeshare/resort/unitPage.vue Visa fil

@@ -1,10 +1,6 @@
1 1
 <template>
2 2
   <!-- eslint-disable max-len -->
3 3
   <div class="container">
4
-    <br />
5
-    <br />
6
-    <br />
7
-    <br />
8 4
     <div class="row">
9 5
       <div class="col-md-12 col-lg-8">
10 6
         <div class="title-box-d">
@@ -39,9 +35,13 @@
39 35
             <div class="title-box-d">
40 36
               <h3 class="title-d">Facilities</h3>
41 37
             </div>
42
-            <ul v-if="resort.prUnitFacilities">
43
-              <li v-for="(item, i) in resort.prUnitFacilities.split('\n')" :key="i">{{item}}</li>
44
-            </ul>
38
+            <div class="row" v-if="resort.prUnitFacilities">
39
+              <div
40
+                class="col-md-4"
41
+                v-for="(item, i) in resort.prUnitFacilities.split('\n')"
42
+                :key="i"
43
+              >{{item}}</div>
44
+            </div>
45 45
           </div>
46 46
         </div>
47 47
         <div class="col-md-6" v-if="week">

+ 48
- 77
src/components/timeshare/sell/sellPage.vue Visa fil

@@ -265,29 +265,18 @@
265 265
               <div class="form-group row">
266 266
                 <div class="col-md-6">
267 267
                   <p>Has your week been spacebanked for the current year?</p>
268
-                  <div class="form-check">
268
+                  <div class="custom-control custom-switch">
269 269
                     <input
270
-                      class="form-check-input"
271
-                      type="radio"
272
-                      name="spacebankedyear"
273
-                      id="spacebankedyearyes"
274
-                      value="Yes"
275
-                      @change="changeCurrentBanked"
270
+                      type="checkbox"
271
+                      class="custom-control-input"
272
+                      id="customSwitch2"
276 273
                       :checked="sellItem.currentYearBanked"
277
-                    />
278
-                    <label class="form-check-label" for="spacebankedyearyes">Yes</label>
279
-                  </div>
280
-                  <div class="form-check">
281
-                    <input
282
-                      class="form-check-input"
283
-                      type="radio"
284
-                      name="spacebankedyear"
285
-                      id="spacebankedyearno"
286
-                      value="No"
287
-                      :checked="!sellItem.currentYearBanked"
288 274
                       @change="changeCurrentBanked"
289 275
                     />
290
-                    <label class="form-check-label" for="spacebankedyearno">No</label>
276
+                    <label
277
+                      class="custom-control-label"
278
+                      for="customSwitch2"
279
+                    >{{sellItem.currentYearBanked ? 'Yes' : 'No'}}</label>
291 280
                   </div>
292 281
                 </div>
293 282
                 <div class="col-md-6">
@@ -329,27 +318,18 @@
329 318
               class="col-form-label col-md-8"
330 319
             >1.1 All levy amounts for the current cycle have been paid in full</label>
331 320
             <div class="col-md-4">
332
-              <div class="form-check form-check-inline">
321
+              <div class="custom-control custom-switch">
333 322
                 <input
334
-                  class="form-check-input"
335
-                  type="radio"
336
-                  name="paid"
337
-                  value="Yes"
323
+                  type="checkbox"
324
+                  class="custom-control-input"
325
+                  id="customSwitch3"
338 326
                   :checked="sellItem.leviesPaidInFull"
339
-                  @change="changeLeviesPaidInFull()"
340
-                />
341
-                <label class="form-check-label" for="paid">Yes</label>
342
-              </div>
343
-              <div class="form-check form-check-inline">
344
-                <input
345
-                  class="form-check-input"
346
-                  type="radio"
347
-                  name="paid"
348
-                  value="No"
349
-                  :checked="!sellItem.leviesPaidInFull"
350
-                  @change="changeLeviesPaidInFull()"
327
+                  @change="changeLeviesPaidInFull"
351 328
                 />
352
-                <label class="form-check-label" for="paid">No</label>
329
+                <label
330
+                  class="custom-control-label"
331
+                  for="customSwitch3"
332
+                >{{sellItem.leviesPaidInFull ? 'Yes' : 'No'}}</label>
353 333
               </div>
354 334
             </div>
355 335
           </div>
@@ -362,27 +342,18 @@
362 342
               class="col-form-label col-md-8"
363 343
             >1.2 My week is placed for rental this year</label>
364 344
             <div class="col-md-4">
365
-              <div class="form-check form-check-inline">
345
+              <div class="custom-control custom-switch">
366 346
                 <input
367
-                  class="form-check-input"
368
-                  type="radio"
369
-                  name="rental"
370
-                  value="Yes"
347
+                  type="checkbox"
348
+                  class="custom-control-input"
349
+                  id="customSwitch4"
371 350
                   :checked="sellItem.weekPlacedForRental"
372
-                  @change="changeWeekPlacedForRental()"
373
-                />
374
-                <label class="form-check-label" for="paidyes">Yes</label>
375
-              </div>
376
-              <div class="form-check form-check-inline">
377
-                <input
378
-                  class="form-check-input"
379
-                  type="radio"
380
-                  name="rental"
381
-                  value="No"
382
-                  :checked="!sellItem.weekPlacedForRental"
383
-                  @change="changeWeekPlacedForRental()"
351
+                  @change="changeWeekPlacedForRental"
384 352
                 />
385
-                <label class="form-check-label" for="paidno">No</label>
353
+                <label
354
+                  class="custom-control-label"
355
+                  for="customSwitch4"
356
+                >{{sellItem.weekPlacedForRental ? 'Yes' : 'No'}}</label>
386 357
               </div>
387 358
             </div>
388 359
           </div>
@@ -532,34 +503,34 @@
532 503
   </div>
533 504
 </template>
534 505
 <script>
535
-import { mapState, mapActions } from "vuex";
536
-import DetailIndividual from "../../user/timeshareIndividual.vue";
537
-import BankDetails from "../../shared/bankAccount.vue";
538
-import Address from "../../misc/address.vue";
506
+import { mapState, mapActions } from 'vuex';
507
+import DetailIndividual from '../../user/timeshareIndividual.vue';
508
+import BankDetails from '../../shared/bankAccount.vue';
509
+import Address from '../../misc/address.vue';
539 510
 
540 511
 export default {
541
-  name: "TimeshareToSell",
512
+  name: 'TimeshareToSell',
542 513
   components: { DetailIndividual, BankDetails, Address },
543 514
   created() {
544 515
     this.initTimeshare();
545 516
   },
546 517
   computed: {
547
-    ...mapState("timeshare", [
548
-      "resorts",
549
-      "regions",
550
-      "detailedRegion",
551
-      "seasons",
552
-      "result",
553
-      "resortBedrooms",
554
-      "maxSleep",
555
-      "bankedEntities",
556
-      "sellItem",
557
-      "agencies",
558
-      "agents"
518
+    ...mapState('timeshare', [
519
+      'resorts',
520
+      'regions',
521
+      'detailedRegion',
522
+      'seasons',
523
+      'result',
524
+      'resortBedrooms',
525
+      'maxSleep',
526
+      'bankedEntities',
527
+      'sellItem',
528
+      'agencies',
529
+      'agents',
559 530
     ]),
560 531
     refAgent() {
561 532
       return this.sellItem && this.sellItem.referedByAgent;
562
-    }
533
+    },
563 534
   },
564 535
   methods: {
565 536
     submitSale() {
@@ -586,10 +557,10 @@ export default {
586 557
     resortChange() {
587 558
       this.onResortChange({
588 559
         resortName: this.sellItem.resort.resortName,
589
-        resortCode: this.sellItem.resort.resortCode
560
+        resortCode: this.sellItem.resort.resortCode,
590 561
       });
591 562
 
592
-      if (this.sellItem && this.sellItem.resort === "Other") {
563
+      if (this.sellItem && this.sellItem.resort === 'Other') {
593 564
         this.sellItem.otherResortName = undefined;
594 565
         this.sellItem.otherResort = true;
595 566
       } else {
@@ -602,8 +573,8 @@ export default {
602 573
         ? this.sellItem.region.id
603 574
         : 1;
604 575
     },
605
-    ...mapActions("timeshare", ["initTimeshare", "onResortChange", "saveWeek"])
606
-  }
576
+    ...mapActions('timeshare', ['initTimeshare', 'onResortChange', 'saveWeek']),
577
+  },
607 578
 };
608 579
 </script>
609 580
 <style>

+ 1
- 1
vue.config.js Visa fil

@@ -2,7 +2,7 @@ module.exports = {
2 2
   devServer: {
3 3
     proxy: {
4 4
       '/api': {
5
-        target: 'http://localhost:57260',
5
+        target: 'http://192.168.6.188:5000',
6 6
         changeOrigin: true,
7 7
       },
8 8
     },

Laddar…
Avbryt
Spara