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
87e0d8cc
Commit
87e0d8cc
authored
Dec 17, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换系统通知头像
parent
784ef1fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
src/components/activity/newyear-2019/common/prizes/index.js
+1
-1
src/components/activity/newyear-2019/common/system-bullet-screen/index.js
+11
-10
No files found.
src/components/activity/newyear-2019/common/prizes/index.js
View file @
87e0d8cc
...
...
@@ -86,7 +86,7 @@ class Prizes extends Component {
const
{
notices
}
=
this
.
state
return
(
<>
{
showSystemNotices
&&
notices
&&
notices
.
length
&&
<
SystemBulletScreen
bullets
=
{
notices
}
/>
}
{
(
showSystemNotices
&&
notices
&&
notices
.
length
)
?
<
SystemBulletScreen
bullets
=
{
notices
}
/> : null
}
<
div
className
=
{
'prizes-box'
}
ref
=
{
el
=>
this
.
prizeBox
=
el
}
>
<
a
href
=
"javascript:;"
className
=
'rule-btn'
onClick
=
{
this
.
showRules
}
>
活动规则
>
<
/a
>
<
div
className
=
{
`bg`
}
ref
=
{
el
=>
this
.
bg
=
el
}
/
>
...
...
src/components/activity/newyear-2019/common/system-bullet-screen/index.js
View file @
87e0d8cc
...
...
@@ -61,8 +61,8 @@ class SystemBulletScreen extends Component {
},
1000
)
}
else
{
setTimeout
(()
=>
{
++
this
.
count
swiper
.
slideNext
()
++
this
.
count
;
(
swiper
&&
!
swiper
.
destroyed
)
&&
swiper
.
slideNext
()
},
3000
)
}
}
...
...
@@ -99,17 +99,18 @@ class SystemBulletScreen extends Component {
this
.
state
.
showNotices
&&
<
div
id
=
"system-bullet-screen"
onTransitionEnd
=
{
this
.
removeSystemNotices
}
ref
=
{
el
=>
this
.
sysNotice
=
el
}
>
<
img
className
=
'avatar'
src
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-
avatar
.png'
alt
=
""
/>
src
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-
notice-icon
.png'
alt
=
""
/>
<
div
className
=
'sys-bullet-screen-swiper-container'
>
<
ul
className
=
"swiper-wrapper"
>
{
bullets
&&
bullets
.
length
&&
bullets
.
map
((
item
,
index
)
=>
{
return
(
<
li
className
=
"swiper-slide"
key
=
{
index
}
>
<
span
>
{
item
}
<
/span
>
<
/li
>
)
})
(
bullets
&&
bullets
.
length
)
?
bullets
.
map
((
item
,
index
)
=>
{
return
(
<
li
className
=
"swiper-slide"
key
=
{
index
}
>
<
span
>
{
item
}
<
/span
>
<
/li
>
)
})
:
null
}
<
/ul
>
<
/div
>
...
...
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