Bladeren bron

Add Consent to Timeshare Buy

master
Brian Conway 2 jaren geleden
bovenliggende
commit
462cf024fc

+ 92
- 53
src/components/processFlow/makeOffer.vue Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <!-- eslint-disable max-len -->
3
-  <div style="padding-left:30px; padding-right:30px; padding-bottom:30px;">
3
+  <div style="padding-left: 30px; padding-right: 30px; padding-bottom: 30px;">
4 4
     <div v-if="!isLoggedIn">
5 5
       <div class="container col-md-10">
6 6
         <p class="alert myError">Please Login to add a property</p>
@@ -8,7 +8,7 @@
8 8
       <button
9 9
         type="button"
10 10
         class="btn btn-b-n"
11
-        style="width: 150px; height:40px;"
11
+        style="width: 150px; height: 40px;"
12 12
         data-dismiss="modal"
13 13
       >
14 14
         OK
@@ -19,23 +19,29 @@
19 19
         <br />
20 20
         <div v-if="isProperty">
21 21
           <div class="form-group row">
22
-            <div style="text-align:left">
22
+            <div style="text-align: left;">
23 23
               <div class="title-box-d">
24 24
                 <h3 class="title-d">{{ item.shortDescription }}</h3>
25 25
               </div>
26 26
             </div>
27 27
           </div>
28 28
           <div class="form-group row">
29
-            <div class="col-md-12" style="text-align:left">
29
+            <div class="col-md-12" style="text-align: left;">
30 30
               <div v-html="item.description"></div>
31 31
             </div>
32 32
           </div>
33 33
         </div>
34 34
         <div v-if="!isProperty">
35 35
           <div class="form-group row">
36
-            <div style="text-align:left">
36
+            <div style="text-align: left;">
37 37
               <div class="intro-content">
38
-                <h2>{{ item.resort.resortName ? item.resort.resortName : item.resort }}</h2>
38
+                <h2>
39
+                  {{
40
+                    item.resort.resortName
41
+                      ? item.resort.resortName
42
+                      : item.resort
43
+                  }}
44
+                </h2>
39 45
               </div>
40 46
             </div>
41 47
           </div>
@@ -80,11 +86,30 @@
80 86
             ></textarea>
81 87
           </div>
82 88
         </div>
89
+        <div align="left" class="custom-control custom-switch mb-2">
90
+          <div class="row">
91
+            <div align="center" class="col">
92
+              <label class="mr-5">
93
+                I wish to receive future listings and special campaigns?
94
+              </label>
95
+              <input
96
+                type="checkbox"
97
+                class="custom-control-input"
98
+                id="customSwitch1"
99
+                :checked="item.consent"
100
+                @change="changeConsent"
101
+              />
102
+              <label class="custom-control-label" for="customSwitch1">
103
+                {{ item.consent ? 'Yes' : 'No' }}
104
+              </label>
105
+            </div>
106
+          </div>
107
+        </div>
83 108
         <div class="form-group row">
84 109
           <div class="col-md-12">
85 110
             <p>
86
-              *Occupation for the current year is not guaranteed, Uni-Vate Properties will confirm
87
-              upon reply.
111
+              *Occupation for the current year is not guaranteed, Uni-Vate
112
+              Properties will confirm upon reply.
88 113
             </p>
89 114
           </div>
90 115
         </div>
@@ -92,7 +117,12 @@
92 117
       <div v-if="!isSaved" class="container">
93 118
         <div class="row">
94 119
           <div algin="center" class="col">
95
-            <button v-if="isMakeOffer" type="button" @click="SendOffer()" class="btn-solid-blue">
120
+            <button
121
+              v-if="isMakeOffer"
122
+              type="button"
123
+              @click="SendOffer()"
124
+              class="btn-white-border"
125
+            >
96 126
               Send Offer
97 127
             </button>
98 128
             <button
@@ -100,7 +130,7 @@
100 130
               type="submit"
101 131
               @click="Accept()"
102 132
               class="btn btn-b-n"
