ソースを参照

Styles and Property Listing

master
30117125 4年前
コミット
01ad57678a

+ 11
- 2
src/components/property/ListProperty/contentSection.vue ファイルの表示

@@ -71,16 +71,19 @@ export default {
71 71
     CommercialCreate
72 72
   },
73 73
   methods: {
74
-    ...mapActions("property", ["getPropertyTypes"]),
74
+    ...mapActions("property", ["getPropertyTypes", "getPropertyFields"]),
75 75
     getPropTypeResidential() {
76 76
       this.getPropertyTypes("Residential");
77
+      this.getPropertyFields("Residential");
77 78
     },
78 79
     getPropTypeCommercial() {
79 80
       this.getPropertyTypes("Commercial");
81
+      this.getPropertyFields("Commercial");
80 82
     }
81 83
   },
82 84
   mounted() {
83 85
     this.getPropertyTypes("Residential");
86
+    this.getPropertyFields("Residential");
84 87
   },
85 88
   computed: {
86 89
     ...mapState("property", ["propertyTypes"])
@@ -88,4 +91,10 @@ export default {
88 91
 };
89 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 ファイルの表示

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

+ 2
- 3
src/components/property/commercial/createProperty/commercialCreateNew.vue ファイルの表示

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

+ 27
- 3
src/components/property/commercial/singleView/contentSection.vue ファイルの表示

@@ -63,10 +63,34 @@
63 63
         </div>
64 64
         <div class="col-md-8 p-5 resort-profile">
65 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 70
           </h2>
68 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 94
             <table class="table table-striped">
71 95
               <thead>
72 96
                 <tr>
@@ -98,7 +122,7 @@
98 122
                 </tr>
99 123
               </tbody>
100 124
             </table>
101
-          </div>
125
+          </div> -->
102 126
 
103 127
           <!-- <div class="d-flex mt-3">
104 128
             <iframe

+ 1
- 1
src/components/property/residential/createProperty/residentialCreateNew.vue ファイルの表示

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

+ 25
- 20
src/components/property/residential/singleView/contentSection.vue ファイルの表示

@@ -30,11 +30,15 @@
30 30
           </div>
31 31
           <div class="panel-left p-5" style="margin-top:130px">
32 32
             <h2>Property Detial</h2>
33
+            <!-- TODO: Make it dynamic -->
33 34
             <h4 style="color:white">{{ property.price | toCurrency }}</h4>
34 35
             <p>#{{ property.propertyRef }}</p>
35 36
             <p v-if="property.showAddress">{{ property.addressOther }}</p>
36 37
             <p v-if="property.showAddress">{{ property.streetNumber }} {{ property.streetName }}</p>
37 38
             <p>{{ property.city }}, {{ property.suburb }}</p>
39
+            <!-- <div v-for="(data, i) in property.displayData" :key="i">
40
+              {{ data }}
41
+            </div> -->
38 42
             <p>
39 43
               Bedrooms {{ property.displayData[1].values[0].value }}, Bathrooms
40 44
               {{ property.displayData[1].values[1].value }}
@@ -66,7 +70,10 @@
66 70
         </div>
67 71
         <div class="col-md-8 p-5 resort-profile">
68 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 77
           </h2>
71 78
           <h2 v-else>{{ property.propertyName }}</h2>
72 79
           <div class="container">
@@ -100,28 +107,26 @@
100 107
                 </tr>
101 108
               </tbody>
102 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 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 118
             </div>
124 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 130
           <p></p>
126 131
           <div class="d-flex mt-3">
127 132
             <iframe

+ 2
- 2
vue.config.js ファイルの表示

@@ -2,8 +2,8 @@ module.exports = {
2 2
   devServer: {
3 3
     proxy: {
4 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 7
         changeOrigin: true
8 8
       },
9 9
       "/nph-srep": {

読み込み中…
キャンセル
保存