Quellcode durchsuchen

Style fixes & timeshare weeklists

master
30117125 vor 4 Jahren
Ursprung
Commit
0c8278df6e

+ 4
- 4
src/App.vue Datei anzeigen

22
   name: "app",
22
   name: "app",
23
   data() {
23
   data() {
24
     return {
24
     return {
25
-      isLandingPage: false,
25
+      isLandingPage: false
26
     };
26
     };
27
   },
27
   },
28
   components: {
28
   components: {
29
     SearchTab,
29
     SearchTab,
30
     NavBar,
30
     NavBar,
31
-    FooterSection,
31
+    FooterSection
32
   },
32
   },
33
 
33
 
34
   methods: {
34
   methods: {
37
     },
37
     },
38
     setLandingPage(item) {
38
     setLandingPage(item) {
39
       this.isLandingPage = item;
39
       this.isLandingPage = item;
40
-    },
41
-  },
40
+    }
41
+  }
42
 };
42
 };
43
 </script>
43
 </script>
44
 
44
 

+ 1
- 1
src/components/property/commercial/singleView/contentSection.vue Datei anzeigen

3
     <div class="container">
3
     <div class="container">
4
       <div class="row" id="resort-profile">
4
       <div class="row" id="resort-profile">
5
         <div class="col-md-4">
5
         <div class="col-md-4">
6
-          <div class="resPortfolioSection">
6
+          <div class="resPortfolioSection" style="margin-top:-5px">
7
             <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
7
             <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
8
               <div v-if="i < 3">
8
               <div v-if="i < 3">
9
                 <img
9
                 <img

+ 2
- 2
src/components/property/propertyCard.vue Datei anzeigen

15
                   <img :src="currentProperty.displayImage" alt="" />
15
                   <img :src="currentProperty.displayImage" alt="" />
16
                 </div>
16
                 </div>
17
                 <h1>{{ currentProperty.suburb }}</h1>
17
                 <h1>{{ currentProperty.suburb }}</h1>
18
-                <a href="#"> </a>
18
+                <p><strong>Property Reference</strong> #{{ currentProperty.id }}</p>
19
               </div>
19
               </div>
20
             </router-link>
20
             </router-link>
21
           </div>
21
           </div>
27
                   <img :src="currentProperty.displayImage" alt="" />
27
                   <img :src="currentProperty.displayImage" alt="" />
28
                 </div>
28
                 </div>
29
                 <h1>{{ currentProperty.suburb }}</h1>
29
                 <h1>{{ currentProperty.suburb }}</h1>
30
-                <a href="#"> </a>
30
+                <p><strong>Property Reference</strong> #{{ currentProperty.id }}</p>
31
               </div>
31
               </div>
32
             </router-link>
32
             </router-link>
33
           </div>
33
           </div>

+ 7
- 0
src/components/property/residential/singleView/contentSection.vue Datei anzeigen

34
           <h2>
34
           <h2>
35
             {{ property.propertyName }} / {{ property.addressLine1 }} {{ property.addressLine2 }}
35
             {{ property.propertyName }} / {{ property.addressLine1 }} {{ property.addressLine2 }}
36
           </h2>
36
           </h2>
37
+          <div class="container">
38
+            <div class="row">
39
+              <div class="col">
40
+                <p v-html="property.description"></p>
41
+              </div>
42
+            </div>
43
+          </div>
37
           <div>
44
           <div>
38
             <!-- <table class="table table-striped">
45
             <!-- <table class="table table-striped">
39
               <thead>
46
               <thead>

+ 1
- 1
src/components/property/residential/singleView/singleResidentialPage.vue Datei anzeigen

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <carouselSection v-if="propertyImages.length > 0" :propertyImages="propertyImages" />
3
     <carouselSection v-if="propertyImages.length > 0" :propertyImages="propertyImages" />
4
-    <main id="main" style="margin-top:-20px">
4
+    <main id="main">
5
       <contentSection
5
       <contentSection
6
         v-if="propertyImages.length > 0"
6
         v-if="propertyImages.length > 0"
7
         :property="property"
7
         :property="property"

+ 0
- 61
src/components/propertyManagement/rentalManagement/carouselSecitonNew.vue Datei anzeigen

