Commit 418b1f18 authored by 郭志伟's avatar 郭志伟 Committed by 郝聪敏

feat: pdfjs维护

parent ede2d66f
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description:众安50万意外险 * @Description:众安50万意外险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-11 17:05:56 * @LastEditTime: 2020-08-11 18:41:35
*/ */
import goodsBg from "@/assets/images/goods/detail/yiwaixian/bg.png"; import goodsBg from "@/assets/images/goods/detail/yiwaixian/bg.png";
......
...@@ -70,9 +70,9 @@ export default { ...@@ -70,9 +70,9 @@ export default {
popupShow(val) { popupShow(val) {
this.$emit(CHANGE_EVENT, val); this.$emit(CHANGE_EVENT, val);
if (!val) { if (!val) {
this.pdfNumPages = null;
this.pdfUrl.destroyed = true;
setTimeout(() => { setTimeout(() => {
this.pdfNumPages = null;
this.pdfUrl = null;
this.scrollRefresh = false; this.scrollRefresh = false;
}, 300); }, 300);
} }
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
this.pdfUrl.promise this.pdfUrl.promise
.then(pdf => { .then(pdf => {
this.pdfNumPages = pdf.numPages; this.pdfNumPages = pdf.numPages;
console.error(pdf);
}) })
.catch(err => { .catch(err => {
console.error(err); console.error(err);
......
...@@ -165,8 +165,8 @@ export default { ...@@ -165,8 +165,8 @@ export default {
}, },
computed: { computed: {
pupopData() { pupopData() {
const { popupArray, currentPupopIndex } = this; const { popupArray, currentPupopIndex, popupShow } = this;
return popupArray[currentPupopIndex] || {}; return popupShow ? popupArray[currentPupopIndex] || {} : {};
}, },
planCellData() { planCellData() {
const { planCellInfo } = this; const { planCellInfo } = this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment