From 5f00696dfb25bc90034448ceb634ed1ef256681a Mon Sep 17 00:00:00 2001 From: qiyunfeng-create <1940665526@qq.com> Date: 星期四, 21 八月 2025 21:13:35 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/xiehe_website --- src/views/personalCenter/course.vue | 36 +++++++++++++++++++++++++----------- 1 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/views/personalCenter/course.vue b/src/views/personalCenter/course.vue index 9652dc9..226347d 100644 --- a/src/views/personalCenter/course.vue +++ b/src/views/personalCenter/course.vue @@ -70,7 +70,8 @@ > 鏈�氳繃 </div> - <img :src="item.icon" /> + <img v-if="item.icon" :src="item.icon" /> + <img v-else :src="defaultImg" alt="" /> </div> <div class="infoBox"> <p class="id">ID锛歿{ item.id }}</p> @@ -423,11 +424,11 @@ textBookPages.loading = true; const searchData = [ { - keywords: "jsek_digitalTextbooks", + keywords: "digitalTextbooks", field: "ProductType", }, { - keywords: "jsek_mediaBook", + keywords: "mediaBook", field: "ProductType", }, { @@ -605,8 +606,8 @@ margin-bottom: 20px; .textBookItem { float: left; - width: 140px; - height: 200px; + width: 160px; + height: 220px; margin: 10px; position: relative; border: 1px solid #eee; @@ -624,12 +625,6 @@ } } - .imgBox { - width: 100px; - height: 110px; - margin-bottom: 10px; - } - p { line-height: 1.2; display: -webkit-box; @@ -640,6 +635,25 @@ } } +.autoImgBox { + width: 120px; + height: 130px; + margin-bottom: 10px; + position: relative; + img { + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + } +} + .pagination-box { display: flex; justify-content: center; -- Gitblit v1.9.1