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

1.修改pdf预览;

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