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
af70d5be
Commit
af70d5be
authored
Apr 21, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
宝箱入口/渠道合作
parent
b7c81fd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/App.js
+6
-4
No files found.
src/App.js
View file @
af70d5be
...
...
@@ -28,6 +28,7 @@ class App extends Component {
super
(
props
)
this
.
state
=
{
isShowActivityEntry
:
0
,
isShowChannel
:
0
}
}
...
...
@@ -101,12 +102,14 @@ class App extends Component {
// 获取宝箱阶段
getStage
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/activity/stage`
).
then
(
res
=>
{
let
ccode
=
cookie
.
get
(
'ccode'
)
http
.
get
(
`
${
API
.
home
}
/activity/stage?ccode=
${
ccode
}
`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
if
(
code
===
200
)
{
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
this
.
setState
({
isShowActivityEntry
:
data
.
treasure_stage
isShowActivityEntry
:
data
.
treasure_stage
,
isShowChannel
:
data
.
is_show_site_window_by_channel
})
}
else
{
Toast
.
info
(
msg
,
2
)
...
...
@@ -294,12 +297,11 @@ class App extends Component {
}
}
render
()
{
return
<>
<
Routes
/>
{
!!
this
.
state
.
isShowActivityEntry
&&
!!
this
.
state
.
isShowActivityEntry
&&
!!
this
.
state
.
isShowChannel
&&
<
Link
className
=
{
'year19-index'
}
to
=
"/box/boxActive"
>
<
img
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/global-entry.png"
alt
=
""
/>
...
...
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