Sfoglia il codice sorgente

Styles and Property Listing

master
30117125 4 anni fa
parent
commit
01ad57678a

+ 11
- 2
src/components/property/ListProperty/contentSection.vue Vedi File

71
     CommercialCreate
71
     CommercialCreate
72
   },
72
   },
73
   methods: {
73
   methods: {
74
-    ...mapActions("property", ["getPropertyTypes"]),
74
+    ...mapActions("property", ["getPropertyTypes", "getPropertyFields"]),
75
     getPropTypeResidential() {
75
     getPropTypeResidential() {
76
       this.getPropertyTypes("Residential");
76
       this.getPropertyTypes("Residential");
77
+      this.getPropertyFields("Residential");
77
     },
78
     },
78
     getPropTypeCommercial() {
79
     getPropTypeCommercial() {
79
       this.getPropertyTypes("Commercial");
80
       this.getPropertyTypes("Commercial");
81
+      this.getPropertyFields("Commercial");
80
     }
82
     }
81
   },
83
   },
82
   mounted() {
84
   mounted() {
83
     this.getPropertyTypes("Residential");
85
     this.getPropertyTypes("Residential");
86
+    this.getPropertyFields("Residential");
84
   },
87
   },
85
   computed: {
88
   computed: {
86
     ...mapState("property", ["propertyTypes"])
89
     ...mapState("property", ["propertyTypes"])
88
 };
91
 };
89
 </script>
92
 </script>
90
 
93
 
91
-<style lang="scss" scoped></style>
94
+<style lang="scss" scoped>
95
+.nav-pills .nav-link.active {
96
+  color: #1b75bb;
97
+  font-weight: 400;
98
+  background-color: white;
99
+}
100
+</style>

+ 1
- 4
src/components/property/commercial/commercialSearchResults.vue Vedi File

85
   },
85
   },