1
-<template>
2
-  <section id="intro">
3
-    <div class="container">
4
-      <div class="row">
5
-        <div align="left" class="col-sm-12 col-md-8">
6
-          <div class="intro-content box">
7
-            <h2>Let us manage your property</h2>
8
-            <p>
9
-              At Uni-Vate we appreciate the significant and positive relationship between effective
10
-              Property Management and property prices. We understand that effective management not
11
-              only relies on administrative processes being intact, but also on a clear plan and
12
-              good communication with our clients based on respect, trust understanding, openness
13
-              and accountability. We have access to a comprehensive set of human and other resources
14
-              to ensure that your property is proactively managed to protect your investment and to
15
-              ensure the contentedness of occupants. We offer comprehensive property management
16
-              services, whether it being Sectional Title Management, HOA Management or Rental
17
-              Property Portfolio Management.
18
-            </p>
19
-            <a href="#" class="btn-solid-blue">LIST YOUR PROPERTY WITH UNI-VATE PROPERTIES</a>
20
-            <router-link v-if="!isLoggedIn" to="/user/login" class="btn-white-border"
21
-              >LOGIN TO OWNERS PORTAL</router-link
22
-            >
23
-          </div>
24
-        </div>
25
-      </div>
26
-    </div>
27
-
28
-    <carousel
29
-      :nav="false"
30
-      :dots="false"
31
-      :items="1"
32
-      :autoplay="true"
33
-      :loop="true"
34
-      :autoHeight="true"
35
-      id="intro-carousel"
36
-      style="margin-top:-50px;"
37
-      :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
38
-    >
39
-      <img class="item" src="/img/intro-carousel/home-1.jpg" alt="" />
40
-      <img class="item" src="/img/intro-carousel/16.jpg" alt="" />
41
-      <img class="item" src="/img/intro-carousel/comm-1.jpg" alt="" />
42
-      <img class="item" src="/img/intro-carousel/comm-4.jpg" alt="" />
43
-      <img class="item" src="/img/intro-carousel/3.jpg" alt="" />
44
-      <img class="item" src="/img/intro-carousel/home-5.jpg" alt="" />
45
-    </carousel>
46
-
47
-    <div id="intro-carousel" class="owl-carousel"></div>
48
-  </section>
49
-</template>
50
-
51
-<script>
52
-/* eslint-disable */
53
-import carousel from "vue-owl-carousel";
54
-export default {
55
-  components: {
56
-    carousel
57
-  }
58
-};
59
-</script>
60
-
61
-<style lang="scss" scoped></style>

+ 7
- 5
src/components/shared/navBar.vue Datei anzeigen

3
     <!-- <button type="button" id="mobile-nav-toggle">
3
     <!-- <button type="button" id="mobile-nav-toggle">
4
       <i class="fa fa-bars"></i>
4
       <i class="fa fa-bars"></i>
5
     </button> -->
5
     </button> -->
6
-    <div id="header-sticky-wrapper" class="sticky-wrapper is-sticky" style="min-height: 120px;">
7
-      <header id="header" style="width: 100%; position: fixed; top:0px; z-index: 50;">
6
+    <div>
7
+      <header
8
+        id="header"
9
+        style="width: 100%; position: fixed; top:0px; z-index: 50;min-height:120px"
10
+      >
8
         <div class="container">
11
         <div class="container">
9
           <div class="row">
12
           <div class="row">
10
             <div id="logo" class="col-md-3 col-xs-4 pull-left">
13
             <div id="logo" class="col-md-3 col-xs-4 pull-left">
16
                   style="height:100px;"
19
                   style="height:100px;"
17
               /></a>
20
               /></a>
18
             </div>
21
             </div>
19
-            <div class="col-md-9" id="topbar">
22
+            <div id="topbar" class="col-md-9">
20
               <div class="container clearFix">
23
               <div class="container clearFix">
21
                 <div class="social-links  ">
24
                 <div class="social-links  ">
22
                   <a href="mailto:info@univateproperties.co.za">
25
                   <a href="mailto:info@univateproperties.co.za">
38
                   </a>
41
                   </a>
39
                 </div>
42
                 </div>
40
               </div>
43
               </div>
41
-
42
               <nav id="nav-menu-container">
44
               <nav id="nav-menu-container">
43
                 <ul class="nav-menu sf-js-enabled sf-arrows">
45
                 <ul class="nav-menu sf-js-enabled sf-arrows">
44
                   <li class="menu-has-children">
46
                   <li class="menu-has-children">
383
   }
385
   }
384
 
386
 
385
   #header {
387
   #header {
386
-    min-height: 145px;
388
+    min-height: 120px;
387
   }
389
   }
388
 }
390
 }
389
 
391
 

+ 23
- 0
src/components/shared/navBarNew.vue Datei anzeigen

