Browse Source

书架

master
xuhuajiao 3 years ago
parent
commit
fe48f18b6b
  1. 15
      src/views/bookRackList.vue

15
src/views/bookRackList.vue

@ -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, {

Loading…
Cancel
Save