소스 검색

fixed home showroomcarroussel bug

bach 3 년 전
부모
커밋
6722964893

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 5 - 3
web/themes/custom/materiotheme/vuejs/components/Pages/Home.vue

@@ -50,10 +50,11 @@ export default {
     initShowroomCarroussel(){
       console.log('startShowroomCarroussel')
       this.showrooms = document.querySelectorAll('.field--name-computed-showrooms-reference > .field__item')
-      console.log('showrooms', this.showrooms)
-      if (!this.showrooms.lenght) {
+      console.log('showrooms', this.showrooms.length, this.showrooms)
+      if (!this.showrooms.length) {
         return
       }
+      // console.log('TEST')
       for (let i = 0; i < this.showrooms.length; i++) {
         if (i%2 === 0) {
           this.showroomsOdd.push(this.showrooms[i])
@@ -78,6 +79,7 @@ export default {
       // this.switchShowroomCarroussel()
     },
     checkShowroomMode(mq){
+      console.log('checkShowroomMode', mq)
       // default mode 1
       let newmode = 1
       if (mq.matches) {
@@ -107,7 +109,7 @@ export default {
       this.switchShowroomCarroussel()
     },
     switchShowroomCarroussel(){
-      // console.log('switchShowroomCarroussel i', $elmts, i)
+      console.log('switchShowroomCarroussel')
       if (this.showroomMode === 1) {
         this.showrooms[this.showroomI].classList.add('active')
         this.showrooms[this.showroomI-1 < 0 ? this.showrooms.length -1 : this.showroomI-1].classList.remove('active')

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.