Переглянути джерело

feat: 附件逻辑新增大客户判断

zhangyuhan 1 рік тому
батько
коміт
108b23b0f5

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

@@ -3,7 +3,6 @@
     <div class="others-header flex flex-(items-center justify-between)">
     <div class="others-header flex flex-(items-center justify-between)">
       <div class="content-file-attachment-left flex flex-items-center">
       <div class="content-file-attachment-left flex flex-items-center">
         <span class="left-icon flex flex-items-center">
         <span class="left-icon flex flex-items-center">
-          <span class="j-icon icon-data-download"></span>
           <span class="file-attachment-text text-nowrap">附件下载</span>
           <span class="file-attachment-text text-nowrap">附件下载</span>
         </span>
         </span>
         <div class="right-content flex flex-items-center">
         <div class="right-content flex flex-items-center">
@@ -207,6 +206,10 @@ export default {
       )
       )
     },
     },
     async startDownloadFile(file) {
     async startDownloadFile(file) {
+      // 大客户直接下载
+      if (location.pathname.indexOf('entservice') !== -1) {
+        return this.downloadFile(file)
+      }
       if (this.isFree) {
       if (this.isFree) {
         // 免费用户
         // 免费用户
         // 判断有无体验过 0:未体验过
         // 判断有无体验过 0:未体验过