Browse Source

图片修改

linxuxiang 4 months ago
parent
commit
a9b84a9c5c
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/views/sunshineRun/index.vue

+ 11 - 2
src/views/sunshineRun/index.vue

@@ -26,7 +26,7 @@
                 :leave-active-class="proxy?.animate.sunshineRun.leave">
                 <li v-for="(item, index) in testList" :key="item.student_id">
                   <img v-if="item.student_id && (item.face_pic || item.logo_url)"
-                    :src="item.face_pic || item.logo_url" /><img v-else src="@/assets/images/test/profilePicture.png" />
+                    :src="item.face_pic || item.logo_url" /><img class="noPic" v-else src="@/assets/images/common/noImg.png" />
                   <div class="con">
                     <div class="name">{{ item.student_name }}</div>
                     <div class="score">
@@ -365,11 +365,20 @@ onBeforeUnmount(() => {
               border: 2px solid #ffffff;
               border-radius: 10px;
               overflow: hidden;
-
+              display: flex;
+              align-items: center;
+              justify-content: center;
               img {
                 width: 100%;
                 height: 100%;
               }
+              .noPic{
+                width: auto;
+                height: auto;
+                max-width: 60% !important;
+                max-height: 60% !important;
+                opacity: 0.2;
+              }
 
               .con {
                 position: absolute;