Эх сурвалжийг харах

fix: 附件判断逻辑完善

zhangyuhan 1 жил өмнө
parent
commit
30112f186b

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

@@ -147,7 +147,7 @@ export default {
       return this.power.viper && this.isSuper
     },
     memberHasAttachPower() {
-      return this.bigMemberPower.indexOf(3) !== -1
+      return this.isMember && this.bigMemberPower.indexOf(3) !== -1
     },
     renderAttachList() {
       return this.attachmentList.map((a) => {
@@ -434,7 +434,7 @@ export default {
   font-size: 15px;
   line-height: 22px;
   .file-attachment-item {
-    display: inline-block;
+    display: block;
     cursor: pointer;
     margin-bottom: 16px;
   }

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

@@ -176,7 +176,7 @@ export default {
       return this.power.viper && this.isSuper
     },
     memberHasAttachPower() {
-      return this.bigMemberPower.indexOf(3) !== -1
+      return this.isMember && this.bigMemberPower.indexOf(3) !== -1
     },
     renderAttachList() {
       const { inApp, inIos } = this.$envs
@@ -393,7 +393,8 @@ export default {
         title: this.title // 附件详情页标题附件详情页标题
       }
       try {
-        const { r: data, m: msg } = await this.attachmentInstance.useResourcePack(params)
+        const { r: data, m: msg } =
+          await this.attachmentInstance.useResourcePack(params)
         // 各种余额不足提示
         if (data) {
           if (data.code && data.code < 0) {

+ 1 - 1
apps/mobile/src/views/article/index.vue

@@ -280,7 +280,7 @@ export default {
       return this.power.viper && this.isSuper
     },
     memberHasAttachPower() {
-      return this.bigMemberPower.indexOf(3) !== -1
+      return this.isMember && this.bigMemberPower.indexOf(3) !== -1
     },
     getKeys() {
       return [this.contentInfo.publishEntName]