Explorar el Código

Property Ref

master
30117125 hace 4 años
padre
commit
b2b6730a74

+ 1
- 1
src/App.vue Ver fichero

@@ -7,7 +7,7 @@
7 7
     <SearchTab v-if="!isLandingPage" />
8 8
     <NavBar v-if="!isLandingPage" @routerGoTo="routerGoTo" />
9 9
     <div v-if="!isLandingPage"></div>
10
-    <router-view @setLandingPage="setLandingPage" />
10
+    <router-view @setLandingPage="setLandingPage" style="margin-top:190px" />
11 11
     <FooterSection v-if="!isLandingPage" />
12 12
   </div>
13 13
 </template>

+ 7
- 4
src/components/home/carouselSection.vue Ver fichero

@@ -267,32 +267,35 @@ export default {
267 267
 /* Extra small devices (phones, 600px and down) */
268 268
 @media only screen and (max-width: 600px) {
269 269
   .introContentAdjust {
270
-    margin-top: -35px !important;
270
+    margin-top: 140px !important;
271 271
   }
272 272
 }
273 273
 
274 274
 /* Small devices (portrait tablets and large phones, 600px and up) */
275 275
 @media only screen and (min-width: 600px) {
276 276
   .introContentAdjust {
277
-    margin-top: -15px !important;
277
+    margin-top: 150px !important;
278 278
   }
279 279
 }
280 280
 
281 281
 /* Medium devices (landscape tablets, 768px and up) */
282 282
 @media only screen and (min-width: 768px) {
283
+  .introContentAdjust {
284
+    margin-top: 160px !important;
285
+  }
283 286
 }
284 287
 
285 288
 /* Large devices (laptops/desktops, 992px and up) */
286 289
 @media only screen and (min-width: 992px) {
287 290
   .introContentAdjust {
288
-    margin-top: 25px !important;
291
+    margin-top: 160px !important;
289 292
   }
290 293
 }
291 294
 
292 295
 /* Extra large devices (large laptops and desktops, 1200px and up) */
293 296
 @media only screen and (min-width: 1200px) {
294 297
   .introContentAdjust {
295
-    margin-top: 0px !important;
298
+    margin-top: 120px !important;
296 299
   }
297 300
 }
298 301
 </style>

+ 15
- 3
src/components/property/commercial/createProperty/commercialCreate.vue Ver fichero

@@ -1,11 +1,10 @@
1 1
 <template>
2 2
   <div>
3 3
     <carouselSection :salesType="salesType" />
4
-
5 4
     <main id="main" style="margin-top:-20px">
6 5
       <div class="container pt-5 pb-5">
7 6
         <div class="row">
8
-          <div class="col-md-5">
7
+          <div class="col-md-6">
9 8
             <div v-if="!property.propertyName">
10 9
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
11 10
             </div>
@@ -16,7 +15,20 @@
16 15
               v-model="property.propertyName"
17 16
             />
18 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 32
             <select
21 33
               class="form-control uniSelect"
22 34
               name="propertyType"

+ 15
- 2
src/components/property/residential/createProperty/residentialCreate.vue Ver fichero

@@ -5,7 +5,7 @@
5 5
     <main id="main" style="margin-top:-20px">
6 6
       <div class="container pt-5 pb-5">
7 7
         <div class="row">
8
-          <div class="col-md-5">
8
+          <div class="col-md-6">
9 9
             <div v-if="!property.propertyName">
10 10
               <label for="propertyName" class="uniSelectLabel">PROPERTY NAME</label>
11 11
             </div>
@@ -16,7 +16,20 @@
16 16
               v-model="property.propertyName"
17 17
             />
18 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 33
             <select
21 34
               class="form-control uniSelect"
22 35
               name="propertyType"

+ 6
- 1
src/components/propertyManagement/rentalManagement/contentSection.vue Ver fichero

@@ -19,7 +19,12 @@
19 19
       <div class="row">
20 20
         <div class="col-md-6"></div>
21 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 28
         </div>
24 29
       </div>
25 30
 

+ 6
- 1
src/components/propertyManagement/sectionalTitle/ourServicesSection.vue Ver fichero

@@ -18,7 +18,12 @@
18 18
       <div class="row mt-2">
19 19
         <div class="col-md-6"></div>
20 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 27
         </div>
23 28
       </div>
24 29
       <div class="row">

+ 11
- 5
src/components/shared/footerSection.vue Ver fichero

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

+ 50
- 41
src/components/shared/navBar.vue Ver fichero

@@ -4,10 +4,7 @@
4 4
       <i class="fa fa-bars"></i>
5 5
     </button> -->
6 6
     <div>
7
-      <header
8
-        id="header"
9
-        style="width: 100%; position: fixed; top:0px; z-index: 50;min-height:120px"
10
-      >
7
+      <header id="header" style="width: 100%; position: fixed; top:0px; z-index: 50;">
11 8
         <div class="container">
12 9
           <div class="row">
13 10
             <div id="logo" class="col-md-3 col-xs-4 pull-left">
@@ -43,31 +40,7 @@
43 40
               </div>
44 41
               <nav id="nav-menu-container">
45 42
                 <ul class="nav-menu sf-js-enabled sf-arrows">
46
-                  <li class="menu-has-children">
47
-                    <div
48
-                      @mouseover="timeShareClass = 'ts-display'"
49
-                      @mouseleave="timeShareClass = 'no-display'"
50
-                    ></div>
51
-                    <a href="#" class="sf-with-ul">
52
-                      Timeshare
53
-                    </a>
54
-                    <ul style="margin-top:-10px;text-align:left" :class="timeShareClass">
55
-                      <li>
56
-                        <router-link to="/timeshare/buy">To Buy</router-link>
57
-                      </li>
58
-                      <li>
59
-                        <router-link to="/timeshare/sell">To Sell</router-link>
60
-                      </li>
61
-                      <li>
62
-                        <router-link to="/timeshare/faq">FAQ</router-link>
63
-                      </li>
64
-                      <li v-if="isLoggedIn">
65
-                        <hr />
66
-                        <router-link to="/timeshare/myWeeks">My Timeshare Weeks</router-link>
67
-                      </li>
68
-                    </ul>
69
-                  </li>
70
-                  <li class="menu-has-children">
43
+                  <li class="menu-has-children" style="margin-left:-20px">
71 44
                     <div
72 45
                       @mouseover="commercialClass = 'ts-display'"
73 46
                       @mouseleave="commercialClass = 'no-display'"
@@ -88,7 +61,7 @@
88 61
                       </li>
89 62
                     </ul>
90 63
                   </li>
91
-                  <li class="menu-has-children">
64
+                  <li class="menu-has-children mx-1">
92 65
                     <div
93 66
                       @mouseover="residentialClass = 'ts-display'"
94 67
                       @mouseleave="residentialClass = 'no-display'"
@@ -109,6 +82,30 @@
109 82
                       </li>
110 83
                     </ul>
111 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>
112 109
                   <!-- <li class="menu-has-children">
113 110
                     <div
114 111
                       @mouseover="propertiesClass = 'ts-display'"
@@ -133,7 +130,7 @@
133 130
                       </li>
134 131
                     </ul>
135 132
                   </li> -->
136
-                  <li class="menu-has-children">
133
+                  <li class="menu-has-children mx-1">
137 134
                     <div
138 135
                       @mouseover="propManClass = 'ts-display'"
139 136
                       @mouseleave="propManClass = 'no-display'"
@@ -154,7 +151,7 @@
154 151
                       </li>
155 152
                     </ul>
156 153
                   </li>
157
-                  <li class="menu-has-children">
154
+                  <li class="menu-has-children mx-1">
158 155
                     <div
159 156
                       @mouseover="aboutClass = 'ts-display'"
160 157
                       @mouseleave="aboutClass = 'no-display'"
@@ -171,10 +168,10 @@
171 168
                       </li>
172 169
                     </ul>
173 170
                   </li>
174
-                  <li>
171
+                  <li class="mx-1">
175 172
                     <router-link to="/share/contact">Contact Us</router-link>
176 173
                   </li>
177
-                  <li v-if="isLoggedIn" class="menu-has-children">
174
+                  <li v-if="isLoggedIn" class="menu-has-children mx-1">
178 175
                     <div
179 176
                       @mouseover="userClass = 'ts-display'"
180 177
                       @mouseleave="userClass = 'no-display'"
@@ -237,14 +234,17 @@
237 234
                         <router-link to="/landingPages">Landing Pages / Campaignes</router-link>
238 235
                       </li>
239 236
                       <li>
240
-                        <a class="btn-white-border p-2" @click="logout(routerGoTo('/user/login'))"
241
-                          >Logout</a
237
+                        <router-link class="btn-white-border p-2" to="/user/login"
238
+                          >Logout</router-link
242 239
                         >
243 240
                       </li>
244 241
                     </ul>
245 242
                   </li>
243
+
246 244
                   <li v-if="!isLoggedIn">
247
-                    <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
+                    >
248 248
                   </li>
249 249
 
250 250
                   <li v-if="!isLoggedIn" class="menu-has-children">
@@ -252,10 +252,10 @@
252 252
                       @mouseover="registerClass = 'ts-display'"
253 253
                       @mouseleave="registerClass = 'no-display'"
254 254
                     ></div>
255
-                    <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;">
256 256
                       Register
257 257
                     </a>
258
-                    <ul style="margin-top:-10px;text-align:left" :class="registerClass">
258
+                    <ul style="margin-top:-10px;" :class="registerClass">
259 259
                       <li>
260 260
                         <router-link to="/user/register">Register</router-link>
261 261
                       </li>
@@ -345,7 +345,10 @@ export default {
345 345
     },
346 346
     // eslint-disable-next-line vue/return-in-computed-property
347 347
     Logout() {
348
-      return this.logout();
348
+      this.logout().then(res => {
349
+        console.log("something");
350
+      });
351
+      //return this.logout();
349 352
     }
350 353
   }
