{{ bookData.bookName }}
作者:{{ bookData.bookAuthor }}
出版社:{{ bookData.Publish }}
-简介:{{ bookData.gist }}
+简介:{{ bookData.gist ? bookData.gist : '暂无简介' }}
From 091a4477211697101a9c774cc72cf297f7b51e5d Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 28 Sep 2022 17:04:28 +0800 Subject: [PATCH] =?UTF-8?q?img=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/index.scss | 10 +++++++++- src/views/digitalResource.vue | 2 +- src/views/module/bookDetails.vue | 13 ++++++++++--- src/views/module/bookList.vue | 20 +++++++++++++++++--- src/views/module/homeListItem.vue | 2 +- 5 files changed, 38 insertions(+), 9 deletions(-) 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 @@
作者:{{ bookData.bookAuthor }}
出版社:{{ bookData.Publish }}
-简介:{{ bookData.gist }}
+简介:{{ bookData.gist ? bookData.gist : '暂无简介' }}
{{ item.nbName || item.hbName }}