Bläddra i källkod

优化详情页受全局污染的class

shaun-sheep 5 år sedan
förälder
incheckning
866cb13994

+ 2 - 2
src/components/ledger/details/detail/exhibitionBaseInformation.vue

@@ -95,7 +95,7 @@
         oInput.remove()
       },
       handleName(val) {
-        return val.length > 12 ? val.substring(0, 12) + '...' : val
+        return val.length > 10 ? val.substring(0, 10) + '...' : val
       }
     }
   }
@@ -126,7 +126,7 @@
     }
 
     .w47 {
-      width: 47%;
+      width: 44%;
     }
 
 

+ 1 - 1
src/components/ledger/details/detail/exhibitionCrux.vue

@@ -86,7 +86,7 @@
         oInput.remove()
       },
       handleName(val) {
-        return val.length > 12 ? val.substring(0, 12) + '...' : val
+        return val.length > 10 ? val.substring(0, 10) + '...' : val
       }
     }
   }

+ 2 - 4
src/components/ledger/details/detail/lookImage.vue

@@ -3,7 +3,7 @@
     <div class="saga-upload-images">
       <div v-if="Object.keys(exhibitionImage.list).length">
         <div v-for="(val,key,i) in exhibitionImage.list" :key="i">
-          <div class="point-view" v-for="(j,index) in val">
+          <div class="" v-for="(j,index) in val">
             <p class="title">{{key}}</p>
             <div v-if="j.PicList !=undefined && j.PicList.length >0">
               <template v-for="item in j.PicList">
@@ -44,7 +44,7 @@
     },
     methods: {
       handleName(val) {
-        return val && val.length > 12 ? val.substr(1, 12) + '...' : val
+        return val && val.length > 10 ? val.substring(1, 10) + '...' : val
       },
       //查看图片
       lookImg() {
@@ -262,7 +262,6 @@
         }
       }
     }
-    .point-view {
       .pic-name {
         position: absolute;
         right: 72px;
@@ -274,7 +273,6 @@
         border-radius: 8px;
         bottom: 5px;
       }
-    }
     .point-image {
       height: 180px;
       margin-bottom: 10px;

+ 2 - 3
src/components/ledger/details/detail/lookVideo.vue

@@ -3,7 +3,7 @@
     <div class="saga-upload-images">
       <div v-if="Object.keys(exhibitionVideo.list).length">
         <div v-for="(val,key,i) in exhibitionVideo.list" :key="i">
-          <div class="point-view" v-for="(j,index) in val">
+          <div class="" v-for="(j,index) in val">
             <p class="title">{{key}}</p>
             <div v-if="j.PicList !=undefined && j.PicList.length">
               <template v-for="(item,index) in j.PicList">
@@ -263,7 +263,6 @@
         }
       }
     }
-    .point-view {
       .pic-name {
         position: absolute;
         right: 72px;
@@ -275,7 +274,7 @@
         border-radius: 8px;
         bottom: 5px;
       }
-    }
+
     .point-image {
       height: 180px;
       position: relative;