瀏覽代碼

fix:移动端word文档、ppt下载后,不能正常展示,处理成预览5页

zhangsiya 10 月之前
父節點
當前提交
60df653d5e
共有 2 個文件被更改,包括 2 次插入5 次删除
  1. 0 2
      jydocs-mobile/public/index.html
  2. 2 3
      jydocs-mobile/src/views/details/details.vue

+ 0 - 2
jydocs-mobile/public/index.html

@@ -25,8 +25,6 @@
     <script type="text/javascript" src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
     <% } %>
     <script src="/common-module/public/head.js"></script>
-    <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
-    <script> new VConsole(); </script>
 </head>
 <body>
 <noscript>

+ 2 - 3
jydocs-mobile/src/views/details/details.vue

@@ -538,7 +538,6 @@ export default class extends Vue {
         break
     }
     (this.$refs[obj.type] as any).value = false
-    console.log(obj)
   }
 
   async bottomBtn (type: string) {
@@ -697,6 +696,8 @@ export default class extends Vue {
       this.buyShowUrl = res.data
       if (res.data.includes('.pdf') || this.detailData.docFileType === 2 || !this.showfileType) {
         this.getNumPages(res.data, type)
+      } else if (res.data.includes('.docx') || res.data.includes('.ppt')) {
+        this.ddErrorPreview()
       }
     })
   }
@@ -843,8 +844,6 @@ export default class extends Vue {
   }
 
   readAll () {
-    console.log(444444444)
-    console.log(this.loginInfo)
     if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
       this.getFile()
     } else if ((this.power.freeDownload === 2 || this.power.freeDownload === 0) && this.isvipFree && this.buyed === 0 && !this.isviper) {