chenlei 5 ヶ月 前
コミット
87761b53ed
2 ファイル変更10 行追加13 行削除
  1. 5 7
      src/views/report/Detail.vue
  2. 5 6
      src/views/report/PDF.vue

+ 5 - 7
src/views/report/Detail.vue

@@ -292,7 +292,7 @@ function goDetails(item){
           </div>
         </template>
         <template v-else>
-          <div class="img-box">
+          <div class="img-box" @click="goDetails(authorInfoList?.[0])">
             <img
               :src="authorInfoList?.[0].headImgUrl|| defaultImg"
             />
@@ -513,12 +513,6 @@ function goDetails(item){
         line-break: anywhere;
         -webkit-box-orient: vertical;
       }
-      .time {
-        display: block;
-        margin-top: 10px;
-        font-size: var(--font-size-small);
-        color: var(--text-color-grey);
-      }
     }
     .opt-btn {
       margin-left: auto;
@@ -541,6 +535,10 @@ function goDetails(item){
     display: flex;
     align-items: center;
     justify-content: space-between;
+    .time {
+      font-size: var(--font-size-small);
+      color: var(--text-color-grey);
+    }
     .btn {
       color: var(--primary-color);
     }

+ 5 - 6
src/views/report/PDF.vue

@@ -187,7 +187,7 @@ function goDetails(item){
           </div>
         </template>
         <template v-else>
-          <div class="img-box">
+          <div class="img-box" @click="goDetails(authorInfoList?.[0])">
             <img :src="authorInfoList.length > 0 ? authorInfoList[0].headImgUrl : defaultImg"/>
           </div>
           <div class="author-info">
@@ -349,11 +349,6 @@ function goDetails(item){
         line-break: anywhere;
         -webkit-box-orient: vertical;
       }
-      .time {
-        margin-top: 10px;
-        font-size: var(--font-size-small);
-        color: var(--text-color-grey);
-      }
     }
     .opt-btn {
       margin-left: auto;
@@ -376,6 +371,10 @@ function goDetails(item){
     display: flex;
     align-items: center;
     justify-content: space-between;
+    .time {
+      font-size: var(--font-size-small);
+      color: var(--text-color-grey);
+    }
     .btn {
       color: var(--primary-color);
     }