소스 검색

Remove Carousel for dynamic images

master
30117125 4 년 전
부모
커밋
34a4543acb

+ 1
- 1
src/components/admin/status/editTimeShareAdminPage.vue 파일 보기

@@ -111,7 +111,7 @@
111 111
                       class="form-control"
112 112
                       name="week"
113 113
                       id="week"
114
-                      placeholder="UNIT / WEEK NUMBER"
114
+                      placeholder="WEEK MODULE"
115 115
                       v-model="week.module"
116 116
                       data-msg="Please enter week number"
117 117
                     />

+ 2
- 2
src/components/property/commercial/singleView/singleCommercialPage.vue 파일 보기

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3
-    <carouselSection :propertyImages="propertyImages" @Loaded="carouselLoaded = true" />
4
-    <main id="main" style="margin-top:-20px">
3
+    <!-- <carouselSection :propertyImages="propertyImages" @Loaded="carouselLoaded = true" /> -->
4
+    <main id="main" style="margin-top:20px">
5 5
       <contentSection
6 6
         :property="property"
7 7
         :propertyImages="propertyImages"

+ 2
- 2
src/components/property/residential/singleView/singleResidentialPage.vue 파일 보기

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3
-    <carouselSection :propertyImages="propertyImages" @Loaded="CarouselDone" />
4
-    <main id="main" style="margin-top:-20px">
3
+    <!-- <carouselSection :propertyImages="propertyImages" @Loaded="CarouselDone" /> -->
4
+    <main id="main" style="margin-top:20px">
5 5
       <contentSection :property="property" :propertyImages="propertyImages" @Loaded="ContentDone" />
6 6
     </main>
7 7
     <div v-if="Wait" id="preloader"></div>

+ 7
- 7
src/components/timeshare/resort/resortPage.vue 파일 보기

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <carouselSection v-if="boolLoaded" :resortImages="resort.images" />
3
+    <!-- <carouselSection v-if="boolLoaded" :resortImages="resort.images" /> -->
4 4
     <main id="main" style="margin-top:-20px">
5 5
       <contentSection :resortCode="resortCode" />
6 6
     </main>
@@ -15,15 +15,15 @@ import contentSection from "./contentSection";
15 15
 export default {
16 16
   components: {
17 17
     carouselSection,
18
-    contentSection,
18
+    contentSection
19 19
   },
20 20
   data() {
21 21
     return {
22
-      boolLoaded: false,
22
+      boolLoaded: false
23 23
     };
24 24
   },
25 25
   props: {
26
-    resortCode: {},
26
+    resortCode: {}
27 27
   },
28 28
   async created() {
29 29
     this.getResortData(this.resortCode);
@@ -37,14 +37,14 @@ export default {
37 37
       return this.resort
38 38
         ? `http://maps.google.com/maps?q=${this.resort.prLatitude},${this.resort.prLongitude}&z=15&output=embed`
39 39
         : "";
40
-    },
40
+    }
41 41
   },
42 42
   methods: {
43 43
     ...mapActions("resort", ["getResortData"]),
44 44
     routerGoTo(goto) {
45 45
       this.$router.push(goto);
46
-    },
47
-  },
46
+    }
47
+  }
48 48
 };
49 49
 </script>
50 50
 

+ 3
- 3
src/components/timeshare/resort/resortPageNew.vue 파일 보기

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3
-    <carouselSection v-if="!wait" :resortImages="resort.images" />
4
-    <main id="main" style="margin-top:-20px;">
3
+    <!-- <carouselSection v-if="!wait" :resortImages="resort.images" /> -->
4
+    <main id="main" style="margin-top:20px;">
5 5
       <section>
6 6
         <div class="container">
7 7
           <div class="row" id="resort-profile">
@@ -80,7 +80,7 @@ export default {
80 80
     }
81 81
   },
82 82
   computed: {
83
-    ...mapState("resort", ["resort"])
83
+    ...mapState("resort", ["resort", "images"])
84 84
   },
