George Williams 4 年之前
父節點
當前提交
0324027673

+ 5
- 5
src/App.vue 查看文件

6
     <div v-if="!isLandingPage" class="click-closed"></div>
6
     <div v-if="!isLandingPage" class="click-closed"></div>
7
     <NavBar v-if="!isLandingPage" @routerGoTo="routerGoTo" />
7
     <NavBar v-if="!isLandingPage" @routerGoTo="routerGoTo" />
8
     <div v-if="!isLandingPage"></div>
8
     <div v-if="!isLandingPage"></div>
9
-    <router-view @setLandingPage="setLandingPage" />
9
+    <router-view @setLandingPage="setLandingPage" style="margin-top:190px" />
10
     <FooterSection v-if="!isLandingPage" />
10
     <FooterSection v-if="!isLandingPage" />
11
   </div>
11
   </div>
12
 </template>
12
 </template>
20
   name: "app",
20
   name: "app",
21
   data() {
21
   data() {
22
     return {
22
     return {
23
-      isLandingPage: false,
23
+      isLandingPage: false
24
     };
24
     };
25
   },
25
   },
26
   components: {
26
   components: {
27
     NavBar,
27
     NavBar,
28
-    FooterSection,
28
+    FooterSection
29
   },
29
   },
30
 
30
 
31
   methods: {
31
   methods: {
34
     },
34
     },
35
     setLandingPage(item) {
35
     setLandingPage(item) {
36
       this.isLandingPage = item;
36
       this.isLandingPage = item;
37
-    },
38
-  },
37
+    }
38
+  }
39
 };
39
 };
40
 </script>
40
 </script>
41
 
41
 

+ 7
- 4
src/components/home/carouselSection.vue 查看文件

223
 /* Extra small devices (phones, 600px and down) */
223
 /* Extra small devices (phones, 600px and down) */
224
 @media only screen and (max-width: 600px) {
224
 @media only screen and (max-width: 600px) {
225
   .introContentAdjust {
225
   .introContentAdjust {
226
-    margin-top: -35px !important;
226
+    margin-top: 140px !important;
227
   }
227
   }
228
 }
228
 }
229
 
229
 
230
 /* Small devices (portrait tablets and large phones, 600px and up) */
230
 /* Small devices (portrait tablets and large phones, 600px and up) */
231
 @media only screen and (min-width: 600px) {
231
 @media only screen and (min-width: 600px) {
232
   .introContentAdjust {
232
   .introContentAdjust {
233
-    margin-top: -15px !important;
233
+    margin-top: 150px !important;
234
   }
234
   }
235
 }
235
 }
236
 
236
 
237
 /* Medium devices (landscape tablets, 768px and up) */
237
 /* Medium devices (landscape tablets, 768px and up) */
238
 @media only screen and (min-width: 768px) {
238
 @media only screen and (min-width: 768px) {
239
+  .introContentAdjust {
240
+    margin-top: 160px !important;
241
+  }
239
 }
242
 }
240
 
243
 
241
 /* Large devices (laptops/desktops, 992px and up) */
244
 /* Large devices (laptops/desktops, 992px and up) */
242
 @media only screen and (min-width: 992px) {
245
 @media only screen and (min-width: 992px) {
243
   .introContentAdjust {
246
   .introContentAdjust {
244
-    margin-top: 25px !important;
247
+    margin-top: 160px !important;
245
   }
248
   }
246
 }
249
 }
247
 
250
 
248
 /* Extra large devices (large laptops and desktops, 1200px and up) */
251
 /* Extra large devices (large laptops and desktops, 1200px and up) */
249
 @media only screen and (min-width: 1200px) {
252
 @media only screen and (min-width: 1200px) {
250
   .introContentAdjust {
253
   .introContentAdjust {
251
-    margin-top: 0px !important;
254
+    margin-top: 120px !important;
252
   }
255
   }
253
 }
256
 }
254
 </style>
257
 </style>

+ 15
- 3
src/components/property/commercial/createProperty/commercialCreate.vue 查看文件

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <carouselSection :salesType="salesType" />
3
     <carouselSection :salesType="salesType" />
4
-
5
     <main id="main" style="margin-top:-20px">
4
     <main id="main" style="margin-top:-20px">
6
       <div class="container pt-5 pb-5">
5
       <div class="container pt-5 pb-5">
7
         <div class="row">
6
         <div class="row">
