Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
viitto
pptist
Commits
58e18a98
Commit
58e18a98
authored
May 27, 2024
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/pptist
parents
2c2fa692
41752793
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
PreviewCover.vue
src/views/Preview/PreviewCover.vue
+23
-6
No files found.
src/views/Preview/PreviewCover.vue
View file @
58e18a98
...
...
@@ -5,21 +5,25 @@
right: 0;
top: 0;
bottom: 0;
overflow: auto;
"
>
"
:style=
"
{'overflow':param.w?'':'auto'}">
<!-- :size="viewportRatio
<
1
?
VIEWPORT_SIZE
.
Value
:
VIEWPORT_VER_SIZE
.
Value
"
--
>
<div
class=
"export-img-dialog"
>
<div
class=
"thumbnails-view"
ref=
"refThumbnails"
>
<div
class=
"thumbnails"
:style=
"
{width:viewportRatio
<
1
?
VIEWPORT_SIZE
.
Value
:
VIEWPORT_VER_SIZE
.
Value
+'
px
'}"
v-for=
"slide in slides"
>
<ThumbnailSlide
class=
"thumbnail"
:key=
"slide.id"
:slide=
"slide"
:size=
"viewportRatio
<
1
?
VIEWPORT_SIZE
.
Value
:
VIEWPORT_VER_SIZE
.
Value
"
/>
<ThumbnailSlide
class=
"thumbnail"
:key=
"slide.id"
:slide=
"slide"
:size=
"param.w?param.w:(viewportRatio
<1
?
VIEWPORT_SIZE
.
Value
:
VIEWPORT_VER_SIZE
.
Value
)"
/>
</div>
</div>
</div>
</div>
<!-- 获取行程颜色dom -->
<div
style=
"position: fixed;left: 200px;top: -100px;opacity: 0;"
>
<canvas
style=
"display: none"
id=
"canvas"
></canvas>
<div
...
...
@@ -65,6 +69,19 @@ const colorList = ([] as any)
const
w
=
ref
(
0
)
const
h
=
ref
(
0
)
const
refThumbnails
=
ref
(
null
)
watch
(()
=>
refThumbnails
.
value
,
()
=>
{
setTimeout
(()
=>
{
getDomeWH
()
},
1000
)
})
const
getDomeWH
=
async
()
=>
{
if
(
refThumbnails
.
value
){
let
height
=
await
refThumbnails
.
value
.
offsetHeight
;
window
.
parent
.
postMessage
(
`行程特色高-
${
height
}
`
,
`
${
domainManager
().
notificationUrl
}
`
);
}
}
const
loadSliders
=
async
()
=>
{
const
loadingObj
=
ElLoading
.
service
({
text
:
'正在渲染数据'
,
lock
:
true
})
let
response
=
await
ConfigService
.
GetTripTemplateSlide
({
TempId
:
parseInt
(
param
.
tempId
.
toString
())})
...
...
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