Commit 798dfbb1 authored by 李智书's avatar 李智书

1.修改pdf预览;

parent bbec62d2
......@@ -5,6 +5,7 @@
</template>
<script>
import Pdfh5 from "pdfh5";
import "pdfh5/css/pdfh5.css";
export default {
name: 'App',
data() {
......@@ -36,6 +37,11 @@
default:
break;
}
if (options.pdfName == 'azkjmenber') {
uni.setNavigationBarTitle({
title: "会员服务协议"
})
}
this.pdfName = options.pdfName
this.Init(this.ImgUrl + 'AgreementPdf/' + this.pdfName)
},
......@@ -50,9 +56,8 @@
this_.pdfh5 = new Pdfh5("#pdfh5", {
pdfurl: pdfName + '.pdf',
scale: 2,
goto: 0,
zoomEnable: true,
renderType: 'svg'
});
//监听完成事件
this_.pdfh5.on("complete", function(status, msg, time) {
......@@ -76,6 +81,10 @@
margin: 0;
}
page {
height: 100%;
}
html,
body,
#app {
......
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