Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
798dfbb1
Commit
798dfbb1
authored
May 17, 2022
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改pdf预览;
parent
bbec62d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/pages/pdfPreview/pdfPreview.vue
src/pages/pdfPreview/pdfPreview.vue
+11
-2
No files found.
src/pages/pdfPreview/pdfPreview.vue
View file @
798dfbb1
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment