mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 04:56:44 +08:00
fix: 修复单页 pdf 无法点击本人已阅读按钮
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
</van-notice-bar>
|
</van-notice-bar>
|
||||||
<div id="pdf" style="overflow: scroll;background: #eee;" :style="[{height:isPreview ? '100vh' : '75vh'}]" @scroll="handleScroll">
|
<div id="pdf" style="overflow: scroll;background: #eee;" :style="[{height:isPreview ? '100vh' : '75vh'}]" @scroll="handleScroll">
|
||||||
<div id="pdfH5ID"></div>
|
<div id="pdfH5ID"></div>
|
||||||
|
<div ref="activeButtonEle"></div>
|
||||||
<!-- 银保渠道右侧标注提示 -->
|
<!-- 银保渠道右侧标注提示 -->
|
||||||
<div v-if='branchType == "14" && !isScrollToBottom' class='scroll-tip'>
|
<div v-if='branchType == "14" && !isScrollToBottom' class='scroll-tip'>
|
||||||
请下滑至底部完成阅读
|
请下滑至底部完成阅读
|
||||||
@@ -71,7 +72,8 @@
|
|||||||
branchType: '',
|
branchType: '',
|
||||||
// 银保渠道滚动检测相关
|
// 银保渠道滚动检测相关
|
||||||
isScrollToBottom: false,
|
isScrollToBottom: false,
|
||||||
scrollTimer: null
|
scrollTimer: null,
|
||||||
|
pdfStatus: void 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -368,7 +370,8 @@
|
|||||||
pdfurl: thispdfurl,
|
pdfurl: thispdfurl,
|
||||||
lazy:false,
|
lazy:false,
|
||||||
scale:1
|
scale:1
|
||||||
}).on("complete", function (status, msg, time) { //监听完成事件
|
}).on("complete", (status, msg, time)=> { //监听完成事件
|
||||||
|
this.pdfStatus = status
|
||||||
console.log("状态:" + status + ",信息:" + msg + ",耗时:" + time + "毫秒,总页数:" + this.totalNum)
|
console.log("状态:" + status + ",信息:" + msg + ",耗时:" + time + "毫秒,总页数:" + this.totalNum)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -484,6 +487,15 @@
|
|||||||
that.isDisabledComplite = true
|
that.isDisabledComplite = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
pdfStatus() {
|
||||||
|
const observer = new IntersectionObserver(entries => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
if (entry.isIntersecting) this.isScrollToBottom = true
|
||||||
|
observer.unobserve(entry.target)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
observer.observe(this.$refs.activeButtonEle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user