浏览代码

报告章节切换样式修改

jwyu 2 年之前
父节点
当前提交
10d0ede923
共有 2 个文件被更改,包括 16 次插入12 次删除
  1. 10 7
      src/api/hzyb/http.js
  2. 6 5
      src/views/hzyb/report/ChapterDetail.vue

+ 10 - 7
src/api/hzyb/http.js

@@ -24,14 +24,17 @@ _axios.interceptors.request.use(
   function (config) {
     // Do something before request is sent
     // 设置loading
-    if (LOADINGCOUNT === 0) {
-      LOADING = Toast.loading({
-        message: "loading...",
-        duration: 0,
-        forbidClick: true,
-      });
+    if(config.url!='/public/get_share_poster'){
+      if (LOADINGCOUNT === 0) {
+        LOADING = Toast.loading({
+          message: "loading...",
+          duration: 0,
+          forbidClick: true,
+        });
+      }
+      LOADINGCOUNT++;
     }
-    LOADINGCOUNT++;
+    
     
     config.headers.Authorization = localStorage.getItem('hzyb-token')||''
     return config;

+ 6 - 5
src/views/hzyb/report/ChapterDetail.vue

@@ -51,7 +51,7 @@
         <van-col span="6" v-for="item in info.report_chapter_menu_list" :key="item.report_chapter_id">
           <div :class="['item',item.report_chapter_id==chapterId&&'active']" @click="handleChapterChange(item)">
             <img :src="item.report_chapter_type_thumb" mode="aspectFill"/>
-            <text>{{item.report_chapter_type_name}}</text>
+            <!-- <text>{{item.report_chapter_type_name}}</text> -->
           </div>
         </van-col>
       </van-row>
@@ -524,20 +524,21 @@ export default {
     }
     .item {
       background-color: #fff;
-      height: 160px;
+      height: 156px;
       margin-bottom: 20px;
       text-align: center;
       color: #C0CFDA;
       font-size: 24px;
-      padding-top: 20px;
+      // padding-top: 20px;
       border-radius: 8px;
       overflow: hidden;
       img{
-        width: 88px;
-        height: 88px;
+        width: 156px;
+        height: 156px;
         display: block;
         margin-left: auto;
         margin-right: auto;
+        object-fit: cover;
       }
     }
     .active{