103
-              style="width: 150px; height:40px;"
133
+              style="width: 150px; height: 40px;"
104 134
             >
105 135
               Accept
106 136
             </button>
@@ -109,7 +139,7 @@
109 139
               type="button"
110 140
               @click="Decline()"
111 141
               class="btn btn-b-n"
112
-              style="width: 150px; height:40px;"
142
+              style="width: 150px; height: 40px;"
113 143
             >
114 144
               Decline
115 145
             </button>
@@ -133,7 +163,7 @@
133 163
         type="button"
134 164
         @click="Complete()"
135 165
         class="btn btn-b-n"
136
-        style="width: 150px; height:40px;"
166
+        style="width: 150px; height: 40px;"
137 167
       >
138 168
         Complete
139 169
       </button>
@@ -141,14 +171,16 @@
141 171
         <div class="form-group row">
142 172
           <br />
143 173
           <div class="container col-md-10">
144
-            <p :class="[isInfo ? 'alert myInfo' : 'alert myWarning']">{{ message }}</p>
174
+            <p :class="[isInfo ? 'alert myInfo' : 'alert myWarning']">
175
+              {{ message }}
176
+            </p>
145 177
           </div>
146 178
         </div>
147 179
         <button
148 180
           v-if="isSaved"
149 181
           type="button"
150 182
           class="btn btn-b-n"
151
-          style="width: 150px; height:40px;"
183
+          style="width: 150px; height: 40px;"
152 184
           data-dismiss="modal"
153 185
         >
154 186
           OK
@@ -160,86 +192,93 @@
160 192
 
161 193
 <script>
162 194
 /* eslint-disable */
163
-import { mapState, mapActions } from "vuex";
164
-import Log from "../../assets/Log";
195
+import { mapState, mapActions } from 'vuex'
196
+import Log from '../../assets/Log'
165 197
 
166 198
 export default {
167
-  name: "MakeOffer",
199
+  name: 'MakeOffer',
168 200
   props: {
169 201
     isMakeOffer: Boolean,
170 202
     isProperty: Boolean,
171 203
     canEdit: Boolean,
172 204
     item: Object,
173 205
     bidId: Number,
174
-    updateItem: Function
206
+    updateItem: Function,
175 207
   },
176 208
   data() {
177 209
     return {
178 210
       isDecline: false,
179 211
       isSaved: false,
180
-      message: "",
212
+      message: '',
181 213
       isInfo: true,
182
-      isLoggedIn: Log.isLoggedIn()
183
-    };
214
+      isLoggedIn: Log.isLoggedIn(),
215
+    }
184 216
   },
