You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unitPage.vue 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <template>
  2. <!-- eslint-disable max-len -->
  3. <section>
  4. <section class="intro-single">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-12 col-lg-8">
  8. <div class="title-single-box">
  9. <h1 class="title-single" style="text-align:left;">{{resort.prName}}</h1>
  10. </div>
  11. <br />
  12. </div>
  13. <div class="row mb-4">
  14. <div class="col-md-4">
  15. <img class="img-fluid" :src="image1" alt="Resort Image" />
  16. </div>
  17. <div class="col-md-4">
  18. <img class="img-fluid" :src="image2" alt="Resort Image" />
  19. </div>
  20. <div class="col-md-4">
  21. <img class="img-fluid" :src="image3" alt="Resort Image" />
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </section>
  27. <div class="container" style="text-align:left;">
  28. <div class="row mb-4">
  29. <div class="col-md-6">
  30. <div class="title-box-d">
  31. <h3 class="title-d">Property Description</h3>
  32. </div>
  33. <p>{{description}}</p>
  34. <div>
  35. <div class="title-box-d">
  36. <h3 class="title-d">Facilities</h3>
  37. </div>
  38. <ul>
  39. <li v-for="(item, i) in resort.prUnitFacilities.split('\n')" :key="i">{{item}}</li>
  40. </ul>
  41. </div>
  42. </div>
  43. <div class="col-md-6">
  44. <form
  45. id="mainForm"
  46. method="POST"
  47. action="/interested-timeshare/"
  48. accept-charset="UTF-8"
  49. enctype="multipart/form-data"
  50. >
  51. <div class="title-box-d section-t4">
  52. <h3 class="title-d">Summary</h3>
  53. </div>
  54. <div class="form-row">
  55. <div class="col-md-3">
  56. <label for="resortunit">Unit</label>
  57. <div class="input-group mb-3">
  58. <div class="input-group-prepend">
  59. <span class="input-group-text" style="color: #60CBEB">
  60. <b>U#</b>
  61. </span>
  62. </div>
  63. <input
  64. class="form-control"
  65. type="text"
  66. id="resort"
  67. name="resortunit"
  68. :value="week.unit"
  69. disabled
  70. />
  71. </div>
  72. </div>
  73. <div class="col-md-3">
  74. <label for="resortWeek">Week</label>
  75. <div class="input-group mb-3">
  76. <div class="input-group-prepend">
  77. <span class="input-group-text" style="color: #60CBEB">
  78. <b>W#</b>
  79. </span>
  80. </div>
  81. <input
  82. class="form-control"
  83. type="text"
  84. id="week"
  85. name="resortWeek"
  86. :value="week.week"
  87. disabled
  88. />
  89. </div>
  90. </div>
  91. <div class="form-row">
  92. <div class="col-md-9">
  93. <label for="resortModule">Module</label>
  94. <div class="input-group mb-3">
  95. <div class="input-group-prepend">
  96. <span class="input-group-text" style="color: #60CBEB">
  97. <b>M</b>
  98. </span>
  99. </div>
  100. <input
  101. class="form-control"
  102. type="text"
  103. id="module"
  104. name="resortModule"
  105. :value="week.module"
  106. disabled
  107. />
  108. </div>
  109. </div>
  110. </div>
  111. <div class="col-md-5">
  112. <label for="price">Price</label>
  113. <div class="input-group mb-3">
  114. <div class="input-group-prepend">
  115. <span class="input-group-text" style="color: #60CBEB">
  116. <b>R</b>
  117. </span>
  118. </div>
  119. <input
  120. class="form-control"
  121. type="text"
  122. name="price"
  123. id="price"
  124. :value="week.price"
  125. disabled
  126. />
  127. </div>
  128. </div>
  129. <div class="col-md-5">
  130. <label for="resortModule">Current Levy</label>
  131. <div class="input-group mb-3">
  132. <div class="input-group-prepend">
  133. <span class="input-group-text" style="color: #60CBEB">
  134. <b>R</b>
  135. </span>
  136. </div>
  137. <input
  138. class="form-control"
  139. type="text"
  140. id="levy"
  141. name="levy"
  142. :value="week.currentLevy"
  143. disabled
  144. />
  145. </div>
  146. </div>
  147. </div>
  148. <br />
  149. <div class="form-row">
  150. <div>
  151. <div class="input-group mb-3">
  152. <div class="input-group-prepend">
  153. <span class="input-group-text">
  154. <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
  155. </span>
  156. <input class="form-control" type="text" name="name" placeholder="Name" />
  157. </div>
  158. </div>
  159. <div class="input-group mb-3">
  160. <div class="input-group-prepend">
  161. <span class="input-group-text">
  162. <eva-icon name="phone-outline" fill="#60CBEB"></eva-icon>
  163. </span>
  164. <input
  165. class="form-control"
  166. type="number"
  167. name="mobile"
  168. placeholder="Contact Number"
  169. />
  170. </div>
  171. </div>
  172. <div class="input-group mb-3">
  173. <div class="input-group-prepend">
  174. <span class="input-group-text">
  175. <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
  176. </span>
  177. <input class="form-control" type="email" name="email" placeholder="Email" />
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </form>
  183. <br />
  184. <button class="btn btn-b-c even-width mr-auto" type="submit">Enquire Now</button>
  185. <!-- <a
  186. class="btn btn-b-n even-width mr-auto"
  187. href="/share-transfer-initiation-for-purchaser/"
  188. >Make an Offer</a>-->
  189. <button
  190. type="button"
  191. class="btn btn-b-n even-width mr-auto"
  192. data-toggle="modal"
  193. data-target="#myModal"
  194. >Make an Offer</button>
  195. <div id="myModal" class="modal fade" role="dialog">
  196. <div class="modal-dialog modal-lg">
  197. <!-- Modal content-->
  198. <div class="modal-content">
  199. <div class="modal-header">
  200. <button type="button" class="close" data-dismiss="modal">&times;</button>
  201. </div>
  202. <div padding-left="20px">
  203. <makeOffer
  204. name="MakeOffer"
  205. :isMakeOffer="true"
  206. :isProperty="false"
  207. :item="{resort: resort.prName, unit: week.unit, week: week.week, module: week.module, price: week.price}"
  208. />
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <a class="btn btn-b-c even-width mr-auto" href="javascript:history.back()">Back</a>
  214. </div>
  215. </div>
  216. </div>
  217. </section>
  218. </template>
  219. <script>
  220. import { mapState, mapActions } from 'vuex';
  221. import makeOffer from '../../processFlow/makeOffer.vue';
  222. export default {
  223. name: 'unit',
  224. components: {
  225. makeOffer,
  226. },
  227. props: {
  228. resortCode: {},
  229. weekId: {},
  230. },
  231. mounted() {
  232. this.initResort(this.resortCode);
  233. this.initWeek(this.weekId);
  234. },
  235. computed: {
  236. ...mapState('resort', [
  237. 'resort',
  238. 'description',
  239. 'image1',
  240. 'image2',
  241. 'image3',
  242. ]),
  243. ...mapState('week', ['week', 'contactDetails']),
  244. },
  245. methods: {
  246. ...mapActions('resort', ['initResort']),
  247. ...mapActions('week', ['initWeek']),
  248. },
  249. };
  250. </script>
  251. <style scoped>
  252. .btn.btn-b-c {
  253. background-color: #ffffff;
  254. color: #60cbeb;
  255. border-radius: 0;
  256. }
  257. .btn.btn-b-c:hover {
  258. background-color: #089bf0;
  259. color: #ffffff;
  260. }
  261. </style>