1
+<template>
2
+  <div id="header-sticky-wrapper" class="sticky-wrapper is-sticky" style="min-height: 120px;">
3
+    <div class="container">
4
+      <div class="row">
5
+        <div id="logo" class="col-md-3 col-xs-4 pull-left">
6
+          <a href="/">
7
+            <img
8
+              class="img-fluid"
9
+              src="/img/logos/UVProp.png"
10
+              alt="UVProp logo"
11
+              style="height:100px;"
12
+          /></a>
13
+        </div>
14
+      </div>
15
+    </div>
16
+  </div>
17
+</template>
18
+
19
+<script>
20
+export default {};
21
+</script>
22
+
23
+<style lang="scss" scoped></style>

+ 4
- 3
src/components/timeshare/buy/latestWeeks.vue Datei anzeigen

3
     <div class="container">
3
     <div class="container">
4
       <div v-if="boolLoaded" class="row">
4
       <div v-if="boolLoaded" class="row">
5
         <div v-for="week in latestWeeks" :key="week.id" class="col-lg-3 col-md-4 col-sm-6">
5
         <div v-for="week in latestWeeks" :key="week.id" class="col-lg-3 col-md-4 col-sm-6">
6
-          <div class="portfolio-item justify-content-md-center" style="min-height:430px">
7
-            <img :src="week.image" alt="" />
6
+          <div class="portfolio-item justify-content-md-center my-3" style="min-height:430px">
7
+            <img :src="week.image" alt="" style="max-height: 250px" />
8
             <div class="my-3">
8
             <div class="my-3">
9
               <h4>{{ week.resort.resortName }}</h4>
9
               <h4>{{ week.resort.resortName }}</h4>
10
               <p>
10
               <p>
11
                 <strong>Week</strong> {{ week.weekNumber }} &nbsp;|&nbsp;
11
                 <strong>Week</strong> {{ week.weekNumber }} &nbsp;|&nbsp;
12
                 <strong>Season</strong> Peak <br />
12
                 <strong>Season</strong> Peak <br />
13
-                <strong>Levy</strong> R{{ week.levyAmount }}
13
+                <strong>Levy</strong> R{{ week.levyAmount }} &nbsp;|&nbsp;
14
+                <strong>Week Reference</strong> #{{ week.id }}
14
               </p>
15
               </p>
15
               <h4>R{{ week.sellPrice }}</h4>
16
               <h4>R{{ week.sellPrice }}</h4>
16
               <router-link :to="'/resort/' + week.resort.resortCode" class="btn-white-border"
17
               <router-link :to="'/resort/' + week.resort.resortCode" class="btn-white-border"

+ 7
- 5
src/components/timeshare/buy/weekListComponent.vue Datei anzeigen

4
       <table class="table table-striped table-responsive">
4
       <table class="table table-striped table-responsive">
5
         <thead>
5
         <thead>
6
           <tr>
6
           <tr>
7
+            <th scope="col">Reference</th>
7
             <th scope="col">Unit</th>
8
             <th scope="col">Unit</th>
8
             <th scope="col">Module</th>
9
             <th scope="col">Module</th>
9
             <th scope="col">Bedrooms</th>
10
             <th scope="col">Bedrooms</th>
14
         </thead>
15
         </thead>
15
         <tbody>
16
         <tbody>
16
           <tr v-for="(item, i) in filteredWeeks" :key="i">
17
           <tr v-for="(item, i) in filteredWeeks" :key="i">
18
+            <td>#{{ item.id }}</td>
17
             <td>{{ item.unitNumber }}</td>
19
             <td>{{ item.unitNumber }}</td>
18
             <td>{{ item.weekNumber }}</td>
20
             <td>{{ item.weekNumber }}</td>
19
             <td>{{ item.bedrooms }}</td>
21
             <td>{{ item.bedrooms }}</td>
