{{ bookData.bookName }}
作者:{{ bookData.bookAuthor }}
出版社:{{ bookData.Publish }}
-简介:{{ bookData.gist }}
+简介:{{ bookData.gist ? bookData.gist : '暂无简介' }}
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 }}