From 9cad6a832c786989be620573b09badccfe7e3b51 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期一, 25 八月 2025 15:11:37 +0800
Subject: [PATCH] 首页头部,样式调整

---
 src/views/personalCenter/course.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/personalCenter/course.vue b/src/views/personalCenter/course.vue
index 969624a..b83b991 100644
--- a/src/views/personalCenter/course.vue
+++ b/src/views/personalCenter/course.vue
@@ -234,11 +234,18 @@
       pages.loading = false
       pages.count = res.totalSize
       courseList.value = res.datas.map((item: any) => {
+        if (item.icon) {
+          item.icon = getPublicImage(item.icon, '', 140)
+        } else if (item.linkProduct?.icon) {
+          item.icon = getPublicImage(item.linkProduct.icon, '', 140)
+        } else {
+          item.icon = defaultImg
+        }
         return {
           ...item,
           name: item.name,
           id: item.id,
-          icon: item.icon != 'default' ? getPublicImage(item.icon, 80) : defaultImg,
+          icon: item.icon,
           introduction: item.description,
           reason: item.applyReturnMsg ? JSON.parse(item.applyReturnMsg).reason : '',
         }
@@ -531,8 +538,8 @@
         flex: 1;
         display: flex;
         .imgBox {
-          width: 90px;
-          height: 120px;
+          width: 110px;
+          height: 140px;
           margin-right: 20px;
           box-shadow: 0px 0px 20px 1px #ccc;
         }

--
Gitblit v1.9.1