Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
baiguangyao
mr-julyedu
Commits
65adf51c
Commit
65adf51c
authored
Mar 05, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时免费
parent
7a2dceef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
5 deletions
+37
-5
src/components/video/index.js
+14
-2
src/components/video/video.scss
+23
-3
No files found.
src/components/video/index.js
View file @
65adf51c
...
@@ -10,7 +10,7 @@ import { Toast } from 'antd-mobile'
...
@@ -10,7 +10,7 @@ import { Toast } from 'antd-mobile'
import
videojs
from
'video.js'
import
videojs
from
'video.js'
import
'video.js/dist/video-js.min.css'
import
'video.js/dist/video-js.min.css'
import
{
Modal
}
from
"antd-mobile"
import
{
Modal
}
from
"antd-mobile"
import
{
Loading
}
from
'@/common'
import
{
Loading
,
Popup
}
from
'@/common'
import
{
connect
}
from
"react-redux"
import
{
connect
}
from
"react-redux"
import
jsCookie
from
'js-cookie'
import
jsCookie
from
'js-cookie'
import
Single
from
"@/components/detail/single"
;
import
Single
from
"@/components/detail/single"
;
...
@@ -133,6 +133,10 @@ class Video extends Component {
...
@@ -133,6 +133,10 @@ class Video extends Component {
this
.
token
=
jsCookie
.
get
(
'token'
)
this
.
token
=
jsCookie
.
get
(
'token'
)
this
.
getVideoList
()
this
.
getVideoList
()
this
.
getDatumCatalog
()
this
.
getDatumCatalog
()
this
.
showLimitFreePopup
({
title
:
'想领取【AI工程师必备干货礼包】? 想深入了解进阶课程? 职业前景不明朗? 资深规划师免费为你服务!'
,
})
}
}
// 直接购买
// 直接购买
...
@@ -733,6 +737,15 @@ class Video extends Component {
...
@@ -733,6 +737,15 @@ class Video extends Component {
}
}
}
}
showLimitFreePopup
=
(
title
,
id
)
=>
{
Popup
({
title
:
<
span
>
想领取【
AI
工程师必备干货礼包】
?
想深入了解进阶课程?
职业前景不明朗
?
资深规划师免费为你服务
!<
/span>
,
className
:
'free-popup'
,
content
:
<
div
className
=
{
'des'
}
>
<
img
className
=
"qrcode"
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png"
/>
<
/div
>
})
}
render
()
{
render
()
{
let
{
match
,
location
,
history
}
=
this
.
props
let
{
match
,
location
,
history
}
=
this
.
props
...
@@ -868,7 +881,6 @@ class Video extends Component {
...
@@ -868,7 +881,6 @@ class Video extends Component {
closeShareModal
=
{()
=>
this
.
setState
({
isShowShareModal
:
false
})}
closeShareModal
=
{()
=>
this
.
setState
({
isShowShareModal
:
false
})}
data
=
{
this
.
state
.
shareData
}
data
=
{
this
.
state
.
shareData
}
/
>
/
>
<
/div
>
<
/div
>
);
);
}
}
...
...
src/components/video/video.scss
View file @
65adf51c
...
@@ -20,7 +20,6 @@ $tabHeight: 44px;
...
@@ -20,7 +20,6 @@ $tabHeight: 44px;
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
.vjs-custom-play-button
{
.vjs-custom-play-button
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
...
@@ -33,8 +32,8 @@ $tabHeight: 44px;
...
@@ -33,8 +32,8 @@ $tabHeight: 44px;
}
}
}
}
&
.vjs-has-started
{
&
.vjs-has-started
{
.vjs-custom-play-button-cover
{
.vjs-custom-play-button-cover
{
bottom
:
2
.9em
;
bottom
:
2
.9em
;
}
}
}
}
...
@@ -281,3 +280,24 @@ $tabHeight: 44px;
...
@@ -281,3 +280,24 @@ $tabHeight: 44px;
}
}
}
}
}
}
.free-popup
{
width
:
290px
;
height
:
366px
;
border-radius
:
5px
!
important
;
padding
:
0
!
important
;
overflow
:
hidden
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/popup-bg.png")
!
important
;
background-size
:
cover
!
important
;
.title
{
display
:
flex
;
align-items
:
center
;
height
:
125px
;
padding
:
0
20px
;
color
:
#fff
!
important
;
font-size
:
15px
;
}
}
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