Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
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
qzhxx
national_museum_vod
Commits
225437e9
Commit
225437e9
authored
May 21, 2021
by
qzhxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示
parent
827127c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
index.vue
src/page/check/video/index.vue
+17
-4
index.vue
src/page/content/learn/project/index.vue
+7
-2
No files found.
src/page/check/video/index.vue
View file @
225437e9
/*
<
template
>
<
template
>
<div
class=
"listPage H100"
>
<div
class=
"search-container"
>
<el-form
:inline=
"true"
:model=
"form"
ref=
"form"
onsubmit=
"return false;"
>
...
...
@@ -235,6 +235,7 @@ export default {
parentId
:
""
,
sort
:
""
},
videoBolb
:[],
typeList
:
[],
rules
:
{
sort
:
[
...
...
@@ -531,11 +532,17 @@ export default {
// param
)
.
then
(
res
=>
{
this
.
videoList
=
[]
const
videos
=
res
.
data
.
data
.
videoFileList
for
(
var
i
=
0
;
i
<
videos
.
length
;
i
++
){
videos
[
i
].
fileUrl
=
Base64
.
decode
(
videos
[
i
].
intro
)
// this.getBolb(videos[i])
}
this
.
videoList
=
videos
// this.videoList = res.data.data.videoFileList
// console.log(this.videoList[0].fileUrl,'视频地址 fileUrl')
// console.log(Base64.decode(this.videoList[0].intro),'解密地址')
...
...
@@ -547,17 +554,23 @@ export default {
console
.
log
(
err
);
});
},
getBolb
(){
getBolb
(
data
){
console
.
log
(
data
.
fileUrl
)
// var uri = new Uri(data.fileUrl);
// Console.WriteLine(uri.AbsolutePath);
const
_this
=
this
const
_data
=
data
axios
({
method
:
"get"
,
url
:
`/aa/group1/M00/00/54/wKhuVWCBObuAUSIQA6Mwb1hO1jk035.mp4`
,
// url: data.fileUrl,
url
:
`/aa/group1/M00/00/5E/wKhuVWCjsv6ACvENB_W9GhVPLd0452.mp4`
,
responseType
:
"blob"
,
}).
then
(
res
=>
{
// debugger;
var
blob
=
res
.
data
;
console
.
log
(
window
.
URL
.
createObjectURL
(
blob
),
'加密的视频地址'
)
_data
.
fileUrl
=
window
.
URL
.
createObjectURL
(
blob
)
this
.
videoList
.
push
(
_data
)
// _this.videoSrc = window.URL.createObjectURL(blob)
// video.onload = function(e) {
// window.URL.revokeObjectURL(video.src);
...
...
src/page/content/learn/project/index.vue
View file @
225437e9
...
...
@@ -368,8 +368,13 @@ export default {
})
.
then
(
(
res
)
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
});
_this
.
Search
();
if
(
res
.
data
.
resultCode
===
'200'
){
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
});
_this
.
Search
();
}
else
{
this
.
$message
({
type
:
"error"
,
message
:
res
.
data
.
message
});
}
},
(
error
)
=>
{
this
.
$message
({
...
...
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