From 824d4d2270d9e90e6e4519271ffbbc51987e11bb Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 17 May 2024 10:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E4=B9=A6=20=E6=96=87=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/book/index.vue | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/pages/book/index.vue b/pages/book/index.vue index 62a5283..2636db7 100644 --- a/pages/book/index.vue +++ b/pages/book/index.vue @@ -14,8 +14,8 @@ --> - + @@ -75,12 +75,14 @@ getBooks() { console.log("123") var that = this; - var host = "https://gb-test.ali251.langye.net" + var host = "https://gbyuyue.szgmbwg.org.cn" uni.request({ url: host + '/api/mobile/book/index', data: { page: 1, - page_size: 99, + page_size: 99, + sort_name:'datetime', + sort_type:"ASC", }, success: function(res) { console.log("res", res) @@ -123,10 +125,10 @@ height: 100vh; swiper { - height: calc(100vh - 450rpx) !important; + height: calc(100vh - 550rpx) !important; background-color: transparent!important; image { - height: 80%; + height: 85%; } } @@ -134,18 +136,24 @@ height:100%; } ::v-deep .u-swiper-indicator{ - bottom:30rpx; + bottom:150rpx!important; } ::v-deep .u-list-image-wrap{ - background-color: #fff; + // 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-title { - height: 20%; + height: 15%; display: flex; align-items: center; justify-content: space-around; color: #333; - font-size: 40rpx; + font-size: 38rpx; background-color: #fff; overflow: auto; white-space: break-spaces;