185 217
   methods: {
186
-    ...mapActions("bid", ["getTemplate", "saveBid", "acceptBid", "declineBid"]),
218
+    ...mapActions('bid', ['getTemplate', 'saveBid', 'acceptBid', 'declineBid']),
187 219
     SendOffer() {
188 220
       //alert("Under Development");
189
-      this.bidItem.id = 0;
190
-      this.bidItem.userId = this.item.userId;
191
-      this.bidItem.amount = this.item.offer;
192
-      this.bidItem.comment = this.item.comment;
221
+      this.bidItem.id = 0
222
+      this.bidItem.userId = this.item.userId
223
+      this.bidItem.amount = this.item.offer
224
+      this.bidItem.comment = this.item.comment
225
+      this.bidItem.consent = this.item.consent
193 226
       if (this.isProperty) {
194
-        this.bidItem.propertyId = this.item.id;
227
+        this.bidItem.propertyId = this.item.id
195 228
       } else {
196
-        this.bidItem.timeshareWeekId = this.item.id;
229
+        this.bidItem.timeshareWeekId = this.item.id
197 230
         if (this.item.isTender) {
198
-          this.bidItem.tenderWeek = this.item;
231
+          this.bidItem.tenderWeek = this.item
199 232
         }
200 233
       }
201
-      this.saveBid(this.bidItem);
234
+      this.saveBid(this.bidItem)
202 235
 
203
-      this.isSaved = true;
204
-      this.isInfo = true;
205
-      this.message = "Offer was submitted.";
236
+      this.isSaved = true
237
+      this.isInfo = true
238
+      this.message = 'Offer was submitted.'
239
+    },
240
+    changeConsent() {
241
+      this.item.consent = !this.item.consent
206 242
     },
207 243
     Accept() {
208
-      this.acceptBid(this.item.id);
209
-      this.isSaved = true;
210
-      this.message = "Offer Accepted.";
211
-      this.isInfo = true;
244
+      this.acceptBid(this.item.id)
245
+      this.isSaved = true
246
+      this.message = 'Offer Accepted.'
247
+      this.isInfo = true
212 248
     },
213 249
     Decline() {
214
-      this.isDecline = true;
250
+      this.isDecline = true
215 251
     },
216 252
     Complete() {
217
-      this.isDecline = false;
253
+      this.isDecline = false
218 254
 
219 255
       const decline = {
220 256
         id: this.item.id,
221
-        comment: this.item.declineReason
222
-      };
257
+        comment: this.item.declineReason,
258
+      }
223 259
 
224
-      this.declineBid(decline);
225
-      this.isSaved = true;
226
-      this.message = "Offer Declined.";
227
-      this.isInfo = false;
228
-    }
260
+      this.declineBid(decline)
261
+      this.isSaved = true
262
+      this.message = 'Offer Declined.'
263
+      this.isInfo = false
264
+    },
229 265
   },
230 266
   computed: {
231
-    ...mapState("bid", ["bidItem"])
267
+    ...mapState('bid', ['bidItem']),
268
+  },
269
+  created() {
270
+    this.item.consent = true
232 271
   },
233 272
   mounted() {
234
-    this.getTemplate();
273
+    this.getTemplate()
235 274
   },
236 275
   watch: {
237 276
     item() {
238
-      this.isSaved = false;
239
-      this.canEdit = this.item.statusCode === "E1";
240
-    }
241
-  }
242
-};
277
+      this.isSaved = false
278
+      this.canEdit = this.item.statusCode === 'E1'
279
+    },
280
+  },
281
+}
243 282
 </script>
244 283
 
245 284
 <style lang="scss" scoped></style>

+ 56
- 48
src/components/timeshare/buy/weekListComponent.vue Bestand weergeven

@@ -25,14 +25,14 @@
25 25
             <td
26 26
               v-if="
27 27
                 item.arrivalDate === '0001-01-01T00:00:00' ||
28
-                  item.arrivalDate === '1753-01-01T00:00:00'
28
+                item.arrivalDate === '1753-01-01T00:00:00'
29 29
               "
30 30
             ></td>
31 31
             <td v-else>{{ item.arrivalDate | toDate }}</td>
32 32
             <td
33 33
               v-if="
34 34
                 item.departureDate === '0001-01-01T00:00:00' ||
35
-                  item.departureDate === '1753-01-01T00:00:00'
35
+                item.departureDate === '1753-01-01T00:00:00'
36 36
               "
37 37
             ></td>
38 38
             <td v-else>{{ item.departureDate | toDate }}</td>
@@ -53,8 +53,8 @@
53 53
               <button
54 54
                 :disabled="checkStatus(item)"
55 55
                 v-on:click="View(item)"
56
-                :class="checkStatus(item) ? 'btn-disabled' : 'btn-solid-blue'"
57
-                style="color: white"
56
+                :class="checkStatus(item) ? 'btn-disabled' : 'btn-white-border'"
57
+                style="color: white;"
58 58
               >
59 59
                 Yes
60 60
               </button>
@@ -79,7 +79,7 @@
79 79
           </select>
80 80
         </div>
81 81
         <div class="col-md-10 mt-4">
82
-          <div style="float: right">
82
+          <div style="float: right;">
83 83
             <BasePagination
84 84
               :currentPage="currentPage"
85 85
               :pageCount="PageCount"
