Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
982c365a
Commit
982c365a
authored
Sep 13, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小优化
parent
c0db14ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/views/xsjsdb/detailRwbd.vue
+8
-4
No files found.
src/views/xsjsdb/detailRwbd.vue
View file @
982c365a
<!--
* @Author: your name
* @Date: 2021-09-11 10:30:42
* @LastEditTime: 2021-09-13 1
3:19:42
* @LastEditTime: 2021-09-13 1
7:45:47
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xsjsdb\detailRwbd.vue
...
...
@@ -142,7 +142,7 @@
class=
"video-js video"
style=
"object-fit: fill; width: 100%; height: 95%"
>
<source
:src=
"src"
type=
"video/mp4
"
/>
<source
:src=
"src"
:type=
"'video/' + videoType
"
/>
您的浏览器不支持 video 标签。
</video>
</div>
...
...
@@ -300,6 +300,7 @@ export default {
index
:
1
,
loadingIndex
:
0
,
screenLoading
:
true
,
videoType
:
"mp4"
,
};
},
methods
:
{
...
...
@@ -393,18 +394,21 @@ export default {
this
.
url
=
"data:image/"
+
fitem
.
type
+
";base64,"
+
fitem
.
value
;
this
.
$refs
.
image
.
clickHandler
();
}
else
{
this
.
src
=
"data:video/mp4;base64,"
+
fitem
.
value
;
// console.log(fitem)
this
.
videoType
=
fitem
.
type
;
this
.
src
=
"data:video/"
+
this
.
videoType
+
";base64,"
+
fitem
.
value
;
this
.
title
=
fitem
.
label
;
this
.
dialogVisible
=
true
;
}
},
reset
()
{
console
.
log
(
this
.
videoType
);
let
_this
=
this
;
if
(
_this
.
myVideo
)
{
_this
.
myVideo
.
reset
();
//重置 video
_this
.
myVideo
.
src
([
{
type
:
"video/
mp4"
,
type
:
"video/
"
+
_this
.
videoType
,
src
:
_this
.
src
,
},
]);
...
...
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