66
 export default {
68
 export default {
67
   props: {
69
   props: {
68
     resortCode: undefined,
70
     resortCode: undefined,
69
-    userId: undefined,
71
+    userId: undefined
70
   },
72
   },
71
   components: {},
73
   components: {},
72
   computed: {
74
   computed: {
73
     ...mapState("weekList", ["weeks", "status"]),
75
     ...mapState("weekList", ["weeks", "status"]),
74
     ...mapGetters({
76
     ...mapGetters({
75
       filteredWeeks: "weekList/filteredWeeks",
77
       filteredWeeks: "weekList/filteredWeeks",
76
-      getRegions: "weekList/getRegions",
77
-    }),
78
+      getRegions: "weekList/getRegions"
79
+    })
78
   },
80
   },
79
   mounted() {
81
   mounted() {
80
     if (this.resortCode) {
82
     if (this.resortCode) {
86
     View(item) {
88
     View(item) {
87
       this.$router.push(`/resort/${item.resort.resortCode}/${item.unitNumber}`);
89
       this.$router.push(`/resort/${item.resort.resortCode}/${item.unitNumber}`);
88
     },
90
     },
89
-    ...mapActions("weekList", ["getWeeks", "applyResortFilter"]),
90
-  },
91
+    ...mapActions("weekList", ["getWeeks", "applyResortFilter"])
92
+  }
91
 };
93
 };
92
 </script>
94
 </script>
93
 
95
 

+ 8
- 8
src/components/timeshare/resort/unit/summarySection.vue Datei anzeigen

8
       </div>
8
       </div>
9
     </div>
9
     </div>
10
     <div class="row mt-5">
10
     <div class="row mt-5">
11
-      <div class="col-md-6">
11
+      <div class="col-md-12 col-lg-4">
12
         <gallerySection :images="images" />
12
         <gallerySection :images="images" />
13
       </div>
13
       </div>
14
-      <div class="col-md-6 summarySection">
14
+      <div class="col-md-12 col-lg-8 summarySection">
15
         <h3>Summary</h3>
15
         <h3>Summary</h3>
16
-
16
+        <div class="row">
17
+          <div align="center" class="col-md-12">#{{ week.id }}</div>
18
+        </div>
17
         <div class="row mb-3">
19
         <div class="row mb-3">
18
           <div align="center" class="col">
20
           <div align="center" class="col">
19
             <label for="unit">Unit: </label>
21
             <label for="unit">Unit: </label>
35
             <h5>R {{ formatPrice(week ? week.sellPrice : 0) }}</h5>
37
             <h5>R {{ formatPrice(week ? week.sellPrice : 0) }}</h5>
36
           </div>
38
           </div>
37
         </div>
39
         </div>
38
-
39
-        <div class="row mt-5"></div>
40
-        <div class="row mt-3">
41
-          <div class="col">
40
+        <div class="row mt-5">
41
+          <div align="center" class="col-md-6">
42
             <a href="javascript:history.back()" class="btn-white-border">Back</a>
42
             <a href="javascript:history.back()" class="btn-white-border">Back</a>
43
           </div>
43
           </div>
44
-          <div class="col">
44
+          <div align="center" class="col-md-6">
45
             <button
45
             <button
46
               class="btn-solid-blue"
46
               class="btn-solid-blue"
47
               style="color:white"
47
               style="color:white"

+ 64
- 86
src/components/timeshare/sell/contentSection.vue Datei anzeigen

19
                   @change="changeRef"
19
                   @change="changeRef"
20
                 />
20
                 />
21
                 <label class="custom-control-label" for="customSwitch1">
21
                 <label class="custom-control-label" for="customSwitch1">
22
-                  {{
23
-                  refAgent ? "Yes" : "No"
24
-                  }}
22
+                  {{ refAgent ? "Yes" : "No" }}
25
                 </label>
23
                 </label>
26
                 <div class="refbyAgent" :class="{ 'refbyAgent--clicked': refAgent }">
24
                 <div class="refbyAgent" :class="{ 'refbyAgent--clicked': refAgent }">
27
                   <div class="col-md-6" v-if="refAgent">
25
                   <div class="col-md-6" v-if="refAgent">
32
                       name="agency"
30
                       name="agency"
33
                       v-model="sellItem.agencyId"
31
                       v-model="sellItem.agencyId"
34
                     >
32
                     >
35
-                      <option
36
-                        v-for="(item, i) in agencies"
37
-                        :key="i"
38
-                        :value="item.id"
39
-                      >{{ item.agencyName }}</option>
33
+                      <option v-for="(item, i) in agencies" :key="i" :value="item.id">{{
34
+                        item.agencyName
35
+                      }}</option>
40
                     </select>
36
                     </select>
41
                   </div>
37
                   </div>
42
                   <div class="col-md-6" v-if="refAgent">
38
                   <div class="col-md-6" v-if="refAgent">
68
             <div class="form-row">
64
             <div class="form-row">
69
               <div class="form-group col-md-6">
65
               <div class="form-group col-md-6">
70
                 <div class="input-group">
66
                 <div class="input-group">
71
-                  <label
72
-                    v-if="!sellItem.region"
73
-                    class="uniSelectLabel"
74
-                    for="weekInfoRegionSelect"
75
-                  >REGION</label>
67
+                  <label v-if="!sellItem.region" class="uniSelectLabel" for="weekInfoRegionSelect"
68
+                    >REGION</label
69
+                  >
76
 
70
 
77
                   <select
71
                   <select
78
                     id="weekInfoRegionSelect"
72
                     id="weekInfoRegionSelect"
82
                     style="font-size: 15px"
76
                     style="font-size: 15px"
83
                   >
77
                   >
84
                     <option v-for="(region, r) in regions" :key="r" :value="region">
78
                     <option v-for="(region, r) in regions" :key="r" :value="region">
85
-                      {{
86
-                      region.regionName
87
-                      }}
79
+                      {{ region.regionName }}
88
                     </option>
80
                     </option>
89
                   </select>
81
                   </select>
90
                 </div>
82
                 </div>
102
               </div>
94
               </div>
103
               <div class="form-group col-md-6">
95
               <div class="form-group col-md-6">
104
                 <div class="input-group">
96
                 <div class="input-group">
105
-                  <label
106
-                    v-if="!sellItem.resort"
107
-                    class="uniSelectLabel"
108
-                    for="weekInfoResortSelect"
109
-                  >RESORT NAME</label>
97
+                  <label v-if="!sellItem.resort" class="uniSelectLabel" for="weekInfoResortSelect"
98
+                    >RESORT NAME</label
99
+                  >
110
 
100
 
111
                   <select
101
                   <select
112
                     id="weekInfoResortSelect"
102
                     id="weekInfoResortSelect"
116
                   >
106
                   >
117
                     <option value="Other">Other</option>
107
                     <option value="Other">Other</option>
118
                     <option v-for="(resort, r) in filteredResort" :key="r" :value="resort">
108
                     <option v-for="(resort, r) in filteredResort" :key="r" :value="resort">
119
-                      {{
120
-                      resort.resortName
121
-                      }}
109
+                      {{ resort.resortName }}
122
                     </option>
110
                     </option>
123
                   </select>
111
                   </select>
124
                 </div>
112
                 </div>
196
                 <div class="validation"></div>
184
                 <div class="validation"></div>
197
               </div>
185
               </div>
198
               <div class="form-group col-md-6">
186
               <div class="form-group col-md-6">
199
-                <label v-if="!sellItem.bedrooms" class="uniSelectLabel" for="region">BEDROOM/S</label>
187
+                <label v-if="!sellItem.bedrooms" class="uniSelectLabel" for="region"
188
+                  >BEDROOM/S</label
189
+                >
200
 
190
 
201
                 <select
191
                 <select
202
                   class="form-control uniSelect"
192
                   class="form-control uniSelect"
209
                 <div class="validation"></div>
199
                 <div class="validation"></div>
210
               </div>
200
               </div>
211
               <div class="form-group col-md-6">
201
               <div class="form-group col-md-6">
212
-                <label v-if="!sellItem.maxSleep" class="uniSelectLabel" for="region">SLEEP MAX</label>
202
+                <label v-if="!sellItem.maxSleep" class="uniSelectLabel" for="region"
203
+                  >SLEEP MAX</label
204
+                >
213
 
205
 
214
                 <select
206
                 <select
215
                   class="form-control uniSelect"
207
                   class="form-control uniSelect"
247
                   @change="changeCurrentBanked"
239
                   @change="changeCurrentBanked"
248
                 />
240
                 />
249
                 <label class="custom-control-label" for="customSwitch2">
241
                 <label class="custom-control-label" for="customSwitch2">
250
-                  {{
251
-                  sellItem.currentYearBanked ? "Yes" : "No"
252
-                  }}
242
+                  {{ sellItem.currentYearBanked ? "Yes" : "No" }}
253
                 </label>
243
                 </label>
254
                 <div
244
                 <div
255
                   class="spacebanked1"
245
                   class="spacebanked1"
256
                   :class="{ 'spacebanked1--clicked': sellItem.currentYearBanked }"
246
                   :class="{ 'spacebanked1--clicked': sellItem.currentYearBanked }"
257
                 >
247
                 >
258
                   <div class="col-md-6">
248
                   <div class="col-md-6">
259
-                    <label
260
-                      for="If yes, please confirm with whom"
261
-                      v-if="sellItem.currentYearBanked"
262
-                    >Please confirm with whom</label>
249
+                    <label for="If yes, please confirm with whom" v-if="sellItem.currentYearBanked"
250
+                      >Please confirm with whom</label
251
+                    >
263
                     <select
252
                     <select
264
                       class="form-control uniSelect"
253
                       class="form-control uniSelect"
265
                       name="spacebankOwner"
254
                       name="spacebankOwner"
493
                     v-if="!indiv.bankingDetails.bank"
482
                     v-if="!indiv.bankingDetails.bank"
494
                     class="uniSelectLabel"
483
                     class="uniSelectLabel"
495
                     for="weekInfoRegionSelect"
484
                     for="weekInfoRegionSelect"
496
-                  >BANK</label>
485
+                    >BANK</label
486
+                  >
497
 
487
 
498
                   <select
488
                   <select
499
                     id="weekInfoRegionSelect"
489
                     id="weekInfoRegionSelect"
503
                     v-model="indiv.bankingDetails.bank"
493
                     v-model="indiv.bankingDetails.bank"
504
                   >
494
                   >
505
                     <option v-for="bank in banks" :key="bank.id" :value="bank">
495
                     <option v-for="bank in banks" :key="bank.id" :value="bank">
506
-                      {{
507
-                      bank.name
508
-                      }}
496
+                      {{ bank.name }}
509
                     </option>
497
                     </option>
510
                   </select>
498
                   </select>
511
                 </div>
499
                 </div>
551
                 class="form-group col-md-12"
539
                 class="form-group col-md-12"
552
                 style="border:solid;border-width:2px; border-color:rgb(27, 117, 187); border-radius: 3px"
540
                 style="border:solid;border-width:2px; border-color:rgb(27, 117, 187); border-radius: 3px"
553
               >
541
               >
554
-                <p
555
-                  style="text-align: left; margin:auto; padding:10px"
556
-                >1. With respect to my timeshare module/week, I confirm that:</p>
542
+                <p style="text-align: left; margin:auto; padding:10px">
543
+                  1. With respect to my timeshare module/week, I confirm that:
544
+                </p>
557
                 <div class="validation"></div>
545
                 <div class="validation"></div>
558
               </div>
546
               </div>
559
             </div>
547
             </div>
572
                     @change="changeLeviesPaidInFull"
560
                     @change="changeLeviesPaidInFull"
573
                   />
561
                   />
574
                   <label class="custom-control-label" for="customSwitch3">
562
                   <label class="custom-control-label" for="customSwitch3">
575
-                    {{
576
-                    sellItem.leviesPaidInFull ? "Yes" : "No"
577
-                    }}
563
+                    {{ sellItem.leviesPaidInFull ? "Yes" : "No" }}
578
                   </label>
564
                   </label>
579
                 </div>
565
                 </div>
580
                 <div class="validation"></div>
566
                 <div class="validation"></div>
595
                     @change="changeWeekPlacedForRental"
581
                     @change="changeWeekPlacedForRental"
596
                   />
582
                   />
597
                   <label class="custom-control-label" for="customSwitch4">
583
                   <label class="custom-control-label" for="customSwitch4">
598
-                    {{
599
-                    sellItem.weekPlacedForRental ? "Yes" : "No"
600
-                    }}
584
+                    {{ sellItem.weekPlacedForRental ? "Yes" : "No" }}
601
                   </label>
585
                   </label>
602
                 </div>
586
                 </div>
603
                 <div class="validation"></div>
587
                 <div class="validation"></div>
716
               </div>
700
               </div>
717
             </div>
701
             </div>
718
             <div class="text-center col-12">
702
             <div class="text-center col-12">
719
-              <button class="btn-solid-blue" v-if="!sellItem.id" @click="submitSale()">SUBMIT</button>
703
+              <button class="btn-solid-blue" v-if="!sellItem.id" @click="submitSale()">
704
+                SUBMIT
705
+              </button>
720
               <button class="btn-solid-blue" v-else @click="newSale()">NEW WEEK</button>
706
               <button class="btn-solid-blue" v-else @click="newSale()">NEW WEEK</button>
721
             </div>
707
             </div>
722
             <div class="text-center col-12">
708
             <div class="text-center col-12">
723
-              <button class="btn-solid-blue" v-if="sellItem.id > 0" @click="paygateTest()">PayGate</button>
709
+              <button class="btn-solid-blue" @click="paygateRedirect()">
710
+                PayGate
711
+              </button>
724
             </div>
712
             </div>
725
             <br />
713
             <br />
726
             <br />
714
             <br />
746
   name: "TimeshareToSell",
734
   name: "TimeshareToSell",
747
   props: {
735
   props: {
748
     weekId: {
736
     weekId: {
749
-      default: 0,
750
-    },
737
+      default: 0
738
+    }
751
   },
739
   },
752
   data() {
740
   data() {
753
     return {
741
     return {
754
       wait: false,
742
       wait: false,
755
-      userLoggedIn: Log.isLoggedIn(),
743
+      userLoggedIn: Log.isLoggedIn()
756
     };
744
     };
757
   },
745
   },
758
   components: {
746
   components: {
759
     addressAutoComplete,
747
     addressAutoComplete,
760
-    Alert,
748
+    Alert
761
   },
749
   },
762
   mounted() {
750
   mounted() {
763
     if (this.sellItem.id) {
751
     if (this.sellItem.id) {
783
       "sellItem",
771
       "sellItem",
784
       "agencies",
772
       "agencies",
785
       "agents",
773
       "agents",
786
-      "getTemplate",
774
+      "getTemplate"
787
     ]),
775
     ]),
788
     ...mapState("individual", ["indiv"]),
776
     ...mapState("individual", ["indiv"]),
789
     ...mapState("authentication", ["isLoggedIn"]),
777
     ...mapState("authentication", ["isLoggedIn"]),
790
     ...mapGetters({
778
     ...mapGetters({
791
       user: "authentication/getUser",
779
       user: "authentication/getUser",
792
-      person: "authentication/getPerson",
780
+      person: "authentication/getPerson"
793
     }),
781
     }),
794
     ...mapState("bank", ["banks"]),
782
     ...mapState("bank", ["banks"]),
795
     refAgent() {
783
     refAgent() {
797
     },
785
     },
798
     filteredResort() {
786
     filteredResort() {
799
       let list = [];
787
       let list = [];
800
-      if (
801
-        this.sellItem &&
802
-        this.sellItem.region &&
803
-        this.sellItem.region.regionCode
804
-      ) {
788
+      if (this.sellItem && this.sellItem.region && this.sellItem.region.regionCode) {
805
         const item = this.detailedRegion.find(
789
         const item = this.detailedRegion.find(
806
-          (region) =>
807
-            region.region.regionCode === this.sellItem.region.regionCode
790
+          region => region.region.regionCode === this.sellItem.region.regionCode
808
         );
791
         );
809
         if (item) {
792
         if (item) {
810
           list = item.children;
793
           list = item.children;
812
       } else {
795
       } else {
813
         list = this.resorts;
796
         list = this.resorts;
814
       }
797
       }
815
-      return _.sortBy(list, (x) => x.resortName);
798
+      return _.sortBy(list, x => x.resortName);
816
     },
799
     },
817
     isLoggedIn() {
800
     isLoggedIn() {
818
       return this.user && this.person;
801
       return this.user && this.person;
819
     },
802
     },
820
     displayNotDeletedAgents() {
803
     displayNotDeletedAgents() {
821
       var notDeletedArr = [];
804
       var notDeletedArr = [];
822
-      this.agents.forEach((agent) => {
805
+      this.agents.forEach(agent => {
823
         if (!agent.isDeleted) {
806
         if (!agent.isDeleted) {
824
           if (agent.agencyId === this.sellItem.agencyId) {
807
           if (agent.agencyId === this.sellItem.agencyId) {
825
             notDeletedArr.push(agent);
808
             notDeletedArr.push(agent);
827
         }
810
         }
828
       });
811
       });
829
       return notDeletedArr;
812
       return notDeletedArr;
830
-    },
813
+    }
831
   },
814
   },
832
   methods: {
815
   methods: {
833
     ...mapActions("individual", ["getIndividual"]),
816
     ...mapActions("individual", ["getIndividual"]),
834
-    ...mapActions("timeshare", [
835
-      "initTimeshare",
836
-      "onResortChange",
837
-      "saveWeek",
838
-      "getBlankWeek",
839
-    ]),
817
+    ...mapActions("timeshare", ["initTimeshare", "onResortChange", "saveWeek", "getBlankWeek"]),
840
     ...mapActions("payment", ["addPayment"]),
818
     ...mapActions("payment", ["addPayment"]),
841
     ...mapActions("bank", ["getBanks"]),
819
     ...mapActions("bank", ["getBanks"]),
842
     newSale() {
820
     newSale() {
846
     submitSale() {
824
     submitSale() {
847
       if (this.userLoggedIn) {
825
       if (this.userLoggedIn) {
848
         this.sellItem.ownerObject = this.indiv;
826
         this.sellItem.ownerObject = this.indiv;
849
-        this.saveWeek(this.sellItem).then((fulfilled) => {
850
-          this.paygateTest();
851
-        });
827
+        console.log(this.sellItem);
828
+
829
+        // this.saveWeek(this.sellItem).then(fulfilled => {
830
+        //   this.paygateRedirect();
831
+        // });
852
       } else this.$router.push("/user/login");
832
       } else this.$router.push("/user/login");
853
     },
833
     },
854
-    paygateTest() {
834
+    paygateRedirect() {
855
       var paymentObj = {
835
       var paymentObj = {
856
-        timeshareWeekId: 3, // this.sellItem.Id,
836
+        timeshareWeekId: this.sellItem.id, // this.sellItem.Id,
857
         propertyId: 0,
837
         propertyId: 0,
858
-        creatydById: 14, //Log.getUser().id,
838
+        creatydById: Log.getUser().id, //Log.getUser().id,
859
         amount: 380.0,
839
         amount: 380.0,
860
         paymentStatus: "",
840
         paymentStatus: "",
861
-        paymentToken: "",
841
+        paymentToken: ""
862
       };
842
       };
863
 
843
 
864
-      this.addPayment(paymentObj).then((res) => {
844
+      this.addPayment(paymentObj).then(res => {
865
         this.$router.push({
845
         this.$router.push({
866
           name: "PaymentGateway",
846
           name: "PaymentGateway",
867
           params: {
847
           params: {
868
             paymentReqId: res.PAY_REQUEST_ID,
848
             paymentReqId: res.PAY_REQUEST_ID,
869
-            checksum: res.CHECKSUM,
870
-          },
849
+            checksum: res.CHECKSUM
850
+          }
871
         });
851
         });
872
       });
852
       });
873
     },
853
     },
892
     resortChange() {
872
     resortChange() {
893
       this.onResortChange({
873
       this.onResortChange({
894
         resortName: this.sellItem.resort.resortName,
874
         resortName: this.sellItem.resort.resortName,
895
-        resortCode: this.sellItem.resort.resortCode,
875
+        resortCode: this.sellItem.resort.resortCode
896
       });
876
       });
897
 
877
 
898
       if (this.sellItem && this.sellItem.resort === "Other") {
878
       if (this.sellItem && this.sellItem.resort === "Other") {
904
       }
884
       }
905
     },
885
     },
906
     regionChange() {
886
     regionChange() {
907
-      this.sellItem.regionId = this.sellItem.region
908
-        ? this.sellItem.region.id
909
-        : 1;
887
+      this.sellItem.regionId = this.sellItem.region ? this.sellItem.region.id : 1;
910
     },
888
     },
911
     UpdateAddress(address) {
889
     UpdateAddress(address) {
912
       this.indiv.address.streetNumber = address.streetNumber;
890
       this.indiv.address.streetNumber = address.streetNumber;
915
       this.indiv.address.city = address.city;
893
       this.indiv.address.city = address.city;
916
       this.indiv.address.suburb = address.suburb;
894
       this.indiv.address.suburb = address.suburb;
917
       this.indiv.address.postalCode = address.postalCode;
895
       this.indiv.address.postalCode = address.postalCode;
918
-    },
919
-  },
896
+    }
897
+  }
920
 };
898
 };
921
 </script>
899
 </script>
922
 
900
 

+ 2
- 2
src/main.js Datei anzeigen

31
 };
31
 };
32
 Vue.config.productionTip = false;
32
 Vue.config.productionTip = false;
33
 //axios.defaults.baseURL = "http://localhost:57260";
33
 //axios.defaults.baseURL = "http://localhost:57260";
34
-axios.defaults.baseURL = "http://training.provision-sa.com:82";
35
-//axios.defaults.baseURL = "http://localhost:8080/";
34
+//axios.defaults.baseURL = "http://training.provision-sa.com:82";
35
+axios.defaults.baseURL = "http://localhost:8080/";
36
 
36
 
37
 Vue.prototype.$axios = axios;
37
 Vue.prototype.$axios = axios;
38
 
38
 

+ 2
- 2
vue.config.js Datei anzeigen

2
   devServer: {
2
   devServer: {
3
     proxy: {
3
     proxy: {
4
       "/api": {
4
       "/api": {
5
-        //target: "http://localhost:57260/",
6
-        target: "http://training.provision-sa.com:82",
5
+        target: "http://localhost:57260/",
6
+        //target: "http://training.provision-sa.com:82",
7
         changeOrigin: true
7
         changeOrigin: true
8
       },
8
       },
9
       "/nph-srep": {
9
       "/nph-srep": {

Laden…
Abbrechen
Speichern