@@ -102,7 +102,7 @@
102 102
             class="img-fluid"
103 103
             src="/img/kloader.gif"
104 104
             alt="UVProp logo"
105
-            style="width: 128px; height: 128px"
105
+            style="width: 128px; height: 128px;"
106 106
           />
107 107
         </div>
108 108
         <div v-else>No Results Found</div>
@@ -114,102 +114,110 @@
114 114
 
115 115
 <script>
116 116
 /* eslint-disable */
117
-import BasePagination from "../../shared/basePagination";
118
-import { mapState, mapActions, mapGetters } from "vuex";
117
+import BasePagination from '../../shared/basePagination'
118
+import { mapState, mapActions, mapGetters } from 'vuex'
119 119
 
120 120
 export default {
121 121
   props: {
122 122
     resortCode: undefined,
123 123
     userId: undefined,
124 124
     currentPage: {
125
-      default: 1
126
-    }
125
+      default: 1,
126
+    },
127 127
   },
128 128
   data() {
129 129
     return {
130 130
       visibleItemsPerPageCount: 8,
131
-      visibleItemSelector: [5, 8, 10, 20, 50, 100]
132
-    };
131
+      visibleItemSelector: [5, 8, 10, 20, 50, 100],
132
+    }
133 133
   },
134 134
   components: {
135
-    BasePagination
135
+    BasePagination,
136 136
   },
137 137
   computed: {
138
-    ...mapState("weekList", ["weeks", "status"]),
138
+    ...mapState('weekList', ['weeks', 'status']),
139 139
     ...mapGetters({
140
-      filteredWeeks: "weekList/filteredWeeks",
141
-      getRegions: "weekList/getRegions"
140
+      filteredWeeks: 'weekList/filteredWeeks',
141
+      getRegions: 'weekList/getRegions',
142 142
     }),
143 143
     DisplayItems() {
144
-      const list = [];
145
-      this.filteredWeeks.forEach(week => {
144
+      const list = []
145
+      this.filteredWeeks.forEach((week) => {
146 146
         if (week.publish) {
147
-          list.push(week);
147
+          list.push(week)
148 148
         }
149
-      });
149
+      })
150 150
 
151
-      const startSlice = (this.currentPage - 1) * this.visibleItemsPerPageCount;
152
-      let endSlice = this.currentPage * this.visibleItemsPerPageCount;
151
+      const startSlice = (this.currentPage - 1) * this.visibleItemsPerPageCount
152
+      let endSlice = this.currentPage * this.visibleItemsPerPageCount
153 153
       if (endSlice > list.length) {
154
-        endSlice = list.length;
154
+        endSlice = list.length
155 155
       }
156
-      return list.slice(startSlice, endSlice);
156
+      return list.slice(startSlice, endSlice)
157 157
     },
158 158
     PageCount() {
159
-      var list = [];
160
-      this.filteredWeeks.forEach(week => {
159
+      var list = []
160
+      this.filteredWeeks.forEach((week) => {
161 161
         if (!week.isTender) {
162
-          list.push(week);
162
+          list.push(week)
163 163
         }
164
-      });
164
+      })
165 165
       return this.visibleItemsPerPageCount !== 0
166 166
         ? Math.ceil(list.length / this.visibleItemsPerPageCount)
167
-        : 1;
168
-    }
167
+        : 1
168
+    },
169 169
   },
170 170
   mounted() {
171 171
     //if (this.resortCode) {
172 172
     //  this.applyResortFilter(this.resortCode);
173 173
     //}
174
-    this.getByResortCode(this.$route.params.resortCode);
174
+    this.getByResortCode(this.$route.params.resortCode)
175 175
     //this.getWeeks();
176 176
   },
