lsc 2 years ago
parent
commit
112f785562
2 changed files with 6 additions and 6 deletions
  1. 3 3
      src/components/components/vpdf.vue
  2. 3 3
      src/components/components/vpdfGM.vue

+ 3 - 3
src/components/components/vpdf.vue

@@ -1,15 +1,15 @@
 <template>
   <!--使用 pdfvuer 实现 滑动浏览 单印章-->
   <div class="pdf">
-    <div class="loading" v-show="loading">
+    <!-- <div class="loading" v-show="loading">
       <span>pdf可能会加载时间有点长,请耐心等待...</span>
     </div>
     <div id="contentArea" class="show" v-if="!loading">
       <pdf :scale.sync="scale" :resize="true" ref="wrapper" class="p-pdf" :src="pdfData" v-for="i in numPages" :key="i"
         :id="i" :page="i" style="width: 100%">
-        <!-- <template slot="loading"> loading content here... </template> -->
       </pdf>
-    </div>
+    </div> -->
+    <iframe style="width: 100%; height: 99%; border: none" :src="'https://cloud.cocorobo.cn/pdf.js/web/viewer.html?file='+pdfUrl"></iframe>
     <!-- <div class="rightArea">
       <div class="toolGroup">
         <div class="page">第 {{ page }} / {{ numPages }} 页</div>

+ 3 - 3
src/components/components/vpdfGM.vue

@@ -1,7 +1,7 @@
 <template>
   <!--使用 pdfvuer 实现 滑动浏览 单印章-->
   <div class="pdf">
-    <div class="loading" v-if="loading">
+    <!-- <div class="loading" v-if="loading">
       <span>pdf可能会加载时间有点长,请耐心等待...</span>
     </div>
     <div id="contentArea" class="show">
@@ -17,9 +17,9 @@
         :page="i"
         style="width: 100%"
       >
-        <!-- <template slot="loading"> loading content here... </template> -->
       </pdf>
-    </div>
+    </div> -->
+    <iframe style="width: 100%; height: 99%; border: none" :src="'https://cloud.cocorobo.cn/pdf.js/web/viewer.html?file='+pdfUrl"></iframe>
     <!-- <div class="rightArea">
       <div class="toolGroup">
         <div class="page">第 {{ page }} / {{ numPages }} 页</div>