351 354
 };
@@ -393,15 +396,21 @@ export default {
393 396
 /* Medium devices (landscape tablets, 768px and up) */
394 397
 @media only screen and (min-width: 768px) {
395 398
   #header {
396
-    min-height: 120px;
399
+    height: 170px;
397 400
   }
398 401
 }
399 402
 
400 403
 /* Large devices (laptops/desktops, 992px and up) */
401 404
 @media only screen and (min-width: 992px) {
405
+  #header {
406
+    height: 165px;
407
+  }
402 408
 }
403 409
 
404 410
 /* Extra large devices (large laptops and desktops, 1200px and up) */
405 411
 @media only screen and (min-width: 1200px) {
412
+  #header {
413
+    height: 120px;
414
+  }
406 415
 }
407 416
 </style>

+ 0
- 23
src/components/shared/navBarNew.vue Ver fichero

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

+ 11
- 1
src/components/user/loginPage.vue Ver fichero

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

+ 2
- 0
src/main.js Ver fichero

@@ -7,8 +7,10 @@ import App from "./App.vue";
7 7
 import router from "./router";
8 8
 import store from "./store";
9 9
 import * as VueGoogleMaps from "vue2-google-maps";
10
+import Vuetify from "vuetify";
10 11
 
11 12
 Vue.use(EvaIcons);
13
+Vue.use(Vuetify);
12 14
 Vue.use(VueGoogleMaps, {
13 15
   load: {
14 16
     key: "AIzaSyD8k_Kwml_C8IDfs-gX8JFV8acli3L9cAE",

Loading…
Cancelar
Guardar