Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
jinmao-community-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1c562811
authored
May 25, 2021
by
袁晓帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加上传视频loading的问题
parent
ff9f2436
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
6 deletions
+24
-6
src/components/page/IOC/activity.vue
+3
-3
src/components/page/IOC/advertising.vue
+14
-0
src/components/page/IOC/data.vue
+6
-2
src/components/page/IOC/sellCarport.vue
+1
-1
static/xls/出售车位模板.xls
+0
-0
No files found.
src/components/page/IOC/activity.vue
View file @
1c562811
...
...
@@ -91,7 +91,7 @@
<span
style=
"margin: 0 5px;"
>
--
</span>
<el-date-picker
v-model=
"editForm.endTime"
type=
"date"
:picker-options=
"EndOptions"
placeholder=
"结束时间"
style=
"width: 190px;"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"上传
封面
"
required
>
<el-form-item
label=
"上传
海报
"
required
>
<div
style=
"display: flex;flex-direction: column;"
>
<el-upload
class=
"avatar-uploader"
...
...
@@ -264,7 +264,7 @@ export default {
}
else
if
(
that
.
addForm
.
endTime
==
''
){
that
.
showAlert
(
'请选择活动结束时间~'
)
}
else
if
(
that
.
addForm
.
imgUrl
==
''
){
that
.
showAlert
(
'请上传
活动图片
~'
)
that
.
showAlert
(
'请上传
海报
~'
)
}
else
{
that
.
$axios
.
post
(
'/activity/addActivity'
,
that
.
addForm
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
...
...
@@ -292,7 +292,7 @@ export default {
}
else
if
(
that
.
editForm
.
endTime
==
''
){
that
.
showAlert
(
'请选择活动结束时间~'
)
}
else
if
(
that
.
editForm
.
imgUrl
==
''
){
that
.
showAlert
(
'请上传
活动图片
~'
)
that
.
showAlert
(
'请上传
海报
~'
)
}
else
{
var
parem
=
Object
.
assign
(
that
.
editForm
,{
startTime
:
new
Date
(
that
.
editForm
.
startTime
),
endTime
:
new
Date
(
that
.
editForm
.
endTime
),})
that
.
$axios
.
post
(
'/activity/editActivityById'
,
parem
).
then
((
res
)
=>
{
...
...
src/components/page/IOC/advertising.vue
View file @
1c562811
...
...
@@ -52,11 +52,13 @@
<el-form-item
label=
"上传视频"
required
style=
"margin-bottom: 12px !important;"
>
<div
style=
"display: flex;flex-direction: column;"
>
<el-upload
v-loading=
"loading"
class=
"avatar-uploader"
action=
"http://39.97.169.207:9200/baseInfo/uploadPhoto"
:show-file-list=
"false"
:headers=
"headers"
:on-success=
"handlevideoSuccess"
:on-progress=
"upLoadImg"
v-if=
"videoShow"
>
<video
v-if=
"addForm.videoUrl"
:src=
"addForm.videoUrl"
controls=
'controls'
:autoplay=
"autoplay"
class=
"avatar"
/>
...
...
@@ -101,11 +103,13 @@
<el-form-item
label=
"上传视频"
required
style=
"margin-bottom: 12px !important;"
>
<div
style=
"display: flex;flex-direction: column;"
>
<el-upload
v-loading=
"loading"
class=
"avatar-uploader"
action=
"http://39.97.169.207:9200/baseInfo/uploadPhoto"
:show-file-list=
"false"
:headers=
"headers"
:on-success=
"handlevideoedit"
:on-progress=
"upLoadImg"
v-if=
"videoShow"
>
<video
v-if=
"editForm.videoUrl"
:src=
"editForm.videoUrl"
controls=
'controls'
:autoplay=
"autoplay"
class=
"avatar"
/>
...
...
@@ -219,8 +223,12 @@ export default {
this
.
imgShow
=
true
})
},
upLoadImg
(){
this
.
loading
=
true
},
handlevideoSuccess
(
res
,
file
)
{
this
.
addForm
.
videoUrl
=
res
.
data
;
this
.
loading
=
false
this
.
videoShow
=
false
this
.
$nextTick
(()
=>
{
this
.
videoShow
=
true
...
...
@@ -228,6 +236,7 @@ export default {
},
handlevideoedit
(
res
,
file
)
{
this
.
editForm
.
videoUrl
=
res
.
data
;
this
.
loading
=
false
this
.
videoShow
=
false
this
.
$nextTick
(()
=>
{
this
.
videoShow
=
true
...
...
@@ -398,6 +407,11 @@ export default {
}
};
</
script
>
<
style
>
.el-loading-spinner
{
width
:
35%
!important
;
}
</
style
>
<
style
scoped
lang=
"less"
>
.tableCont
{
height
:
calc
(
100vh
-
20px
);
...
...
src/components/page/IOC/data.vue
View file @
1c562811
...
...
@@ -637,7 +637,11 @@ export default {
margin
:
0
15px
;
}
.left
{
display
:
flex
;
display
:
-webkit-box
;
/* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
display
:
-moz-box
;
/* 老版本语法: Firefox (buggy) */
display
:
-ms-flexbox
;
/* 混合版本语法: IE 10 */
display
:
-webkit-flex
;
/* 新版本语法: Chrome 21+ */
display
:
flex
;
/* 新版本语法: Opera 12.1, Firefox 22+ */
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -787,7 +791,7 @@ export default {
}
.boxDiv3
{
width
:
23%
;
//
height
:
150
px
;
height
:
248
px
;
overflow
:
hidden
;
background
:
#ffffff
;
border
:
1px
solid
#ffffff
;
...
...
src/components/page/IOC/sellCarport.vue
View file @
1c562811
...
...
@@ -172,7 +172,7 @@ export default {
},
upload
(
data
)
{
if
(
data
===
1
)
{
window
.
open
(
this
.
fileUrl
+
'static/xls/模板.xls'
)
window
.
open
(
this
.
fileUrl
+
'static/xls/
出售车位
模板.xls'
)
}
else
if
(
data
===
3
)
{
this
.
$axios
({
method
:
'post'
,
...
...
static/xls/模板.xls
→
static/xls/
出售车位
模板.xls
View file @
1c562811
File moved
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