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
fed9964c
Commit
fed9964c
authored
Jul 17, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播icon
parent
5492d75d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
3 deletions
+57
-3
src/components/activity/2020-717/activity/index.js
+31
-3
src/components/activity/2020-717/activity/index.scss
+26
-0
No files found.
src/components/activity/2020-717/activity/index.js
View file @
fed9964c
...
...
@@ -14,7 +14,6 @@ import { REDO, addData } from "@components/activity/2020-717/question/store/redu
class
Anniversary2020
extends
Component
{
nav
=
null
store
=
storage
.
namespace
(
'anniversary2020'
)
stages
=
{
...
...
@@ -108,10 +107,19 @@ class Anniversary2020 extends Component {
prizeRecordsPagination
:
0
,
bulletScreenList
:
[],
prizeType
:
''
,
needMobile
:
false
// 是否需要绑定手机号
needMobile
:
false
,
// 是否需要绑定手机号
istime
:
true
,
isshowLive
:
true
,
}
componentDidMount
()
{
let
now
=
new
Date
().
getTime
()
let
future
=
new
Date
(
'2020-7-17 20:30:00'
).
getTime
()
this
.
setState
({
istime
:
future
>
now
?
true
:
false
})
this
.
getActivityStage
()
this
.
getTeam
()
this
.
getUserAddress
()
...
...
@@ -593,6 +601,8 @@ class Anniversary2020 extends Component {
isShowFollow
,
qrcode
,
countDown
,
isshowLive
,
istime
}
=
this
.
state
const
{
history
,
user
}
=
this
.
props
...
...
@@ -622,6 +632,24 @@ class Anniversary2020 extends Component {
{
!
activityData
.
is_sign
&&
<
div
className
=
"sign"
onClick
=
{
this
.
sign
}
><
/div
>
}
{
istime
&&
isshowLive
&&
<
div
className
=
'live-icon-box'
>
<
div
className
=
"live-icon"
>
<
img
className
=
"live-icon-img"
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/live-icon-m.png"
alt
=
""
/>
<
img
className
=
"live-icon-close"
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/close_icon.png"
alt
=
""
onClick
=
{()
=>
{
this
.
setState
({
isshowLive
:
false
})
}}
/
>
<
/div
>
<
/div
>
}
<
nav
ref
=
{
el
=>
this
.
nav
=
el
}
>
<
ul
>
{
...
...
@@ -1268,7 +1296,7 @@ class Anniversary2020 extends Component {
}}
><
/TeamMember
>
}
{
isShowFollow
&&
<
div
className
=
{
'modal-cover follow'
}
>
isShowFollow
&&
(
!
istime
||
!
isshowLive
)
&&
<
div
className
=
{
'modal-cover follow'
}
>
<
div
className
=
"modal"
>
<
div
className
=
"title"
>
邀请好友
/
进度提醒
<
/div
>
<
div
className
=
"tip"
>
邀请好友加入队伍,获得更多抽奖机会
<
/div
>
...
...
src/components/activity/2020-717/activity/index.scss
View file @
fed9964c
...
...
@@ -98,6 +98,32 @@
z-index
:
101
;
}
.live-icon-box
{
position
:
fixed
;
top
:
0
;
left
:
0
;
bottom
:
0
;
right
:
0
;
background
:
rgba
(
0
,
0
,
0
,.
6
);
z-index
:
101
;
text-align
:
center
;
.live-icon
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
218px
;
z-index
:
102
;
margin-left
:
-109px
;
margin-top
:
-114px
;
}
.live-icon-close
{
width
:
24px
;
height
:
24px
;
margin-top
:
15px
;
}
}
a
.rule-btn
{
font-size
:
14px
;
color
:
#fff
;
...
...
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