8
-          <div class="col-md-5">
7
+          <div class="col-md-6">
9
             <div v-if="!property.propertyName">
8
             <div v-if="!property.propertyName">
10
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
9
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
11
             </div>
10
             </div>
16
               v-model="property.propertyName"
15
               v-model="property.propertyName"
17
             />
16
             />
18
           </div>
17
           </div>
19
-          <div class="col-md-5">
18
+          <div class="col-md-6">
19
+            <div v-if="!property.propertyRef">
20
+              <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
21
+            </div>
22
+            <input
23
+              class="form-control uniInput"
24
+              type="text"
25
+              name="propertyRef"
26
+              v-model="property.propertyRef"
27
+            />
28
+          </div>
29
+        </div>
30
+        <div class="row my-5">
31
+          <div class="col-md-6">
20
             <select
32
             <select
21
               class="form-control uniSelect"
33
               class="form-control uniSelect"
22
               name="propertyType"
34
               name="propertyType"

+ 1
- 1
src/components/property/commercial/singleView/contentSection.vue 查看文件

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 v-if="i === 0" style="width:100%; height:201px;object-fit: cover" :src="image" />
9
                 <img v-if="i === 0" style="width:100%; height:201px;object-fit: cover" :src="image" />

+ 2
- 2
src/components/property/propertyCard.vue 查看文件

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>

+ 15
- 2
src/components/property/residential/createProperty/residentialCreate.vue 查看文件

5
     <main id="main" style="margin-top:-20px">
5
     <main id="main" style="margin-top:-20px">
6
       <div class="container pt-5 pb-5">
6
       <div class="container pt-5 pb-5">
7
         <div class="row">
7
         <div class="row">
8
-          <div class="col-md-5">
8
+          <div class="col-md-6">
9
             <div v-if="!property.propertyName">
9
             <div v-if="!property.propertyName">
10
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
10
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
11
             </div>
11
             </div>
16
               v-model="property.propertyName"
16
               v-model="property.propertyName"
17
             />
17
             />
18
           </div>
18
           </div>
19
-          <div class="col-md-5">
19
+          <div class="col-md-6">
20
+            <div v-if="!property.propertyRef">
21
+              <label for="propertyName" class="uniSelectLabel">PROPERTY REFERENCE</label>
22
+            </div>
23
+            <input
24
+              class="form-control uniInput"
25
+              type="text"
26
+              name="propertyRef"
27
+              v-model="property.propertyRef"
28
+            />
29
+          </div>
30
+        </div>
31
+        <div class="row my-5">
32
+          <div class="col-md-6">
20
             <select
33
             <select
21
               class="form-control uniSelect"
34
               class="form-control uniSelect"
22
               name="propertyType"
35
               name="propertyType"

+ 7
- 0
src/components/property/residential/singleView/contentSection.vue 查看文件

37
             v-if="property.showAddress"
37
             v-if="property.showAddress"
38
           >{{ property.propertyName }} / {{ property.streetNumber }} {{ property.streetName }}</h2>
38
           >{{ property.propertyName }} / {{ property.streetNumber }} {{ property.streetName }}</h2>
39
           <h2 v-else>{{ property.propertyName }}</h2>
39
           <h2 v-else>{{ property.propertyName }}</h2>
40
+          <div class="container">
41
+            <div class="row">
42
+              <div class="col">
43
+                <p v-html="property.description"></p>
44
+              </div>
45
+            </div>
46
+          </div>
40
           <div>
47
           <div>
41
             <!-- <table class="table table-striped">
48
             <!-- <table class="table table-striped">
42
               <thead>
49
               <thead>

+ 1
- 1
src/components/property/residential/singleView/singleResidentialPage.vue 查看文件

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 查看文件

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>

+ 6
- 1
src/components/propertyManagement/rentalManagement/contentSection.vue 查看文件

19
       <div class="row">
19
       <div class="row">
20
         <div class="col-md-6"></div>
20
         <div class="col-md-6"></div>
21
         <div class="col-md-6">
21
         <div class="col-md-6">
22
-          <h4>Contact us for a quote</h4>
22
+          <h4
23
+            style="cursor:pointer"
24
+            @click="$vuetify.goTo('#contactFoot', { duration: 2000, easing: 'easeInOutCubic' })"
25
+          >
26
+            Contact us for a quote
27
+          </h4>
23
         </div>
28
         </div>
