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
12b3a243
Commit
12b3a243
authored
Feb 10, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e1e9bee9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
278 additions
and
109 deletions
+278
-109
Educationvideo.vue
src/components/Educationvideo.vue
+116
-26
EducationvideoList.vue
src/components/EducationvideoList.vue
+135
-58
EducationvideoSee.vue
src/components/EducationvideoSee.vue
+1
-1
config.js
src/router/config.js
+26
-24
No files found.
src/components/Educationvideo.vue
View file @
12b3a243
...
...
@@ -2,7 +2,7 @@
<
template
>
<div
class=
"Educationvideo"
>
<div
class=
"left"
>
<ul
class=
"lineUl"
style=
"margin-top:6
2
px"
>
<ul
class=
"lineUl"
style=
"margin-top:6
4
px"
>
<li
@
click=
"SelectLineId(-1)"
:class=
"msg.LineId ==-1 ? 'Active' : ''"
>
不限
</li>
...
...
@@ -25,16 +25,27 @@
<div
@
click
.
prevent=
"goUrl('EducationvideoSee',item)"
class=
"imgDiv"
>
<img
v-if=
"item.Cover && item.Cover!=''"
:onerror=
"defaultImg"
style=
"height:195px;width:100%"
:src=
"item.Cover"
alt=
""
>
<img
v-else
style=
"height:195px;width:100%"
src=
"../assets/img/hotel/biefu.png"
alt=
""
>
<div
@
click
.
prevent=
"goUrl1('EducationvideoList',$event)"
class=
"icon"
>
<span
class=
"iconfont icon-weihu"
></span>
<div
class=
"backDiv"
>
<span
class=
"iconfont icon-ico_bofang"
></span>
<div
@
click
.
prevent=
"goUrl1('EducationvideoList',$event)"
class=
"icon"
>
<span
class=
"iconfont icon-weihu"
></span>
</div>
</div>
</div>
<p>
{{
item
.
Name
}}
</p>
<p>
{{
item
.
EmName
}}
</p>
<p>
{{
item
.
WatchNum
}}
次观看
<span
class=
"circle"
></span>
<span>
{{
item
.
UpdateDate
}}
</span>
</p>
<div
class=
"contentDiv"
>
<img
v-if=
"item.EmPhoto && item.EmPhoto!=''"
:src=
"item.EmPhoto"
alt=
""
>
<img
v-else
src=
"../assets/img/default.png"
alt=
""
>
<div
class=
"DesDiv"
>
<p
style=
"font-size:14px"
class=
"bold"
>
{{
item
.
Name
}}
</p>
<p
class=
"wryh"
style=
"color:#aaaaaa"
>
{{
item
.
EmName
}}
</p>
<p
class=
"wryh"
style=
"color:#aaaaaa"
>
{{
item
.
WatchNum
}}
次观看
<span
class=
"circle"
></span>
<span>
{{
item
.
UpdateDate
}}
</span>
</p>
</div>
</div>
</li>
</ul>
<div
v-if=
"dataList.length==0"
style=
"text-align:center;padding-top:40px"
>
...
...
@@ -45,6 +56,12 @@
</el-pagination>
</div>
</div>
<div
class=
"videoDiv"
v-show=
"videoDivState"
>
<div
style=
"text-align:right;padding-right:15px;cursor:pointer"
><span
@
click=
"videoDivState=false"
style=
"font-size:30px;color:#fff"
class=
"iconfont icon-bumenguanli-shanchu"
></span></div>
<video
autoplay=
"autoplay"
width=
"100%"
height=
"90%"
:src=
"thisVideoAddress"
controls=
"controls"
></video>
</div>
</div>
</
template
>
...
...
@@ -57,6 +74,8 @@ export default {
},
data
()
{
return
{
videoDivState
:
false
,
thisVideoAddress
:
""
,
defaultImg
:
'this.src="'
+
require
(
"../assets/img/bg_z1@2x.png"
)
+
'"'
,
val
:
''
,
LineList
:[],
...
...
@@ -77,6 +96,17 @@ export default {
mounted
()
{
this
.
getLineList
();
this
.
getList
();
window
.
addEventListener
(
'scroll'
,
function
(){
console
.
log
(
"ddocument.documentElement.offsetHeight"
,
document
.
documentElement
.
offsetHeight
)
console
.
log
(
"ddocument.documentElement.scrollTop"
,
document
.
documentElement
.
scrollTop
)
console
.
log
(
"window.innerHeight"
,
window
.
innerHeight
)
let
bottomOfWindow
=
document
.
documentElement
.
offsetHeight
-
document
.
documentElement
.
scrollTop
-
window
.
innerHeight
<=
200
console
.
log
(
"bottomOfWindow"
,
bottomOfWindow
)
if
(
bottomOfWindow
)
{
console
.
log
(
"滚动到底部"
)
}
})
},
methods
:
{
SelectLineId
(
id
){
...
...
@@ -113,15 +143,29 @@ export default {
}
});
},
goUrl
(
path
,
item
)
{
let
msg
=
JSON
.
stringify
(
item
)
this
.
$router
.
push
({
name
:
path
,
query
:
{
msg
:
msg
,
blank
:
"y"
AddList
(
id
)
{
this
.
apipost
(
"Video_post_SetVideoWatch"
,{
VideoId
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
});
}
);
},
goUrl
(
path
,
item
){
this
.
videoDivState
=
true
;
this
.
thisVideoAddress
=
item
.
VideoAddress
;
this
.
AddList
(
item
.
Id
)
// let msg=JSON.stringify(item)
// this.$router.push({
// name:path,
// query: {
// msg:msg,
// blank: "y"
// }
// });
},
//获取线路列表
getLineList
()
{
...
...
@@ -141,6 +185,52 @@ export default {
}
</
script
>
<
style
>
.wryh
{
font-family
:
'微软雅黑'
}
.Educationvideo
.right
.Content
.videoUl
li
.backDiv
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
absolute
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.3
);
top
:
0
;
}
.Educationvideo
.right
.Content
.videoUl
li
.imgDiv
.icon-ico_bofang
{
position
:
absolute
;
font-size
:
36px
;
color
:
#fff
;
}
.videoDiv
{
position
:
fixed
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999999999
;
background
:
#000
;
}
.Educationvideo
.contentDiv
img
{
width
:
35px
;
height
:
35px
;
border-radius
:
50%
;
position
:
absolute
;
}
.Educationvideo
.contentDiv
.DesDiv
{
padding-left
:
45px
;
box-sizing
:
border-box
;
width
:
100%
;
}
.Educationvideo
.contentDiv
{
position
:
relative
;
margin-top
:
5px
;
}
.Educationvideo
.bold
{
font-family
:
"pingfangR"
}
.Educationvideo
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background-color
:
#f56c6c
!important
;
}
...
...
@@ -171,7 +261,6 @@ export default {
}
.Educationvideo
.right
.Content
.videoUl
li
p
{
font-size
:
12px
;
color
:
#666666
;
padding-left
:
6px
;
box-sizing
:
border-box
;
}
...
...
@@ -183,7 +272,7 @@ export default {
margin-right
:
10px
;
}
.Educationvideo
.right
.Content
{
padding
:
90
px
15px
10px
15px
;
padding
:
15
px
15px
10px
15px
;
box-sizing
:
border-box
;
}
*
{
...
...
@@ -193,6 +282,7 @@ export default {
.Educationvideo
.left
.lineUl
.Active
{
color
:
#fff
;
background
:
#f56c6c
;
font-family
:
"pingfangR"
;
}
.Educationvideo
.left
.lineUl
li
:hover
{
background
:
#f56c6c
;
...
...
@@ -212,20 +302,20 @@ li{
padding
:
15px
0
;
padding-left
:
50px
;
box-sizing
:
border-box
;
position
:
fixed
;
top
:
0
;
width
:
calc
(
100%
-
200px
);
/*
position: fixed;
top:
50px
;
width: calc(100% - 200px);
*/
background
:
#fff
;
left
:
200px
;
/* left: 200px; */
}
.Educationvideo
{
position
:
relative
;
min-height
:
100%
;
background
:
#f
ff
;
background
:
#f
5f5f5
;
}
.Educationvideo
.left
{
position
:
fixed
;
position
:
absolute
;
min-height
:
100%
;
width
:
200px
;
z-index
:
100
;
...
...
@@ -233,7 +323,7 @@ li{
}
.Educationvideo
.right
{
background
:
#f5f5f5
;
padding-left
:
2
1
0px
;
padding-left
:
2
0
0px
;
box-sizing
:
border-box
;
min-height
:
100%
;
}
...
...
src/components/EducationvideoList.vue
View file @
12b3a243
This diff is collapsed.
Click to expand it.
src/components/EducationvideoSee.vue
View file @
12b3a243
...
...
@@ -6,7 +6,7 @@
<div
class=
"imgDiv"
>
<video
style=
"border: 1px solid #f5f5f5;"
width=
"100%"
:height=
"videoHeight"
:src=
"datainfo.VideoAddress"
controls=
"controls"
>
</video>
<p
style=
"font-size:18px;font-family:'
PingF
angR';margin-top:15px"
>
{{
datainfo
.
Name
}}
</p>
<p
style=
"font-size:18px;font-family:'
pingf
angR';margin-top:15px"
>
{{
datainfo
.
Name
}}
</p>
<p>
{{
datainfo
.
EmName
}}
</p>
<p>
{{
datainfo
.
WatchNum
}}
次观看
<span
class=
"circle"
></span>
...
...
src/router/config.js
View file @
12b3a243
...
...
@@ -133,6 +133,31 @@ export default {
title
:
'操作'
}
},
{
path
:
'/Educationvideo'
,
//教育视频
name
:
'Educationvideo'
,
component
:
resolve
=>
require
([
'@/components/Educationvideo'
],
resolve
),
meta
:
{
title
:
'教育视频'
},
},
{
path
:
'/EducationvideoSee'
,
//教育视频
name
:
'EducationvideoSee'
,
component
:
resolve
=>
require
([
'@/components/EducationvideoSee'
],
resolve
),
meta
:
{
title
:
'观看教育视频'
},
},
{
path
:
'/EducationvideoList'
,
//教育视频
name
:
'EducationvideoList'
,
component
:
resolve
=>
require
([
'@/components/EducationvideoList'
],
resolve
),
meta
:
{
title
:
'维护教育视频'
},
},
{
path
:
'/finance'
,
name
:
'finance'
,
...
...
@@ -4495,30 +4520,7 @@ export default {
title
:
'资产管理'
},
},
{
path
:
'/Educationvideo'
,
//教育视频
name
:
'Educationvideo'
,
component
:
resolve
=>
require
([
'@/components/Educationvideo'
],
resolve
),
meta
:
{
title
:
'教育视频'
},
},
{
path
:
'/EducationvideoSee'
,
//教育视频
name
:
'EducationvideoSee'
,
component
:
resolve
=>
require
([
'@/components/EducationvideoSee'
],
resolve
),
meta
:
{
title
:
'观看教育视频'
},
},
{
path
:
'/EducationvideoList'
,
//教育视频
name
:
'EducationvideoList'
,
component
:
resolve
=>
require
([
'@/components/EducationvideoList'
],
resolve
),
meta
:
{
title
:
'维护教育视频'
},
},
{
...
...
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