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
66784560
Commit
66784560
authored
Jan 25, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
驰援wuhan
parent
7e60f9c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
17 deletions
+82
-17
src/App.js
+20
-16
src/components/activity/newyear-2019/preheat/YearCourse/index.js
+28
-1
src/components/activity/newyear-2019/preheat/YearCourse/index.scss
+30
-0
src/components/activity/newyear-2019/preheat/nav.js
+4
-0
No files found.
src/App.js
View file @
66784560
...
@@ -3,7 +3,7 @@ import Routes from './router'
...
@@ -3,7 +3,7 @@ import Routes from './router'
import
cookie
from
'js-cookie'
import
cookie
from
'js-cookie'
import
{
connect
}
from
"react-redux"
import
{
connect
}
from
"react-redux"
import
{
setCurrentUser
,
startFetchUser
}
from
"@/store/userAction"
import
{
setCurrentUser
,
startFetchUser
}
from
"@/store/userAction"
import
{
initialState
}
from
"@/store/userReducer"
import
{
initialState
}
from
"@/store/userReducer"
import
{
withRouter
,
Link
}
from
'react-router-dom'
import
{
withRouter
,
Link
}
from
'react-router-dom'
import
{
compose
}
from
'redux'
import
{
compose
}
from
'redux'
import
{
getParam
,
http
,
browser
}
from
"@/utils"
import
{
getParam
,
http
,
browser
}
from
"@/utils"
...
@@ -34,18 +34,22 @@ class App extends Component {
...
@@ -34,18 +34,22 @@ class App extends Component {
pathnameBlacklist
=
[
'/country'
,
'/passport'
]
pathnameBlacklist
=
[
'/country'
,
'/passport'
]
firstLoad
=
true
firstLoad
=
true
componentWillMount
(){
componentWillMount
()
{
if
(
!
getParam
(
'version'
))
{
if
(
!
getParam
(
'version'
))
{
if
(
!
cookie
.
get
(
'qimoClientIdedu'
))
{
if
(
!
cookie
.
get
(
'qimoClientIdedu'
))
{
this
.
getqimoClientId
()
this
.
getqimoClientId
()
}
else
{
}
else
{
window
.
qimoClientId
=
cookie
.
get
(
'qimoClientIdedu'
)}
window
.
qimoClientId
=
cookie
.
get
(
'qimoClientIdedu'
)
}
}
}
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
umengStatistic
()
this
.
umengStatistic
()
//平台信息
//平台信息
cookie
.
set
(
'plat'
,
'5'
,
{
domain
:
'.julyedu.com'
})
!
getParam
(
'version'
)
&&
cookie
.
set
(
'plat'
,
'5'
,
{
domain
:
'.julyedu.com'
})
if
(
browser
.
isWeixin
&&
browser
.
isIOS
)
{
if
(
browser
.
isWeixin
&&
browser
.
isIOS
)
{
sessionStorage
.
setItem
(
'enter_url'
,
window
.
location
.
href
)
sessionStorage
.
setItem
(
'enter_url'
,
window
.
location
.
href
)
...
@@ -285,19 +289,19 @@ class App extends Component {
...
@@ -285,19 +289,19 @@ class App extends Component {
// 七陌客服代码 start
// 七陌客服代码 start
getqimoClientId
=
()
=>
{
getqimoClientId
=
()
=>
{
http
.
post
(
`
${
API
[
'home'
]}
/qiMoUserId`
)
http
.
post
(
`
${
API
[
'home'
]}
/qiMoUserId`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
window
.
qimoClientId
=
res
.
data
.
data
.
userId
window
.
qimoClientId
=
res
.
data
.
data
.
userId
cookie
.
set
(
'qimoClientIdedu'
,
res
.
data
.
data
.
userId
,
{
domain
:
'.julyedu.com'
})
cookie
.
set
(
'qimoClientIdedu'
,
res
.
data
.
data
.
userId
,
{
domain
:
'.julyedu.com'
})
}
}
})
})
.
catch
(
function
()
{
.
catch
(
function
()
{
})
})
}
}
QimoClient
=
()
=>
{
QimoClient
=
()
=>
{
let
utm_source
=
getParam
(
'utm_source'
)
let
utm_source
=
getParam
(
'utm_source'
)
let
utm_medium
=
getParam
(
'utm_medium'
)
let
utm_medium
=
getParam
(
'utm_medium'
)
let
utm_campaign
=
getParam
(
'utm_campaign'
)
let
utm_campaign
=
getParam
(
'utm_campaign'
)
...
@@ -320,8 +324,8 @@ class App extends Component {
...
@@ -320,8 +324,8 @@ class App extends Component {
document
.
body
.
appendChild
(
script
)
document
.
body
.
appendChild
(
script
)
}
}
// 七陌客服代码 end
// 七陌客服代码 end
render
()
{
render
()
{
...
...
src/components/activity/newyear-2019/preheat/YearCourse/index.js
View file @
66784560
...
@@ -653,7 +653,34 @@ class YearCourse extends Component {
...
@@ -653,7 +653,34 @@ class YearCourse extends Component {
<
/div
>
<
/div
>
<
CommonContainer
title
=
'驰援武汉 注册即送'
id
=
'year-wuhan'
>
<
div
className
=
"course-box course-conter"
>
<
div
className
=
"course-item"
>
<
span
>
注册即送
<
/span
>
<
a
href
=
"/detail?id=224"
>
<
img
src
=
"http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/75d1c3cef5.png"
alt
=
""
/>
<
/a
>
<
/div
>
<
div
className
=
"course-item"
>
<
span
>
注册即送
<
/span
>
<
a
href
=
"/detail?id=206"
>
<
img
src
=
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/b001fac23f.png"
alt
=
""
/>
<
/a
>
<
/div
>
<
div
className
=
"course-item"
>
<
span
>
注册即送
<
/span
>
<
a
href
=
"/detail?id=230"
>
<
img
src
=
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d0fb0a479b.png"
alt
=
""
/>
<
/a
>
<
/div
>
<
/div
>
<
/CommonContainer
>
{
/* 重磅好课 */
}
{
/* 重磅好课 */
}
...
...
src/components/activity/newyear-2019/preheat/YearCourse/index.scss
View file @
66784560
...
@@ -10,6 +10,36 @@
...
@@ -10,6 +10,36 @@
margin
:
12px
auto
0
;
margin
:
12px
auto
0
;
}
}
.course-conter
{
.course-item
{
width
:
168px
;
padding
:
4px
;
background-color
:
#fff
;
position
:
relative
;
border-radius
:
2px
;
span
{
position
:
absolute
;
right
:
4px
;
top
:
4px
;
width
:
60px
;
display
:
block
;
text-align
:
center
;
padding-left
:
5px
;
border-radius
:
0
0
0
10px
;
background-color
:
#EB1612
;
color
:
#fff
;
font-size
:
12px
;
}
a
{
width
:
160px
;
height
:
104px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
}
}
.course-box
{
.course-box
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/components/activity/newyear-2019/preheat/nav.js
View file @
66784560
...
@@ -20,6 +20,10 @@ class TreasureNav extends Component {
...
@@ -20,6 +20,10 @@ class TreasureNav extends Component {
name
:
'组队开宝箱'
name
:
'组队开宝箱'
},
},
{
{
id
:
'year-wuhan'
,
name
:
'驰援武汉'
},
{
id
:
'year-course'
,
id
:
'year-course'
,
name
:
'重磅好课'
name
:
'重磅好课'
},
},
...
...
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