24
       </div>
29
       </div>
25
 
30
 

+ 6
- 1
src/components/propertyManagement/sectionalTitle/ourServicesSection.vue 查看文件

18
       <div class="row mt-2">
18
       <div class="row mt-2">
19
         <div class="col-md-6"></div>
19
         <div class="col-md-6"></div>
20
         <div class="col-md-6">
20
         <div class="col-md-6">
21
-          <h4>Contact us for a quote</h4>
21
+          <h4
22
+            style="cursor:pointer"
23
+            @click="$vuetify.goTo('#contactFoot', { duration: 2000, easing: 'easeInOutCubic' })"
24
+          >
25
+            Contact us for a quote
26
+          </h4>
22
         </div>
27
         </div>
23
       </div>
28
       </div>
24
       <div class="row">
29
       <div class="row">

+ 11
- 5
src/components/shared/footerSection.vue 查看文件

18
               <a href="commercial.php">Rent Commercial Property</a><br />
18
               <a href="commercial.php">Rent Commercial Property</a><br />
19
               <a href="residential.php">Buy Residential Property</a><br />
19
               <a href="residential.php">Buy Residential Property</a><br />
20
               <a href="residential.php">Rent Residential Property</a><br /> -->
20
               <a href="residential.php">Rent Residential Property</a><br /> -->
21
-              <router-link class="footerText" v-if="isLoggedIn" to="/properties"
21
+              <router-link v-if="isLoggedIn" class="footerText" to="/properties"
22
                 >Property Management</router-link
22
                 >Property Management</router-link
23
-              ><br />
23
+              ><br v-if="isLoggedIn" />
24
+              <router-link to="/property/residential">Residential Property</router-link><br />
25
+              <router-link to="/property/commercial">Commercial Property</router-link><br />
24
               <router-link class="footerText" to="/privacyPolicy">Privacy Policy</router-link><br />
26
               <router-link class="footerText" to="/privacyPolicy">Privacy Policy</router-link><br />
25
               <router-link class="footerText" to="/websiteDisclaimer"
27
               <router-link class="footerText" to="/websiteDisclaimer"
26
                 >Website Disclaimer</router-link
28
                 >Website Disclaimer</router-link
27
               ><br />
29
               ><br />
28
             </p>
30
             </p>
29
           </div>
31
           </div>
30
-          <div class="col-lg-9 section-header">
32
+          <div class="col-lg-9 section-header" id="contactFoot">
31
             <h2 align="left">Contact Us</h2>
33
             <h2 align="left">Contact Us</h2>
32
             <div class="row">
34
             <div class="row">
33
               <div class="col-md-4">
35
               <div class="col-md-4">
88
           <div class="col-md-12">
90
           <div class="col-md-12">
89
             <div class="copyright-footer">
91
             <div class="copyright-footer">
90
               <p class="copyright color-text-a">
92
               <p class="copyright color-text-a">
91
-                &copy; Copyright
93
+                Copyright © {{ currentYear }} Copyright
92
                 <span class="color-a">
94
                 <span class="color-a">
93
-                  <b>Univate Properties</b>
95
+                  <b>Uni-Vate Properties.</b>
94
                 </span>
96
                 </span>
95
                 All Rights Reserved.
97
                 All Rights Reserved.
96
               </p>
98
               </p>
138
     // eslint-disable-next-line vue/return-in-computed-property
140
     // eslint-disable-next-line vue/return-in-computed-property
139
     Logout() {
141
     Logout() {
140
       return this.logout();
142
       return this.logout();
143
+    },
144
+    currentYear() {
145
+      var d = new Date();
146
+      return d.getFullYear();
141
     }
147
     }
142
   }
148
   }
143
 };
149
 };

+ 52
- 41
src/components/shared/navBar.vue 查看文件

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;">
6
+    <div>
7
       <header id="header" style="width: 100%; position: fixed; top:0px; z-index: 50;">
7
       <header id="header" style="width: 100%; position: fixed; top:0px; z-index: 50;">
8
         <div class="container">
8
         <div class="container">
9
           <div class="row">
9
           <div class="row">
16
                   style="height:100px;"
16
                   style="height:100px;"
17
               /></a>
17
               /></a>
18
             </div>
18
             </div>
19
-            <div class="col-md-9" id="topbar">
19
+            <div id="topbar" class="col-md-9">
20
               <div class="container clearFix">
