shaogen1995 hai 3 semanas
pai
achega
13ab99ef40

+ 8 - 12
src/components/ZupOne/index.module.scss

@@ -4,7 +4,6 @@
   position: relative;
 
   :global {
-
     .file_upIcon {
       color: #a6a6a6;
       border-radius: 3px;
@@ -16,8 +15,6 @@
       display: flex;
       justify-content: center;
       align-items: center;
-
-
     }
 
     .file_img {
@@ -42,16 +39,14 @@
         align-items: center;
       }
 
-
-
       .file_lookBox {
         width: 100%;
-        background-color: rgba(0, 0, 0, .6);
+        background-color: rgba(0, 0, 0, 0.6);
         color: #fff;
         display: flex;
         justify-content: space-around;
 
-        &>a {
+        & > a {
           color: #fff !important;
         }
 
@@ -63,6 +58,9 @@
       display: flex;
       align-items: center;
       font-size: 16px;
+      .upSuccTxt {
+        max-width: 350px;
+      }
 
       .clearCover {
         margin-left: 20px;
@@ -70,7 +68,7 @@
         font-size: 16px;
       }
 
-      &>a {
+      & > a {
         color: black;
       }
     }
@@ -80,15 +78,13 @@
       margin-top: 5px;
       font-size: 14px;
       color: rgb(126, 124, 124);
-
-
     }
 
     .noUpThumb {
       position: relative;
       overflow: hidden;
       opacity: 0;
-      transition: top .2s;
+      transition: top 0.2s;
       color: #ff4d4f;
       top: -10px;
     }
@@ -98,4 +94,4 @@
       opacity: 1;
     }
   }
-}
+}

+ 2 - 0
src/components/ZupOne/index.tsx

@@ -98,6 +98,8 @@ function ZupOne(
         fd.append('dirCode', dirCode)
         fd.append('file', filesInfo)
 
+        fd.append('isDb', 'true')
+
         if (myType === 'thumb') {
           // 开启压缩图片
           fd.append('isCompress', 'true')

+ 12 - 3
src/pages/A2video/A2add/index.tsx

@@ -15,10 +15,19 @@ type Props = {
 
 function A2add({ info, addTableFu, closeFu }: Props) {
   useEffect(() => {
+    const txt = info.filePath || ''
+
+    let fileName = ''
+
+    if (txt) {
+      const resArr = txt.split('/')
+      fileName = resArr[resArr.length - 1]
+    }
+
     ZupThumbRef.current?.setFileComFileFu({
-      fileName: '',
-      filePath: info.filePath || '',
-      thumb: info.filePath || ''
+      fileName,
+      filePath: txt,
+      thumb: txt
     })
   }, [info.filePath])