|
@@ -13,66 +13,99 @@
|
13
|
13
|
</section>
|
14
|
14
|
<div class="container">
|
15
|
15
|
<div class="row">
|
16
|
|
- <div class="col-md-8 offset-md-0">
|
17
|
|
- <div class="row">
|
18
|
|
- <div class="col-md-8" style="text-align:left;">
|
19
|
|
- <p>
|
20
|
|
- The resorts have been listed in their relevant provinces.
|
21
|
|
- Please select the resort for which you would like to view
|
22
|
|
- the available weeks and then select the weeks that interest
|
23
|
|
- you on the resort page.
|
24
|
|
- </p>
|
25
|
|
- <p>
|
26
|
|
- Arrival and departure dates are indicated but please note
|
27
|
|
- that these dates may vary annually.
|
28
|
|
- </p>
|
29
|
|
- <p>
|
30
|
|
- As with any property related sale, upon purchasing the holiday
|
31
|
|
- of your choice, there will be a transfer fee payable for the
|
32
|
|
- change of ownership. This fee will depend on the relevant resort
|
33
|
|
- or managing agent.
|
34
|
|
- </p>
|
35
|
|
- </div>
|
36
|
|
- </div>
|
|
16
|
+ <div class="col-md-12 text-left">
|
|
17
|
+ <p>
|
|
18
|
+ The resorts have been listed in their relevant provinces.
|
|
19
|
+ Please select the resort for which you would like to view
|
|
20
|
+ the available weeks and then select the weeks that interest
|
|
21
|
+ you on the resort page.
|
|
22
|
+ </p>
|
|
23
|
+ <p>
|
|
24
|
+ Arrival and departure dates are indicated but please note
|
|
25
|
+ that these dates may vary annually.
|
|
26
|
+ </p>
|
|
27
|
+ <p>
|
|
28
|
+ As with any property related sale, upon purchasing the holiday
|
|
29
|
+ of your choice, there will be a transfer fee payable for the
|
|
30
|
+ change of ownership. This fee will depend on the relevant resort
|
|
31
|
+ or managing agent.
|
|
32
|
+ </p>
|
|
33
|
+ </div>
|
|
34
|
+ </div>
|
37
|
35
|
|
38
|
|
- <div class="row mb-4">
|
39
|
|
- <div class="col-md-8">
|
40
|
|
- <div class="accordion" id="accordionExample">
|
41
|
|
- <div class="card" v-for="(region, r) in regions" :key="r">
|
42
|
|
- <a
|
43
|
|
- class="btn btn-b-n"
|
44
|
|
- type="button"
|
45
|
|
- data-toggle="collapse"
|
46
|
|
- :data-target="'#collapse' + region.id"
|
47
|
|
- aria-expanded="false"
|
48
|
|
- :aria-controls="'collapse' + region.id"
|
49
|
|
- >
|
50
|
|
- <div :id="'header' + region.id">
|
51
|
|
- <h5 class="mb-0">{{ region.regionName }}</h5>
|
52
|
|
- </div>
|
53
|
|
- </a>
|
54
|
|
- <div
|
55
|
|
- :id="'collapse' + region.id"
|
56
|
|
- class="collapse"
|
57
|
|
- :aria-labelledby="'header' + region.id"
|
58
|
|
- data-parent="#accordionExample"
|
59
|
|
- >
|
60
|
|
- <div class="card-body">
|
61
|
|
- <p class="mb-0" v-for="(resort, i) in region.resorts" :key="i">
|
62
|
|
- <a
|
63
|
|
- class="cursor-pointer"
|
64
|
|
- href="#"
|
65
|
|
- @click="routerGoTo('/resort/' + resort.resortCode)"
|
66
|
|
- >{{resort.resortName}}</a>
|
67
|
|
- <br />
|
68
|
|
- </p>
|
69
|
|
- </div>
|
70
|
|
- </div>
|
|
36
|
+ <div class="row mb-4">
|
|
37
|
+ <div class="col-md-4">
|
|
38
|
+ <div class="accordion" id="accordionExample">
|
|
39
|
+ <div class="card" v-for="(region, r) in regions" :key="r">
|
|
40
|
+ <a
|
|
41
|
+ class="btn btn-b-n"
|
|
42
|
+ type="button"
|
|
43
|
+ data-toggle="collapse"
|
|
44
|
+ :data-target="'#collapse' + region.id"
|
|
45
|
+ aria-expanded="false"
|
|
46
|
+ :aria-controls="'collapse' + region.id"
|
|
47
|
+ >
|
|
48
|
+ <div :id="'header' + region.id">
|
|
49
|
+ <h5 class="mb-0">{{ region.regionName }}</h5>
|
|
50
|
+ </div>
|
|
51
|
+ </a>
|
|
52
|
+ <div
|
|
53
|
+ :id="'collapse' + region.id"
|
|
54
|
+ class="collapse"
|
|
55
|
+ :aria-labelledby="'header' + region.id"
|
|
56
|
+ data-parent="#accordionExample"
|
|
57
|
+ >
|
|
58
|
+ <div class="card-body">
|
|
59
|
+ <p class="mb-0" v-for="(resort, i) in region.resorts" :key="i">
|
|
60
|
+ <a
|
|
61
|
+ class="cursor-pointer"
|
|
62
|
+ href="#"
|
|
63
|
+ @click="routerGoTo('/resort/' + resort.resortCode)"
|
|
64
|
+ @mouseover="getResort(resort.resortCode)"
|
|
65
|
+ >{{resort.resortName}}</a>
|
|
66
|
+ <br />
|
|
67
|
+ </p>
|
71
|
68
|
</div>
|
72
|
69
|
</div>
|
73
|
70
|
</div>
|
74
|
71
|
</div>
|
75
|
72
|
</div>
|
|
73
|
+ <div class="col-md-8">
|
|
74
|
+ <div class="tab-content" id="myTabContent">
|
|
75
|
+ <div
|
|
76
|
+ class="tab-pane fade show active"
|
|
77
|
+ id="directions"
|
|
78
|
+ role="tabpanel"
|
|
79
|
+ aria-labelledby="directions-tab"
|
|
80
|
+ >
|
|
81
|
+ <iframe
|
|
82
|
+ :src="mapUrl"
|
|
83
|
+ width="100%"
|
|
84
|
+ height="450"
|
|
85
|
+ frameborder="0"
|
|
86
|
+ style="border:0"
|
|
87
|
+ allowfullscreen
|
|
88
|
+ ></iframe>
|
|
89
|
+ <br />
|
|
90
|
+
|
|
91
|
+ <small>
|
|
92
|
+ <a
|
|
93
|
+ :href="mapUrl"
|
|
94
|
+ style="color:#60CBEB;text-align:left"
|
|
95
|
+ target="_blank"
|
|
96
|
+ >See map bigger</a>
|
|
97
|
+ </small>
|
|
98
|
+ </div>
|
|
99
|
+ <div
|
|
100
|
+ class="tab-pane fade"
|
|
101
|
+ id="resort-layout"
|
|
102
|
+ role="tabpanel"
|
|
103
|
+ aria-labelledby="resort-layout-tab"
|
|
104
|
+ >
|
|
105
|
+ <img class="img-fluid" :src="layout" alt="Resort Layout" />
|
|
106
|
+ </div>
|
|
107
|
+ </div>
|
|
108
|
+ </div>
|
76
|
109
|
</div>
|
77
|
110
|
</div>
|
78
|
111
|
</section>
|
|
@@ -86,16 +119,29 @@ export default {
|
86
|
119
|
this.getRegions();
|
87
|
120
|
},
|
88
|
121
|
computed: {
|
89
|
|
- ...mapState('timeshareBuy', ['detailedRegion']),
|
|
122
|
+ ...mapState('timeshareBuy', ['detailedRegion', 'resort']),
|
|
123
|
+ mapUrl() {
|
|
124
|
+ return (
|
|
125
|
+ 'http://maps.google.com/maps?q='
|
|
126
|
+ + this.resort.prLatitude
|
|
127
|
+ + ', '
|
|
128
|
+ + this.resort.prLongitude
|
|
129
|
+ + '&z=15&output=embed'
|
|
130
|
+ );
|
|
131
|
+ },
|
90
|
132
|
regions() {
|
91
|
133
|
return _.sortBy(this.detailedRegion, r => r.regionName);
|
92
|
134
|
},
|
93
|
135
|
},
|
94
|
136
|
methods: {
|
95
|
|
- ...mapActions('timeshareBuy', ['getRegions']),
|
|
137
|
+ ...mapActions('timeshareBuy', ['getRegions', 'getResort']),
|
96
|
138
|
routerGoTo(goTo) {
|
97
|
139
|
this.$router.push(goTo);
|
98
|
140
|
},
|
|
141
|
+ updateMap(resortCode) {
|
|
142
|
+ this.getGPS(resortCode);
|
|
143
|
+ alert(resortCode);
|
|
144
|
+ },
|
99
|
145
|
},
|
100
|
146
|
};
|
101
|
147
|
</script>
|