diff --git a/pages/book/index.vue b/pages/book/index.vue index 2636db7..d00e547 100644 --- a/pages/book/index.vue +++ b/pages/book/index.vue @@ -14,8 +14,9 @@ --> - + @@ -39,7 +40,8 @@ navBarTop: 0, bookList: [], bookIndex: 0, - swiperHeight: 0 + swiperHeight: 0, + addOpcity: true } }, @@ -68,6 +70,10 @@ }); }, methods: { + changeSwiper(e) { + console.log(e) + this.addOpcity = false + }, changeBook(e) { console.log(e) this.bookIndex = e.detail.current @@ -80,9 +86,9 @@ url: host + '/api/mobile/book/index', data: { page: 1, - page_size: 99, - sort_name:'datetime', - sort_type:"ASC", + page_size: 99, + sort_name: 'datetime', + sort_type: "ASC", }, success: function(res) { console.log("res", res) @@ -95,6 +101,7 @@ }) }) that.bookList = arr + that.addOpcity = true console.log(that.bookList) }, fail: function(res) { @@ -126,27 +133,37 @@ swiper { height: calc(100vh - 550rpx) !important; - background-color: transparent!important; + background-color: transparent !important; + image { height: 85%; } } - ::v-deep .u-swiper-wrap{ - height:100%; - } - ::v-deep .u-swiper-indicator{ - bottom:150rpx!important; - } - ::v-deep .u-list-image-wrap{ - // background-color: #fff; - } - ::v-deep .u-swiper-image{ - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%,-50%) scale(1.7); + + ::v-deep .u-swiper-wrap { + height: 100%; + } + + ::v-deep .u-swiper-indicator { + bottom: 150rpx !important; + } + + ::v-deep .u-list-image-wrap { + // background-color: #fff; } + + .opacity0 swiper swiper-item:last-child { + opacity: 0; + } + + ::v-deep .u-swiper-image { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%) scale(1.7); + } + ::v-deep .u-swiper-title { height: 15%; display: flex; @@ -161,9 +178,11 @@ text-align: center; } - ::v-deep .u-indicator-item-round-active{ - background-color: #9f4946; + + ::v-deep .u-indicator-item-round-active { + background-color: #9f4946; } + &-item { padding: 0 30rpx; // transform: scale(.7);