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
3e9a09f8
Commit
3e9a09f8
authored
Nov 07, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头部图片替换以及动态切换
parent
21e7591c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
src/components/blessingPreheat/banner/index.js
+2
-2
src/components/blessingPreheat/banner/index.scss
+4
-0
src/components/blessingPreheat/index.js
+1
-0
No files found.
src/components/blessingPreheat/banner/index.js
View file @
3e9a09f8
...
@@ -97,10 +97,10 @@ class Banner extends Component {
...
@@ -97,10 +97,10 @@ class Banner extends Component {
render
()
{
render
()
{
const
{
toSection
,
navs
,
index
}
=
this
.
props
;
const
{
toSection
,
navs
,
index
,
isFormal
}
=
this
.
props
;
return
(
return
(
<
div
id
=
{
'main-banner'
}
>
<
div
id
=
{
'main-banner'
}
>
<
div
className
=
"banner"
><
/div
>
<
div
className
=
{
`banner
${
isFormal
?
'formal_banner'
:
''
}
`
}
><
/div
>
<
nav
id
=
{
'main-nav'
}
>
<
nav
id
=
{
'main-nav'
}
>
<
ul
>
<
ul
>
{
{
...
...
src/components/blessingPreheat/banner/index.scss
View file @
3e9a09f8
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png")
no-repeat
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png")
no-repeat
;
background-size
:
contain
;
background-size
:
contain
;
}
}
.formal_banner
{
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/formal_banner.png")
no-repeat
;
background-size
:
contain
;
}
#main-nav
{
#main-nav
{
position
:
absolute
;
position
:
absolute
;
top
:
183px
;
top
:
183px
;
...
...
src/components/blessingPreheat/index.js
View file @
3e9a09f8
...
@@ -88,6 +88,7 @@ class BlessingPreheat extends Component {
...
@@ -88,6 +88,7 @@ class BlessingPreheat extends Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
document
.
title
=
'11.11-11.13 AI充电节,预热来袭!积福气享1折秒课,海量奖品来就送-七月在线'
;
this
.
fetchUserBlessing
()
this
.
fetchUserBlessing
()
this
.
setInitialNavActiveStatus
()
this
.
setInitialNavActiveStatus
()
window
.
addEventListener
(
'scroll'
,
throttle
(
this
.
calcNavActive
,
100
))
window
.
addEventListener
(
'scroll'
,
throttle
(
this
.
calcNavActive
,
100
))
...
...
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