askbot-dragon 1.5.69-beta → 1.5.71-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div class="pdf_view" id="pdf_view" :style="{
|
|
3
3
|
marginTop: isPC ? '50px' : '',
|
|
4
4
|
marginBottom: tagIds.length > 1 ? '60px' : '0px',
|
|
5
5
|
height: setHeight
|
|
@@ -910,8 +910,10 @@ export default {
|
|
|
910
910
|
page_width = page_width - cutWidth;
|
|
911
911
|
|
|
912
912
|
//获取页面最大高度
|
|
913
|
+
let height = parseInt(this.totalPageCount * this.pageSize.height)
|
|
914
|
+
var page_height = Math.max(document.getElementById('pdf_container_view').scrollHeight,height);
|
|
913
915
|
|
|
914
|
-
|
|
916
|
+
console.debug('page_height',page_height,this.totalPageCount * this.pageSize.height);
|
|
915
917
|
|
|
916
918
|
// var page_height = document.body.scrollHeight+document.body.scrollTop;
|
|
917
919
|
|
|
@@ -1012,7 +1014,8 @@ export default {
|
|
|
1012
1014
|
oTemp.appendChild(mask_div);
|
|
1013
1015
|
}
|
|
1014
1016
|
}
|
|
1015
|
-
|
|
1017
|
+
let pageDom = document.getElementById('pdf_container_view')
|
|
1018
|
+
pageDom.appendChild(oTemp);
|
|
1016
1019
|
|
|
1017
1020
|
},
|
|
1018
1021
|
},
|
|
@@ -1212,9 +1215,9 @@ export default {
|
|
|
1212
1215
|
// tagIds 会按照gpt识别的生成有序的数组,前端直接按照下标的顺序取就可以了
|
|
1213
1216
|
// 缓存拿到的所有数据
|
|
1214
1217
|
this.cachePdf = res.data.data
|
|
1215
|
-
let publicPageFileUrl = res.data.data[0].publicPageFileUrl
|
|
1218
|
+
let publicPageFileUrl = res.data.data && res.data.data[0] ? res.data.data[0].publicPageFileUrl : ''
|
|
1216
1219
|
this.currentPage = 0
|
|
1217
|
-
if (publicPageFileUrl.substring(publicPageFileUrl.lastIndexOf('.')) === '.pdf') {
|
|
1220
|
+
if (publicPageFileUrl && publicPageFileUrl.substring(publicPageFileUrl.lastIndexOf('.')) === '.pdf') {
|
|
1218
1221
|
this.preViewType = 'pdf'
|
|
1219
1222
|
this.setPageAllLine(this.cachePdf)
|
|
1220
1223
|
this.getpdfResloutePage(res.data.data[0])
|