diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 4083a89..07569e3 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -161,11 +161,13 @@ width: 100%; height: 520px; border-radius: 4px; + overflow: hidden; } img{ display: block; width: 100%; - height: 100%; + max-height: 100%; + object-fit: contain; } .book-info{ padding: 12px 0 0 44px; @@ -194,10 +196,13 @@ width: 244px; height: 100%; margin-right: 20px; + overflow: hidden; } img{ display: block; width: 100%; + max-height: calc(100%); + object-fit: contain; } .book-info{ padding: 20px 10px 0 0; @@ -229,10 +234,13 @@ width: 100%; height: 240px; margin-bottom: 10px; + overflow: hidden; } img{ display: block; width: 100%; + max-height: calc(100%); + object-fit: contain; } .book-title{ margin-bottom: 0; diff --git a/src/views/digitalResource.vue b/src/views/digitalResource.vue index 39b7a6c..6803c90 100644 --- a/src/views/digitalResource.vue +++ b/src/views/digitalResource.vue @@ -8,7 +8,7 @@
- +
{{ item.nrsTitle }}
diff --git a/src/views/module/bookDetails.vue b/src/views/module/bookDetails.vue index 9ba9d4a..63f68f4 100644 --- a/src/views/module/bookDetails.vue +++ b/src/views/module/bookDetails.vue @@ -10,17 +10,19 @@
- +

{{ bookData.bookName }}

作者:{{ bookData.bookAuthor }}

出版社:{{ bookData.Publish }}

-

简介:{{ bookData.gist }}

+

简介:{{ bookData.gist ? bookData.gist : '暂无简介' }}

所在位置:{{ bookData.bookPlace }} + + 所在位置
@@ -86,12 +88,17 @@ export default { justify-content: space-between; padding: 30px 0; .book-cover{ + display: flex; + align-items: center; width: 318px; height: 382px; margin-right: 40px; + overflow: hidden; img{ + display: block; width: 100%; - height: 100%; + max-height: calc(100%); + object-fit: contain; } } .book-desc{ diff --git a/src/views/module/bookList.vue b/src/views/module/bookList.vue index 3a1a12d..21c4196 100644 --- a/src/views/module/bookList.vue +++ b/src/views/module/bookList.vue @@ -15,7 +15,9 @@
@@ -89,10 +91,14 @@ export default { bottom: 20px; width: 318px; height: 382px; + display: flex; + align-items: center; overflow: hidden; img{ + display: block; width: 100%; vertical-align: middle; + object-fit: contain; } } .txt{ @@ -124,11 +130,19 @@ export default { margin-left: 48px; width: 300px; overflow: hidden; - // text-align: center; + .other-list-img{ + display: flex; + align-items: center; + width: 100%; + height: 360px; + overflow: hidden; + } img{ + display: block; width: 100%; + max-height: calc(100%); vertical-align: middle; - height: 360px; + object-fit: contain; } .book-name{ width: 100%; diff --git a/src/views/module/homeListItem.vue b/src/views/module/homeListItem.vue index f9536de..ed40e9b 100644 --- a/src/views/module/homeListItem.vue +++ b/src/views/module/homeListItem.vue @@ -3,7 +3,7 @@
- +

{{ item.nbName }}