Explorar el Código

fix: 修复附件下载次数问题

zhangyuhan hace 1 año
padre
commit
32a03cb79f

+ 12 - 4
apps/bigmember_pc/src/composables/attachment-download/component/AttachmentDownload.vue

@@ -1,6 +1,6 @@
 <template>
   <section class="attachment-download-container" v-if="renderAttachList.length">
-    <div class="others-header flex flex-(items-center justify-between)">
+    <div class="others-header flex flex-(items-center)">
       <div class="content-file-attachment-left flex flex-items-center">
         <span class="left-icon flex flex-items-center">
           <span class="file-attachment-text text-nowrap">附件下载</span>
@@ -138,6 +138,9 @@ export default {
       }
     },
     fileNum() {
+      if (this.resourcePack.number > 0) {
+        return this.resourcePack.number
+      }
       return this.power?.fileNum || 0
     },
     isNewSuper() {
@@ -414,11 +417,15 @@ export default {
 }
 .action-button {
   flex-shrink: 0;
+  display: inline-block;
+  margin-left: 24px;
+  text-align: center;
+  cursor: pointer;
+  padding: 0 16px;
   min-width: 64px;
-  padding: 3px 8px;
   font-size: 12px;
-  line-height: 18px;
-  border-radius: 8px;
+  line-height: 30px;
+  border-radius: 4px;
   color: #fff;
   background-color: $color-main;
 }
@@ -435,6 +442,7 @@ export default {
 
 .right-content {
   .iconfont {
+    cursor: pointer;
     color: $color-main;
   }
 }

+ 3 - 0
apps/mobile/src/composables/attachment-download/component/AttachmentDownload.vue

@@ -167,6 +167,9 @@ export default {
       }
     },
     fileNum() {
+      if (this.resourcePack.number > 0) {
+        return this.resourcePack.number
+      }
       return this.power?.fileNum || 0
     },
     isNewSuper() {