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
7354fb6f
Commit
7354fb6f
authored
Jan 03, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
a39d99f8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
1 deletions
+36
-1
src/components/activity/newyear-2019/common/user-bullet-screen/index.js
+1
-0
src/components/activity/newyear-2019/landing/index.js
+21
-1
src/components/activity/newyear-2019/myTreasure/index.js
+4
-0
src/components/activity/newyear-2019/preheat/index.js
+5
-0
src/components/activity/newyear-2019/year-wish/index.js
+5
-0
No files found.
src/components/activity/newyear-2019/common/user-bullet-screen/index.js
View file @
7354fb6f
...
...
@@ -16,6 +16,7 @@ class UserBulletScreen extends Component {
this
.
getBulletScreenData
(
true
)
}
componentWillUpdate
()
{}
componentWillUnmount
()
{
this
.
swiper
&&
this
.
swiper
.
destroy
()
}
...
...
src/components/activity/newyear-2019/landing/index.js
View file @
7354fb6f
...
...
@@ -38,6 +38,7 @@ class Landing extends Component {
}
componentDidMount
()
{
this
.
getStage
();
this
.
fetchPageData
()
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
'create'
)
document
.
title
=
'七月在线年终大回馈,幸运宝箱随你开,100%有奖!'
...
...
@@ -61,7 +62,26 @@ class Landing extends Component {
}
}
createMeta
=
()
=>
{
componentWillUnmount
()
{
this
.
shareTipPopup
&&
this
.
shareTipPopup
.
remove
()
}
// 获取活动以及宝箱的阶段
getStage
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/activity/stage`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
if
(
code
===
200
)
{
if
(
Number
(
data
.
activity_stage
)
===
0
)
{
this
.
props
.
history
.
push
(
'/'
);
return
;
}
}
else
{
Toast
.
info
(
msg
,
2
)
}
})
}
createMeta
=
(
title
,
dec
,
imgname
)
=>
{
let
meta
=
document
.
createElement
(
'meta'
);
meta
.
setAttribute
(
'name'
,
'description'
)
meta
.
setAttribute
(
'itemprop'
,
'description'
)
...
...
src/components/activity/newyear-2019/myTreasure/index.js
View file @
7354fb6f
...
...
@@ -309,6 +309,10 @@ class MyTreasure extends Component {
http
.
get
(
`
${
API
.
home
}
/activity/stage`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
if
(
code
===
200
)
{
if
(
Number
(
data
.
activity_stage
)
===
0
)
{
this
.
props
.
history
.
push
(
'/'
);
return
;
}
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
if
(
data
.
treasure_stage
===
0
)
{
this
.
startCountDown
()
...
...
src/components/activity/newyear-2019/preheat/index.js
View file @
7354fb6f
...
...
@@ -131,6 +131,10 @@ export default class index extends Component {
http
.
get
(
`
${
API
.
home
}
/activity/stage`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
if
(
code
===
200
)
{
if
(
Number
(
data
.
activity_stage
)
===
0
)
{
this
.
props
.
history
.
push
(
'/'
);
return
;
}
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
this
.
setState
({
activity_stage
:
data
.
activity_stage
,
...
...
@@ -168,6 +172,7 @@ export default class index extends Component {
<
/div
>
<
div
className
=
"banner-treasure__decorate"
><
/div
>
<
/div
>
{
/* 大咖直播 */
}
<
LiveRoom
isAppUpdate
=
{
this
.
state
.
isAppUpdate
}
/
>
...
...
src/components/activity/newyear-2019/year-wish/index.js
View file @
7354fb6f
...
...
@@ -46,6 +46,11 @@ class YarnWish extends Component {
http
.
get
(
`
${
API
.
home
}
/activity/stage`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
if
(
code
===
200
)
{
if
(
Number
(
data
.
activity_stage
)
===
0
)
{
this
.
props
.
history
.
push
(
'/'
);
return
;
}
this
.
setState
({
activityStage
:
data
.
activity_stage
// 0-不在活动时间 1-预热 2-正式 3-返场
})
...
...
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