86
   mounted() {
86
   mounted() {
87
     this.wait = true;
87
     this.wait = true;
88
-    console.log(this.propertySearch.salesType);
89
-
90
     if (typeof this.propertySearch.propertyUsageType === "undefined") {
88
     if (typeof this.propertySearch.propertyUsageType === "undefined") {
91
-      this.propertySearch.propertyUsageType = "Residential";
89
+      this.propertySearch.propertyUsageType = "Commercial";
92
     }
90
     }
93
     if (this.user) {
91
     if (this.user) {
94
       this.propertySearch.userName = this.user.username;
92
       this.propertySearch.userName = this.user.username;
97
     this.searchProperties(this.propertySearch).then(fulfilled => {
95
     this.searchProperties(this.propertySearch).then(fulfilled => {
98
       this.wait = false;
96
       this.wait = false;
99
     });
97
     });
100
-    console.log(this.properties);
101
   },
98
   },
102
   methods: {
99
   methods: {
103
     ...mapActions("propertySearch", [
100
     ...mapActions("propertySearch", [

+ 2
- 3
src/components/property/commercial/createProperty/commercialCreateNew.vue Vedi File

5
         <div class="row">
5
         <div class="row">
6
           <div class="col">
6
           <div class="col">
7
             <label v-if="!salesType" class="uniSelectLabel" for="saleType">Sale Type</label>
7
             <label v-if="!salesType" class="uniSelectLabel" for="saleType">Sale Type</label>
8
-            <select class="form-control uniSelect mb-5" name="saleType" v-model="salesType">
8
+            <select class="form-control uniSelect mb-3" name="saleType" v-model="salesType">
9
               <option value="Sale">To Sell</option>
9
               <option value="Sale">To Sell</option>
10
               <option value="Rental">To Rent</option>
10
               <option value="Rental">To Rent</option>
11
             </select>
11
             </select>
133
         <div class="section-header">
133
         <div class="section-header">
134
           <h2>Property Information</h2>
134
           <h2>Property Information</h2>
135
         </div>
135
         </div>
136
-
137
         <div class="row mb-3" v-for="item in propertyFields" :key="item.id">
136
         <div class="row mb-3" v-for="item in propertyFields" :key="item.id">
138
           <div class="col-md-6" v-for="field in item.fields" :key="field.id">
137
           <div class="col-md-6" v-for="field in item.fields" :key="field.id">
139
             <div v-if="field.type === 'number'">
138
             <div v-if="field.type === 'number'">
383
     this.salesType = this.$route.params.saleType;
382
     this.salesType = this.$route.params.saleType;
384
 
383
 
385
     this.getPropertyOverviewFields();
384
     this.getPropertyOverviewFields();
386
-    this.getPropertyFields(this.propertyType);
385
+    //this.getPropertyFields(this.propertyType);
387
   },
386
   },
388
   computed: {
387
   computed: {
389
     ...mapState("property", [
388
     ...mapState("property", [

+ 27
- 3
src/components/property/commercial/singleView/contentSection.vue Vedi File

63
         </div>
63
         </div>
64
         <div class="col-md-8 p-5 resort-profile">
64
         <div class="col-md-8 p-5 resort-profile">
65
           <h2 v-if="property.showAddress">
65
           <h2 v-if="property.showAddress">
66
-            {{ property.propertyName }} / {{ property.streetNumber }} {{ property.streetName }}
66
+            <div style="display:inline" v-if="property.propertyName !== null">
67
+              {{ property.propertyName }} /
68
+            </div>
69
+            {{ property.streetNumber }} {{ property.streetName }}
67
           </h2>
70
           </h2>
68
           <h2>{{ property.propertyName }}</h2>
71
           <h2>{{ property.propertyName }}</h2>
69
-          <div>
72
+          <p>{{ property.shortDescription }}</p>
73
+          <h4>Property Features</h4>
74
+          <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
75
+            <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
76
+              <div v-if="field.value.toUpperCase() != 'YES'">
77
+                <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
78
+              </div>
79
+              <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
80
+            </div>
81
+          </div>
82
+          <div class="mt-5" v-html="property.description"></div>
83
+          <h4 class="mt-5">Video Tour</h4>
84
+          <iframe
85
+            width="100%"
86
+            src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
87
+            frameborder="0"
88
+            allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
89
+            allowfullscreen
90
+            style="margin-bottom:-6px"
91
+            class="mt-3"
92
+          ></iframe>
93
+          <!-- <div>
70
             <table class="table table-striped">
94
             <table class="table table-striped">
71
               <thead>
95
               <thead>
72
                 <tr>
96
                 <tr>
98
                 </tr>
122
                 </tr>
99
               </tbody>
123
               </tbody>
100
             </table>
124
             </table>
101
-          </div>
125
+          </div> -->
102
 
126
 
103
           <!-- <div class="d-flex mt-3">
127
           <!-- <div class="d-flex mt-3">
104
             <iframe
128
             <iframe

+ 1
- 1
src/components/property/residential/createProperty/residentialCreateNew.vue Vedi File

435
     this.getPropertyTypes(this.propertyType);
435
     this.getPropertyTypes(this.propertyType);
436
 
436
 
437
     this.getPropertyOverviewFields();
437
     this.getPropertyOverviewFields();
438
-    this.getPropertyFields(this.propertyType);
438
+    //this.getPropertyFields(this.propertyType);
439
   },
439
   },
440
   computed: {
440
   computed: {
441
     ...mapState("property", [
441
     ...mapState("property", [

+ 25
- 20
src/components/property/residential/singleView/contentSection.vue Vedi File

30
           </div>
30
           </div>
31
           <div class="panel-left p-5" style="margin-top:130px">
31
           <div class="panel-left p-5" style="margin-top:130px">
32
             <h2>Property Detial</h2>
32
             <h2>Property Detial</h2>
33
+            <!-- TODO: Make it dynamic -->
33
             <h4 style="color:white">{{ property.price | toCurrency }}</h4>
34
             <h4 style="color:white">{{ property.price | toCurrency }}</h4>
34
             <p>#{{ property.propertyRef }}</p>
35
             <p>#{{ property.propertyRef }}</p>
35
             <p v-if="property.showAddress">{{ property.addressOther }}</p>
36
             <p v-if="property.showAddress">{{ property.addressOther }}</p>
36
             <p v-if="property.showAddress">{{ property.streetNumber }} {{ property.streetName }}</p>
37
             <p v-if="property.showAddress">{{ property.streetNumber }} {{ property.streetName }}</p>
37
             <p>{{ property.city }}, {{ property.suburb }}</p>
38
             <p>{{ property.city }}, {{ property.suburb }}</p>
39
+            <!-- <div v-for="(data, i) in property.displayData" :key="i">
40
+              {{ data }}
41
+            </div> -->
38
             <p>
42
             <p>
39
               Bedrooms {{ property.displayData[1].values[0].value }}, Bathrooms
43
               Bedrooms {{ property.displayData[1].values[0].value }}, Bathrooms
40
               {{ property.displayData[1].values[1].value }}
44
               {{ property.displayData[1].values[1].value }}
66
         </div>
70
         </div>
67
         <div class="col-md-8 p-5 resort-profile">
71
         <div class="col-md-8 p-5 resort-profile">
68
           <h2 v-if="property.showAddress">
72
           <h2 v-if="property.showAddress">
69
-            {{ property.propertyName }} / {{ property.streetNumber }} {{ property.streetName }}
73
+            <div style="display:inline" v-if="property.propertyName !== null">
74
+              {{ property.propertyName }} /
75
+            </div>
76
+            {{ property.streetNumber }} {{ property.streetName }}
70
           </h2>
77
           </h2>
71
           <h2 v-else>{{ property.propertyName }}</h2>
78
           <h2 v-else>{{ property.propertyName }}</h2>
72
           <div class="container">
79
           <div class="container">
100
                 </tr>
107
                 </tr>
101
               </tbody>
108
               </tbody>
102
             </table>-->
109
             </table>-->
103
-            <div v-for="(data, i) in property.displayData" :key="i">
104
-              <div class="content-header">
105
-                <h2>{{ data.groupName }}</h2>
110
+            <h4>Property Features</h4>
111
+            <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
112
+              <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
113
+                <div v-if="field.value.toUpperCase() != 'YES'">
114
+                  <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
115
+                </div>
116
+                <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
106
               </div>
117
               </div>
107
-              <table class="table table-striped">
108
-                <thead>
109
-                  <tr>
110
-                    <th v-for="(tableHead, j) in data.values" :key="j" scope="col">
111
-                      {{ tableHead.name }}
112
-                    </th>
113
-                  </tr>
114
-                </thead>
115
-                <tbody>
116
-                  <tr>
117
-                    <td v-for="(tableVal, k) in data.values" :key="k" scope="col">
118
-                      {{ tableVal.value }}
119
-                    </td>
120
-                  </tr>
121
-                </tbody>
122
-              </table>
123
             </div>
118
             </div>
124
           </div>
119
           </div>
120
+          <h4 class="mt-5">Video Tour</h4>
121
+          <iframe
122
+            width="100%"
123
+            src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
124
+            frameborder="0"
125
+            allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
126
+            allowfullscreen
127
+            style="margin-bottom:-6px"
128
+            class="mt-3"
129
+          ></iframe>
125
           <p></p>
130
           <p></p>
126
           <div class="d-flex mt-3">
131
           <div class="d-flex mt-3">
127
             <iframe
132
             <iframe

+ 2
- 2
vue.config.js Vedi File

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…
Annulla
Salva