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
ee2358a8
Commit
ee2358a8
authored
Dec 16, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00' of gitlab.julyedu.com:baiguangyao/mr-julyedu into 00
parents
6fa5ba5a
b767a24d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
src/components/activity/newyear-2019/common/system-bullet-screen/index.js
+3
-6
src/components/activity/newyear-2019/common/system-bullet-screen/system-bullet-screen.scss
+2
-1
src/components/activity/newyear-2019/common/user-bullet-screen/index.js
+1
-1
No files found.
src/components/activity/newyear-2019/common/system-bullet-screen/index.js
View file @
ee2358a8
...
...
@@ -22,7 +22,6 @@ class SystemBulletScreen extends Component {
this
.
swiper
&&
this
.
swiper
.
destroy
()
}
initializeSwiper
=
()
=>
{
const
_this
=
this
this
.
swiper
=
new
Swiper
(
'.sys-bullet-screen-swiper-container'
,
{
...
...
@@ -62,18 +61,16 @@ class SystemBulletScreen extends Component {
},
1000
)
}
else
{
setTimeout
(()
=>
{
++
this
.
count
;
swiper
.
slideNext
()
},
3000
)
}
}
transitionEnd
=
()
=>
{
const
{
bullets
=
[]
}
=
this
.
props
const
{
bullets
}
=
this
.
props
const
len
=
bullets
.
length
*
3
if
(
++
this
.
count
===
len
)
{
setTimeout
(()
=>
{
this
.
sysNotice
.
style
.
height
=
`0px`
...
...
@@ -87,7 +84,7 @@ class SystemBulletScreen extends Component {
removeSystemNotices
=
e
=>
{
e
.
persist
()
if
(
e
.
target
===
this
.
sysNotice
)
{
if
(
e
.
target
===
this
.
sysNotice
)
{
this
.
setState
({
showNotices
:
false
})
...
...
src/components/activity/newyear-2019/common/system-bullet-screen/system-bullet-screen.scss
View file @
ee2358a8
@import
"../user-bullet-screen/bullet-screen"
;
#system-bullet-screen
{
@extend
.bullet-screen
;
overflow
:
hidden
;
margin-top
:
11px
;
margin-bottom
:
16px
;
...
...
@@ -25,9 +26,9 @@
span
{
display
:
inline-block
;
white-space
:
nowrap
;
overflow
:
visible
;
line-height
:
30px
;
}
}
@extend
.bullet-screen
;
}
src/components/activity/newyear-2019/common/user-bullet-screen/index.js
View file @
ee2358a8
...
...
@@ -16,7 +16,7 @@ class UserBulletScreen extends Component {
this
.
getBulletScreenData
(
true
)
}
componentWillU
pdate
()
{
componentWillU
nmount
()
{
this
.
swiper
&&
this
.
swiper
.
destroy
()
}
...
...
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