85 85
   created() {
86 86
     this.getResortData(this.resortCode).then(() => (this.wait = false));

+ 9
- 9
src/components/timeshare/resort/unit/unitPageNew.vue 파일 보기

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <main id="main" style="padding-bottom:50px">
3
-    <carouselSection v-if="!wait" :resortImages="resort.images" />
3
+    <!-- <carouselSection v-if="!wait" :resortImages="resort.images" /> -->
4 4
     <summarySection :resortCode="resortCode" :unitNumber="unitNumber" />
5 5
     <div class="container">
6 6
       <div class="row mt-5">
@@ -33,15 +33,15 @@ export default {
33 33
     gallerySection,
34 34
     tabSection,
35 35
     summarySection,
36
-    carouselSection,
36
+    carouselSection
37 37
   },
38 38
   props: {
39 39
     resortCode: {},
40
-    unitNumber: {},
40
+    unitNumber: {}
41 41
   },
42 42
   data() {
43 43
     return {
44
-      wait: false,
44
+      wait: false
45 45
     };
46 46
   },
47 47
   mounted() {
@@ -55,7 +55,7 @@ export default {
55 55
     //   this.boolLoaded = true;
56 56
     // }, 500);
57 57
     this.wait = true;
58
-    this.getResortData(this.resortCode).then((fulfilled) => {
58
+    this.getResortData(this.resortCode).then(fulfilled => {
59 59
       this.applyResortFilter(this.resortCode);
60 60
       this.getWeeks();
61 61
       this.wait = false;
@@ -65,7 +65,7 @@ export default {
65 65
     ...mapState("resort", ["resort"]),
66 66
 
67 67
     ...mapGetters({
68
-      weekById: "weekList/weekById",
68
+      weekById: "weekList/weekById"
69 69
     }),
70 70
     week() {
71 71
       return this.weekById(this.resortCode, this.unitNumber);
@@ -74,7 +74,7 @@ export default {
74 74
       var layouts = [];
75 75
       layouts.push(this.resort.layout);
76 76
       return layouts;
77
-    },
77
+    }
78 78
     // ...mapState('week', ['currentWeek']),
79 79
   },
80 80
   methods: {
@@ -87,8 +87,8 @@ export default {
87 87
         return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
88 88
       }
89 89
       return "";
90
-    },
91
-  },
90
+    }
91
+  }
92 92
 };
93 93
 </script>
94 94
 

+ 1
- 1
src/components/timeshare/sell/contentSection.vue 파일 보기

@@ -169,7 +169,7 @@
169 169
                     class="form-control"
170 170
                     name="week"
171 171
                     id="week"
172
-                    placeholder="UNIT / WEEK NUMBER"
172
+                    placeholder="WEEK MODULE"
173 173
                     v-model="sellItem.module"
174 174
                     data-msg="Please enter week number"
175 175
                   />

+ 13
- 0
src/store/modules/timeshare/resort.js 파일 보기

@@ -48,6 +48,7 @@ export default {
48 48
       dispatch("getImage2", resortCode);
49 49
       dispatch("getImage3", resortCode);
50 50
       dispatch("getImage4", resortCode);
51
+      dispatch("getImage5", resortCode);
51 52
       dispatch("getLayout", resortCode);
52 53
     },
53 54
     getDescription({ commit }, resortCode) {
@@ -110,6 +111,18 @@ export default {
110 111
         })
111 112
         .catch(console.error);
112 113
     },
114
+    getImage5({ commit }, resortCode) {
115
+      axios
116
+        .get(
117
+          `https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/${resortCode}/image/5`
118
+        )
119
+        .then(result => {
120
+          if (result.data && result.data.length > 0) {
121
+            commit("addImage", result.data);
122
+          }
123
+        })
124
+        .catch(console.error);
125
+    },
113 126
     getLayout({ commit }, resortCode) {
114 127
       axios
115 128
         .get(

Loading…
취소
저장