|
|
@ -62,16 +62,7 @@ export default { |
|
|
|
listData: [], |
|
|
|
bookList: [], |
|
|
|
classnameL: 'rack-direct-active', |
|
|
|
classnameR: null, |
|
|
|
swiperOption: { |
|
|
|
slidesPerView: 'auto', |
|
|
|
slidesPerGroup: 15, |
|
|
|
observer: true, |
|
|
|
navigation: { |
|
|
|
nextEl: '.icon-r', |
|
|
|
prevEl: '.icon-l' |
|
|
|
} |
|
|
|
} |
|
|
|
classnameR: null |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -79,10 +70,10 @@ export default { |
|
|
|
this.bookList = data1.rackBook |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.initSwiper1() |
|
|
|
this.initSwiper() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initSwiper1() { |
|
|
|
initSwiper() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.bookList.forEach((el, index) => { |
|
|
|
new Swiper('.swiper' + index, { |
|
|
|