Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
play_office
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
template admin
play_office
Commits
ee023976
Commit
ee023976
authored
Sep 24, 2024
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
5793381a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
index.js
form/index.js
+2
-1
index-D4GghGHu.js
play/assets/index-D4GghGHu.js
+11
-11
index.html
play/index.html
+1
-1
App.vue
vue-proj/vue-project/src/App.vue
+5
-0
No files found.
form/index.js
View file @
ee023976
...
...
@@ -34,7 +34,8 @@ new Vue({
}
else
{
this
.
fileData
=
{
name
:
file
.
name
,
url
:
response
.
url
url
:
response
.
url
,
ppt_html
:
response
.
ppt_html
};
window
.
courseware
.
setData
(
this
.
fileData
,
null
,
key
);
}
...
...
play/assets/index-
BEvuG3Jl
.js
→
play/assets/index-
D4GghGHu
.js
View file @
ee023976
This diff is collapsed.
Click to expand it.
play/index.html
View file @
ee023976
...
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<script
type=
"text/javascript"
src=
"//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"
></script>
<title>
Vite App
</title>
<script
type=
"module"
crossorigin
src=
"
assets/index-BEvuG3Jl
.js"
></script>
<script
type=
"module"
crossorigin
src=
"
/assets/index-D4GghGHu
.js"
></script>
</head>
<body>
<div
id=
"app"
></div>
...
...
vue-proj/vue-project/src/App.vue
View file @
ee023976
...
...
@@ -3,8 +3,10 @@ import { ref } from 'vue'
import
VueOfficePdf
from
"
@vue-office/pdf
"
;
import
VueOfficeDocx
from
"
@vue-office/docx
"
;
const
url
=
ref
(
''
);
const
ppt_html
=
ref
(
''
);
window
.
courseware
.
getData
((
dt
)
=>
{
url
.
value
=
dt
?.
url
;
ppt_html
.
value
=
dt
?.
ppt_html
;
},
'
play_office
'
);
function
renderedHandler
()
{
...
...
@@ -21,6 +23,9 @@ function errorHandler () {}
<
template
v-if=
"url.indexOf(`.docx`) > 0 || url.indexOf(`.DOCX`) > 0"
>
<vue-office-docx
:src=
"url"
style=
"height: 100vh"
@
rendered=
"renderedHandler"
@
error=
"errorHandler"
/>
</
template
>
<
template
v-if=
"url.indexOf(`.ppt`) > 0 || url.indexOf(`.PPT`) > 0 || url.indexOf(`.pptx`) > 0 || url.indexOf(`.PPTX`) > 0"
>
<iframe
frameborder=
"0"
width=
"100%"
height=
"100%"
:src=
"ppt_html"
></iframe>
</
template
>
</template>
<
style
scoped
>
...
...
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