diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue index 960dc9ec..68124fbb 100644 --- a/src/components/PdfPreview/view.vue +++ b/src/components/PdfPreview/view.vue @@ -149,20 +149,21 @@ export default { let outerHeight = document.documentElement.clientHeight let scrollTop = document.documentElement.scrollTop let $this=this; + if(this.pdfpage >= this.totalPages){ + this.isscroll = false; + this.moreState = 3; + } + if(this.showPages >= this.totalPages){ + this.isscroll = false; + this.moreState = 3; + } if(this.isscroll){ this.showPages++ this.moreState = 2; // this.debounce(this.loadInitPdf($this.filePath),5000); // this.debounce(,200000); } - if(this.pdfpage >= this.totalPages){ - this.isscroll = false; - this.moreState = 3; - } - if(this.showPages >= this.totalPages){ - this.isscroll = false; - this.moreState = 3; - } + // if(scrollTop > 400) { // document.querySelector('#articleAnking').style.cssText = "position: fixed;top: 0;width:242.5px"; // } else {