diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 2ca23b8..4083a89 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -155,17 +155,24 @@ width: 435px; height: 625px; margin-right: 45px; - img{ - display: block; + .book-img{ + display: flex; + align-items: center; width: 100%; height: 520px; border-radius: 4px; } + img{ + display: block; + width: 100%; + height: 100%; + } .book-info{ - padding: 12px 0 20px 44px; + padding: 12px 0 0 44px; } .book-num{ right: 16px; + bottom: 0; } } @@ -181,14 +188,19 @@ display: flex; height: calc(100%/2 - 20px); justify-content: space-between; - img{ - display: block; + .book-img{ + display: flex; + align-items: center; width: 244px; height: 100%; margin-right: 20px; } + img{ + display: block; + width: 100%; + } .book-info{ - padding: 20px 0 0 0; + padding: 20px 10px 0 0; } .book-num{ left: 0; diff --git a/src/views/index.vue b/src/views/index.vue index 98a863a..67535f4 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -44,8 +44,8 @@ 更多
- - + +
@@ -56,7 +56,7 @@ 更多 - + @@ -98,7 +98,6 @@ export default { pageSize: 4 } FetchNewBookRecommend(params).then(res => { - console.log(res) let data = [] data = res.newbookList data.forEach(item => { diff --git a/src/views/module/bookListItem.vue b/src/views/module/bookListItem.vue index 14c37b1..f9536de 100644 --- a/src/views/module/bookListItem.vue +++ b/src/views/module/bookListItem.vue @@ -1,22 +1,23 @@