通过后端接口获取pdf,文件流转换成PDF在iframe中显示,怎么让告知书强制拉到未尾才能确认以证明客户完整阅读
<label @click="readAgree"><span :class="[ischecked?'main-checked':'main-check']"></span>本人已收到并认真阅读<a href="javascript:;" @click.stop="lookpdf()" style="color: red;">《告知书》</a>中的各项内容,并充分理解其中全部内容,同意签署。</label>
<div class="layer_pdf" v-if="ispdf" @click="layerclose">
<div class="layer_pdf_main">
<!-- <img class="close" src="images/close.png" alt="" @click="ispdf = false"> -->
<iframe width="100%" height="100%" :src="pdfurl" style="width: 100%;height:100%"></iframe>
<button @click="layerclose">我已阅读并同意</button>
</div>
</div>
data: function () {
return {
ispdf: false,
pdfurl: "",
pdfnum: 0,
ischecked: false,
}
},
readAgree() {
if (this.pdfnum > 0) {
this.ischecked = !this.ischecked;
} else {
this.lookpdf();
}
},
layerclose() {
this.pdfnum++;
this.ispdf = false;
},
lookpdf() {
this.pdfnum++;
this.ispdf = true;
this.pdfurl = commonhref + 'generic/web/viewer.html?file=' + encodeURIComponent(pdfhref + version) + '&pageName=pdfDown';
this.ischecked = true;
},