20
               <div class="container clearFix">
21
                 <div class="social-links  ">
21
                 <div class="social-links  ">
22
                   <a href="mailto:info@univateproperties.co.za">
22
                   <a href="mailto:info@univateproperties.co.za">
38
                   </a>
38
                   </a>
39
                 </div>
39
                 </div>
40
               </div>
40
               </div>
41
-
42
               <nav id="nav-menu-container">
41
               <nav id="nav-menu-container">
43
                 <ul class="nav-menu sf-js-enabled sf-arrows">
42
                 <ul class="nav-menu sf-js-enabled sf-arrows">
44
-                  <li class="menu-has-children">
45
-                    <div
46
-                      @mouseover="timeShareClass = 'ts-display'"
47
-                      @mouseleave="timeShareClass = 'no-display'"
48
-                    ></div>
49
-                    <a href="#" class="sf-with-ul">
50
-                      Timeshare
51
-                    </a>
52
-                    <ul style="margin-top:-10px;text-align:left" :class="timeShareClass">
53
-                      <li>
54
-                        <router-link to="/timeshare/buy">To Buy</router-link>
55
-                      </li>
56
-                      <li>
57
-                        <router-link to="/timeshare/sell">To Sell</router-link>
58
-                      </li>
59
-                      <li>
60
-                        <router-link to="/timeshare/faq">FAQ</router-link>
61
-                      </li>
62
-                      <li v-if="isLoggedIn">
63
-                        <hr />
64
-                        <router-link to="/timeshare/myWeeks">My Timeshare Weeks</router-link>
65
-                      </li>
66
-                    </ul>
67
-                  </li>
68
-                  <li class="menu-has-children">
43
+                  <li class="menu-has-children" style="margin-left:-20px">
69
                     <div
44
                     <div
70
                       @mouseover="commercialClass = 'ts-display'"
45
                       @mouseover="commercialClass = 'ts-display'"
71
                       @mouseleave="commercialClass = 'no-display'"
46
                       @mouseleave="commercialClass = 'no-display'"
86
                       </li>
61
                       </li>
87
                     </ul>
62
                     </ul>
88
                   </li>
63
                   </li>
89
-                  <li class="menu-has-children">
64
+                  <li class="menu-has-children mx-1">
90
                     <div
65
                     <div
91
                       @mouseover="residentialClass = 'ts-display'"
66
                       @mouseover="residentialClass = 'ts-display'"
92
                       @mouseleave="residentialClass = 'no-display'"
67
                       @mouseleave="residentialClass = 'no-display'"
107
                       </li>
82
                       </li>
108
                     </ul>
83
                     </ul>
109
                   </li>
84
                   </li>
85
+                  <li class="menu-has-children mx-1">
86
+                    <div
87
+                      @mouseover="timeShareClass = 'ts-display'"
88
+                      @mouseleave="timeShareClass = 'no-display'"
89
+                    ></div>
90
+                    <a href="#" class="sf-with-ul">
91
+                      Timeshare
92
+                    </a>
93
+                    <ul style="margin-top:-10px;text-align:left" :class="timeShareClass">
94
+                      <li>
95
+                        <router-link to="/timeshare/buy">To Buy</router-link>
96
+                      </li>
97
+                      <li>
98
+                        <router-link to="/timeshare/sell">To Sell</router-link>
99
+                      </li>
100
+                      <li>
101
+                        <router-link to="/timeshare/faq">FAQ</router-link>
102
+                      </li>
103
+                      <li v-if="isLoggedIn">
104
+                        <hr />
105
+                        <router-link to="/timeshare/myWeeks">My Timeshare Weeks</router-link>
106
+                      </li>
107
+                    </ul>
108
+                  </li>
110
                   <!-- <li class="menu-has-children">
109
                   <!-- <li class="menu-has-children">
111
                     <div
110
                     <div
112
                       @mouseover="propertiesClass = 'ts-display'"
111
                       @mouseover="propertiesClass = 'ts-display'"
131
                       </li>
130
                       </li>
132
                     </ul>
131
                     </ul>
133
                   </li> -->
132
                   </li> -->
134
-                  <li class="menu-has-children">
133
+                  <li class="menu-has-children mx-1">
135
                     <div
134
                     <div
136
                       @mouseover="propManClass = 'ts-display'"
135
                       @mouseover="propManClass = 'ts-display'"
137
                       @mouseleave="propManClass = 'no-display'"
