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

feat: pdfjs维护

parent ede2d66f
......@@ -4,7 +4,7 @@
* @Description:众安50万意外险
* @Date: 2020-07-27 15:46:37
* @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";
......
......@@ -70,9 +70,9 @@ export default {
popupShow(val) {
this.$emit(CHANGE_EVENT, val);
if (!val) {
setTimeout(() => {
this.pdfNumPages = null;
this.pdfUrl = null;
this.pdfUrl.destroyed = true;
setTimeout(() => {
this.scrollRefresh = false;
}, 300);
}
......@@ -99,6 +99,7 @@ export default {
this.pdfUrl.promise
.then(pdf => {
this.pdfNumPages = pdf.numPages;
console.error(pdf);
})
.catch(err => {
console.error(err);
......
......@@ -165,8 +165,8 @@ export default {
},
computed: {
pupopData() {
const { popupArray, currentPupopIndex } = this;
return popupArray[currentPupopIndex] || {};
const { popupArray, currentPupopIndex, popupShow } = this;
return popupShow ? popupArray[currentPupopIndex] || {} : {};
},
planCellData() {
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