177 177
   methods: {
178
-    ...mapActions("weekList", ["getWeeks", "applyResortFilter", "getByResortCode"]),
178
+    ...mapActions('weekList', [
179
+      'getWeeks',
180
+      'applyResortFilter',
181
+      'getByResortCode',
182
+    ]),
179 183
     View(item) {
180
-      this.$router.push(`/resort/${item.resort.resortCode}/${item.unitNumber}`);
184
+      this.$router.push(`/resort/${item.resort.resortCode}/${item.unitNumber}`)
181 185
     },
182 186
     onChangeItemsPerPage() {
183 187
       if (this.currentPage !== 1) {
184
-        this.currentPage = 1;
188
+        this.currentPage = 1
185 189
       }
186 190
     },
187 191
     async pageChangeHandle(value) {
188 192
       switch (value) {
189
-        case "next":
190
-          this.currentPage += 1;
191
-          break;
192
-        case "previous":
193
-          this.currentPage -= 1;
194
-          break;
193
+        case 'next':
194
+          this.currentPage += 1
195
+          break
196
+        case 'previous':
197
+          this.currentPage -= 1
198
+          break
195 199
         default:
196
-          this.currentPage = value;
200
+          this.currentPage = value
197 201
       }
198 202
     },
199 203
     checkStatus(item) {
200
-      if (item.status.code === "CIP" || item.status.code === "S" || item.status.code === "P") {
201
-        return true;
204
+      if (
205
+        item.status.code === 'CIP' ||
206
+        item.status.code === 'S' ||
207
+        item.status.code === 'P'
208
+      ) {
209
+        return true
202 210
       } else {
203
-        return false;
211
+        return false
204 212
       }
205
-    }
206
-  }
207
-};
213
+    },
214
+  },
215
+}
208 216
 </script>
209 217
 
210 218
 <style lang="scss" scoped>
211 219
 .btn-disabled {
212
-  font-family: "Muli";
220
+  font-family: 'Muli';
213 221
   font-size: 15px;
214 222
   letter-spacing: 1px;
215 223
   display: inline-block;

+ 37
- 25
src/components/timeshare/resort/contentSection.vue Bestand weergeven

@@ -3,13 +3,25 @@
3 3
     <div class="container">
4 4
       <div class="row" id="resort-profile">
5 5
         <div class="col-md-3">
6
-          <img src="img/listings/property1/property1-gallery.jpg" class="img-fluid" alt />
6
+          <img
7
+            src="img/listings/property1/property1-gallery.jpg"
8
+            class="img-fluid"
9
+            alt
10
+          />
7 11
           <div class="row no-gutters">
8 12
             <div class="col-6">
9
-              <img src="img/listings/property1/property1-gallery.jpg" class="img-fluid" alt />
13
+              <img
14
+                src="img/listings/property1/property1-gallery.jpg"
15
+                class="img-fluid"
16
+                alt
17
+              />
10 18
             </div>
11 19
             <div class="col-6">
12
-              <img src="img/listings/property1/property1-gallery.jpg" class="img-fluid" alt />
20
+              <img
21
+                src="img/listings/property1/property1-gallery.jpg"
22
+                class="img-fluid"
23
+                alt
24
+              />
13 25
             </div>
14 26
           </div>
15 27
           <gallerySection :images="images" />
@@ -27,10 +39,10 @@
27 39
               id="gmap_canvas"
28 40
               :src="
29 41
                 'https://maps.google.com/maps?q=' +
30
-                  resort.prLatitude +
31
-                  ',' +
32
-                  resort.prLongitude +
33
-                  '&hl=en&z=14&amp;output=embed'
42
+                resort.prLatitude +
43
+                ',' +
44
+                resort.prLongitude +
45
+                '&hl=en&z=14&amp;output=embed'
34 46
               "
35 47
               frameborder="0"
36 48
               scrolling="no"
@@ -47,21 +59,21 @@
47 59
 <script>
48 60
 /* eslint-disable */
49 61
 
50
-import { mapState, mapActions } from "vuex";
51
-import WeekList from "../buy/weekListComponent.vue";
52
-import FilterComponent from "../searchTimeshare.vue";
53
-import ResortImages from "./resortImage.vue";
54
-import gallerySection from "./gallerySection";
62
+import { mapState, mapActions } from 'vuex'
63
+import WeekList from '../buy/weekListComponent.vue'
64
+import FilterComponent from '../searchTimeshare.vue'
65
+import ResortImages from './resortImage.vue'
66
+import gallerySection from './gallerySection'
55 67
 
56 68
 export default {
57 69
   props: {
58
-    resortCode: {}
70
+    resortCode: {},
59 71
   },
60 72
   components: {
61 73
     WeekList,
62 74
     FilterComponent,
63 75
     ResortImages,
64
-    gallerySection
76
+    gallerySection,
65 77
   },
66 78
   // async mounted() {
67 79
   //   await this.initResort(this.resortCode);
@@ -70,26 +82,26 @@ export default {
70 82
   data() {
71 83
     return {
72 84
       index: null,
73
-      boolLoaded: false
74
-    };
85
+      boolLoaded: false,
86
+    }
75 87
   },
76 88
   computed: {
77
-    ...mapState("resort", ["resort", "description", "images", "layout"]),
89
+    ...mapState('resort', ['resort', 'description', 'images', 'layout']),
78 90
     mapUrl() {
79
-      console.log(this.resort.prLatitude);
91
+      console.log(this.resort.prLatitude)
80 92
 
81 93
       return this.resort
82 94
         ? `http://maps.google.com/maps?q=${this.resort.prLatitude},${this.resort.prLongitude}&z=15&output=embed`
83
-        : "";
84
-    }
95
+        : ''
96
+    },
85 97
   },
86 98
   methods: {
87
-    ...mapActions("resort", ["GetResortData"]),
99
+    ...mapActions('resort', ['GetResortData']),
88 100
     routerGoTo(goto) {
89
-      this.$router.push(goto);
90
-    }
91
-  }
92
-};
101
+      this.$router.push(goto)
102
+    },
103
+  },
104
+}
93 105
 </script>
94 106
 
95 107
 <style lang="scss" scoped>

+ 2
- 2
src/components/timeshare/resort/resortPageNew.vue Bestand weergeven

@@ -43,10 +43,10 @@
43 43
             <div class="col">
44 44
               <router-link
45 45
                 style="float: right;"
46
-                class="btn-solid-blue mb-4"
46
+                class="btn-white-border mb-4"
47 47
                 to="/timeshare/buy"
48 48
               >
49
-                BACK
49
+                Back
50 50
               </router-link>
51 51
             </div>
52 52
           </div>

+ 28
- 28
src/components/timeshare/resort/unit/summarySection.vue Bestand weergeven

@@ -3,7 +3,7 @@
3 3
     <div class="row">
4 4
       <div class="col">
5 5
         <div class="section-header">
6
-          <h2>{{ week ? week.resort.resortName : "" }}</h2>
6
+          <h2>{{ week ? week.resort.resortName : '' }}</h2>
7 7
         </div>
8 8
       </div>
9 9
     </div>
@@ -13,13 +13,13 @@
13 13
       </div>
14 14
       <div class="col-md-12 col-lg-8 summarySection">
15 15
         <h4>
16
-          Unit {{ week ? week.unitNumber : "" }} |
17
-          {{ week ? week.bedrooms : "" }} Bedroom/{{
18
-            week ? week.maxSleep : ""
16
+          Unit {{ week ? week.unitNumber : '' }} |
17
+          {{ week ? week.bedrooms : '' }} Bedroom/{{
18
+            week ? week.maxSleep : ''
19 19
           }}
20 20
           Sleeper
21 21
         </h4>
22
-        <p style="text-align: left">Reference: #{{ week.id }}</p>
22
+        <p style="text-align: left;">Reference: #{{ week.id }}</p>
23 23
         <table class="table table-striped">
24 24
           <thead>
25 25
             <tr>
@@ -34,8 +34,8 @@
34 34
           </thead>
35 35
           <tbody>
36 36
             <tr>
37
-              <td>{{ week ? week.unitNumber : "" }}</td>
38
-              <td>{{ week ? week.weekNumber : "" }}</td>
37
+              <td>{{ week ? week.unitNumber : '' }}</td>
38
+              <td>{{ week ? week.weekNumber : '' }}</td>
39 39
               <td
40 40
                 v-if="
41 41
                   week.arrivalDate === '0001-01-01T00:00:00' ||
@@ -43,24 +43,24 @@
43 43
                 "
44 44
               ></td>
45 45
               <td v-else>{{ week.arrivalDate | toDate }}</td>
46
-              <td>{{ week ? week.bedrooms : "" }}</td>
47
-              <td>{{ week ? week.season : "" }}</td>
48
-              <td>{{ week ? week.levyAmount : "" | toCurrency }}</td>
49
-              <td>{{ week ? week.sellPrice : "" | toCurrency }}</td>
46
+              <td>{{ week ? week.bedrooms : '' }}</td>
47
+              <td>{{ week ? week.season : '' }}</td>
48
+              <td>{{ week ? week.levyAmount : '' | toCurrency }}</td>
49
+              <td>{{ week ? week.sellPrice : '' | toCurrency }}</td>
50 50
             </tr>
51 51
           </tbody>
52 52
         </table>
53 53
 
54 54
         <div class="row mt-5">
55 55
           <div align="center" class="col-md-6">
56
-            <a href="javascript:history.back()" class="btn-white-border"
57
-              >Back</a
58
-            >
56
+            <a href="javascript:history.back()" class="btn-white-border">
57
+              Back
58
+            </a>
59 59
           </div>
60 60
           <div align="center" class="col-md-6">
61 61
             <button
62
-              class="btn-solid-blue"
63
-              style="color: white"
62
+              class="btn-white-border"
63
+              style="color: white;"
64 64
               data-toggle="modal"
65 65
               data-target="#myModal"
66 66
             >
@@ -97,22 +97,22 @@
97 97
 
98 98
 <script>
99 99
 /* eslint-disable */
100
-import { mapState, mapActions, mapGetters } from "vuex";
101
-import makeOffer from "../../../processFlow/makeOffer.vue";
102
-import gallerySection from "../gallerySection";
100
+import { mapState, mapActions, mapGetters } from 'vuex'
101
+import makeOffer from '../../../processFlow/makeOffer.vue'
102
+import gallerySection from '../gallerySection'
103 103
 export default {
104 104
   components: {
105 105
     makeOffer,
106 106
     gallerySection,
107 107
   },
108 108
   computed: {
109
-    ...mapState("resort", ["resort", "description", "images", "layout"]),
109
+    ...mapState('resort', ['resort', 'description', 'images', 'layout']),
110 110
 
111 111
     ...mapGetters({
112
-      weekById: "weekList/weekById",
112
+      weekById: 'weekList/weekById',
113 113
     }),
114 114
     week() {
115
-      return this.weekById(this.resortCode, this.unitNumber);
115
+      return this.weekById(this.resortCode, this.unitNumber)
116 116
     },
117 117
     // ...mapState('week', ['currentWeek']),
118 118
   },
@@ -121,18 +121,18 @@ export default {
121 121
     unitNumber: {},
122 122
   },
123 123
   methods: {
124
-    ...mapActions("weekList", ["getWeeks", "applyResortFilter"]),
125
-    ...mapActions("resort", ["initResort"]),
124
+    ...mapActions('weekList', ['getWeeks', 'applyResortFilter']),
125
+    ...mapActions('resort', ['initResort']),
126 126
     // ...mapActions('week', ['initWeek']),
127 127
     formatPrice(value) {
128 128
       if (value) {
129
-        const val = (value / 1).toFixed(2);
130
-        return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
129
+        const val = (value / 1).toFixed(2)
130
+        return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ')
131 131
       }
132
-      return "";
132
+      return ''
133 133
     },
134 134
   },
135
-};
135
+}
136 136
 </script>
137 137
 
138 138
 <style lang="scss" scoped>

Laden…
Annuleren
Opslaan