136
                       @mouseleave="propManClass = 'no-display'"
152
                       </li>
151
                       </li>
153
                     </ul>
152
                     </ul>
154
                   </li>
153
                   </li>
155
-                  <li class="menu-has-children">
154
+                  <li class="menu-has-children mx-1">
156
                     <div
155
                     <div
157
                       @mouseover="aboutClass = 'ts-display'"
156
                       @mouseover="aboutClass = 'ts-display'"
158
                       @mouseleave="aboutClass = 'no-display'"
157
                       @mouseleave="aboutClass = 'no-display'"
169
                       </li>
168
                       </li>
170
                     </ul>
169
                     </ul>
171
                   </li>
170
                   </li>
172
-                  <li>
171
+                  <li class="mx-1">
173
                     <router-link to="/share/contact">Contact Us</router-link>
172
                     <router-link to="/share/contact">Contact Us</router-link>
174
                   </li>
173
                   </li>
175
-                  <li v-if="isLoggedIn" class="menu-has-children">
174
+                  <li v-if="isLoggedIn" class="menu-has-children mx-1">
176
                     <div
175
                     <div
177
                       @mouseover="userClass = 'ts-display'"
176
                       @mouseover="userClass = 'ts-display'"
178
                       @mouseleave="userClass = 'no-display'"
177
                       @mouseleave="userClass = 'no-display'"
235
                         <router-link to="/landingPages">Landing Pages / Campaignes</router-link>
234
                         <router-link to="/landingPages">Landing Pages / Campaignes</router-link>
236
                       </li>
235
                       </li>
237
                       <li>
236
                       <li>
238
-                        <a class="btn-white-border p-2" @click="logout(routerGoTo('/user/login'))"
239
-                          >Logout</a
237
+                        <router-link class="btn-white-border p-2" to="/user/login"
238
+                          >Logout</router-link
240
                         >
239
                         >
241
                       </li>
240
                       </li>
242
                     </ul>
241
                     </ul>
243
                   </li>
242
                   </li>
243
+
244
                   <li v-if="!isLoggedIn">
244
                   <li v-if="!isLoggedIn">
245
-                    <router-link class="btn-white-border p-2" to="/user/login">Login</router-link>
245
+                    <router-link class="btn-white-border p-2 ml-1 mr-1" to="/user/login"
246
+                      >Login</router-link
247
+                    >
246
                   </li>
248
                   </li>
247
 
249
 
248
                   <li v-if="!isLoggedIn" class="menu-has-children">
250
                   <li v-if="!isLoggedIn" class="menu-has-children">
250
                       @mouseover="registerClass = 'ts-display'"
252
                       @mouseover="registerClass = 'ts-display'"
251
                       @mouseleave="registerClass = 'no-display'"
253
                       @mouseleave="registerClass = 'no-display'"
252
                     ></div>
254
                     ></div>
253
-                    <a href="#" class="sf-with-ul btn-solid-blue pt-2 pb-1" style="height:39px">
255
+                    <a href="#" class="sf-with-ul btn-solid-blue pt-2 pb-1" style="height:39px;">
254
                       Register
256
                       Register
255
                     </a>
257
                     </a>
256
-                    <ul style="margin-top:-10px;text-align:left" :class="registerClass">
258
+                    <ul style="margin-top:-10px;" :class="registerClass">
257
                       <li>
259
                       <li>
258
                         <router-link to="/user/register">Register</router-link>
260
                         <router-link to="/user/register">Register</router-link>
259
                       </li>
261
                       </li>
343
     },
345
     },
344
     // eslint-disable-next-line vue/return-in-computed-property
346
     // eslint-disable-next-line vue/return-in-computed-property
345
     Logout() {
347
     Logout() {
346
-      return this.logout();
348
+      this.logout().then(res => {
349
+        console.log("something");
350
+      });
351
+      //return this.logout();
347
     }
352
     }
348
   }
353
   }
349
 };
354
 };
377
   }
382
   }
378
 
383
 
379
   #header {
384
   #header {
380
-    min-height: 145px;
385
+    min-height: 120px;
381
   }
386
   }
382
 }
387
 }
383
 
388
 
391
 /* Medium devices (landscape tablets, 768px and up) */
396
 /* Medium devices (landscape tablets, 768px and up) */
