Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
8b5a2f07
Commit
8b5a2f07
authored
Feb 13, 2020
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
b7f33b97
22645423
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
EducationvideoList.vue
src/components/EducationvideoList.vue
+10
-0
No files found.
src/components/EducationvideoList.vue
View file @
8b5a2f07
...
...
@@ -141,6 +141,7 @@
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
<div
class=
"el-upload__text"
>
{{
$t
(
"active.ld_djscwj"
)
}}
</div>
</el-upload>
<p
style=
"font-size:12px"
v-show=
"scLoad"
>
上传中,请稍后...
</p>
</el-form-item>
...
...
@@ -169,6 +170,7 @@ export default {
},
data
()
{
return
{
scLoad
:
false
,
videoDivState
:
false
,
thisVideoAddress
:
''
,
defaultImg
:
'this.src="'
+
require
(
"../assets/img/bg_z1@2x.png"
)
+
'"'
,
...
...
@@ -299,11 +301,15 @@ export default {
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Sale/Uploadvideo/"
;
this
.
scLoad
=
true
;
this
.
uploadFile
(
path
,
newArr
,
x
=>
{
this
.
scLoad
=
false
;
this
.
addMsg
.
VideoAddress
=
this
.
baseurl
+
x
.
name
;
let
lastUrl
=
"?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast"
;
this
.
addMsg
.
Cover
=
this
.
addMsg
.
VideoAddress
+
lastUrl
;
});
},
handleCurrentChange
()
{
this
.
msg
.
pageIndex
=
this
.
msg
.
pageIndex
+
1
;
...
...
@@ -385,6 +391,10 @@ export default {
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
scLoad
){
this
.
Error
(
"上传中,请稍候..."
)
return
;
}
let
Label
=
this
.
addMsg
.
Label
;
if
([
'酒店'
,
'景点'
,
'餐食'
,
'交通'
,
'专辑'
,
'其他'
].
indexOf
(
Label
)
==
-
1
)
{
this
.
Error
(
"请选择正确的标签!"
);
...
...
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