392
 @media only screen and (min-width: 768px) {
397
 @media only screen and (min-width: 768px) {
393
   #header {
398
   #header {
394
-    min-height: 120px;
399
+    height: 170px;
395
   }
400
   }
396
 }
401
 }
397
 
402
 
398
 /* Large devices (laptops/desktops, 992px and up) */
403
 /* Large devices (laptops/desktops, 992px and up) */
399
 @media only screen and (min-width: 992px) {
404
 @media only screen and (min-width: 992px) {
405
+  #header {
406
+    height: 165px;
407
+  }
400
 }
408
 }
401
 
409
 
402
 /* Extra large devices (large laptops and desktops, 1200px and up) */
410
 /* Extra large devices (large laptops and desktops, 1200px and up) */
403
 @media only screen and (min-width: 1200px) {
411
 @media only screen and (min-width: 1200px) {
412
+  #header {
413
+    height: 120px;
414
+  }
404
 }
415
 }
405
 </style>
416
 </style>

+ 4
- 3
src/components/timeshare/buy/latestWeeks.vue 查看文件

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 查看文件

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 查看文件

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 查看文件

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
 

+ 11
- 1
src/components/user/loginPage.vue 查看文件

79
 /* eslint-disable */
79
 /* eslint-disable */
80
 import { mapActions, mapState } from "vuex";
80
 import { mapActions, mapState } from "vuex";
81
 import alert from "../shared/alert.vue";
81
 import alert from "../shared/alert.vue";
82
+import Log from "../../assets/Log";
82
 import carousel from "vue-owl-carousel";
83
 import carousel from "vue-owl-carousel";
83
 export default {
84
 export default {
84
   name: "Login",
85
   name: "Login",
105
   computed: {
106
   computed: {
106
     ...mapState("authentication", ["token", "status"])
107
     ...mapState("authentication", ["token", "status"])
107
   },
108
   },
109
+  mounted() {
110
+    this.checkUserStatus();
111
+  },
108
   methods: {
112
   methods: {
109
-    ...mapActions("authentication", ["login", "init"]),
113
+    ...mapActions("authentication", ["login", "init", "logout"]),
110
     ToggleTrouble() {
114
     ToggleTrouble() {
111
       if (this.troubleToggle) {
115
       if (this.troubleToggle) {
112
         this.troubleToggle = false;
116
         this.troubleToggle = false;
121
           this.error = true;
125
           this.error = true;
122
         });
126
         });
123
     },
127
     },
128
+    checkUserStatus() {
129
+      if (Log.isLoggedIn()) {
130
+        this.logout();
131
+        this.$router.go();
132
+      }
133
+    },
124
     togglePassword() {
134
     togglePassword() {
125
       this.showPassword = true;
135
       this.showPassword = true;
126
       this.isPasswordShown = "text";
136
       this.isPasswordShown = "text";

+ 4
- 2
src/main.js 查看文件

7
 import router from "./router";
7
 import router from "./router";
8
 import store from "./store";
8
 import store from "./store";
9
 import * as VueGoogleMaps from "vue2-google-maps";
9
 import * as VueGoogleMaps from "vue2-google-maps";
10
+import Vuetify from "vuetify";
10
 
11
 
11
 Vue.use(EvaIcons);
12
 Vue.use(EvaIcons);
13
+Vue.use(Vuetify);
12
 Vue.use(VueGoogleMaps, {
14
 Vue.use(VueGoogleMaps, {
13
   load: {
15
   load: {
14
     key: "AIzaSyD8k_Kwml_C8IDfs-gX8JFV8acli3L9cAE",
16
     key: "AIzaSyD8k_Kwml_C8IDfs-gX8JFV8acli3L9cAE",
23
 });
25
 });
24
 Vue.config.productionTip = false;
26
 Vue.config.productionTip = false;
25
 //axios.defaults.baseURL = "http://localhost:57260";
27
 //axios.defaults.baseURL = "http://localhost:57260";
26
-axios.defaults.baseURL = "http://training.provision-sa.com:82";
27
-//axios.defaults.baseURL = "http://localhost:8080/";
28
+//axios.defaults.baseURL = "http://training.provision-sa.com:82";
29
+axios.defaults.baseURL = "http://localhost:8080/";
28
 
30
 
29
 Vue.prototype.$axios = axios;
31
 Vue.prototype.$axios = axios;
30
 
32
 

+ 2
- 2
vue.config.js 查看文件

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": {

Loading…
取消
儲存