Commit bd0bb8c9 by zhanghaozhe

Merge branch '00' into dev

parents f110b984 dd481c7f
...@@ -85,7 +85,7 @@ class Prizes extends Component { ...@@ -85,7 +85,7 @@ class Prizes extends Component {
} = this.props } = this.props
return ( return (
<> <>
{showSystemNotices && <SystemBulletScreen/>} {showSystemNotices && <SystemBulletScreen bullets={this.state.notices}/>}
<div className={'prizes-box'} ref={el => this.prizeBox = el}> <div className={'prizes-box'} ref={el => this.prizeBox = el}>
<a href="javascript:;" className='rule-btn' onClick={this.showRules}>活动规则 > </a> <a href="javascript:;" className='rule-btn' onClick={this.showRules}>活动规则 > </a>
<div className={`bg`} ref={el => this.bg = el}/> <div className={`bg`} ref={el => this.bg = el}/>
......
...@@ -61,17 +61,15 @@ class SystemBulletScreen extends Component { ...@@ -61,17 +61,15 @@ class SystemBulletScreen extends Component {
content.style.transform = `translate3d(${-(contentWidth - wrapperWidth) - 10}px,0,0)` content.style.transform = `translate3d(${-(contentWidth - wrapperWidth) - 10}px,0,0)`
}, 1000) }, 1000)
} else { } else {
this.swiper.slideNext() setTimeout(() => {
swiper.slideNext()
}, 3000)
} }
} }
transitionEnd = () => { transitionEnd = () => {
const { const {
bullets = [ bullets = []
'第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,',
'第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,',
'第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,',
]
} = this.props } = this.props
const len = bullets.length * 3 const len = bullets.length * 3
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
height: 100%; height: 100%;
padding: 2px; padding: 2px;
line-height: 26px; line-height: 26px;
display: flex;
align-items: center;
} }
.avatar { .avatar {
......
...@@ -34,7 +34,7 @@ class Landing extends Component { ...@@ -34,7 +34,7 @@ class Landing extends Component {
componentDidMount() { componentDidMount() {
this.fetchPageData() this.fetchPageData()
window.showFollowAlert = this.remind('create') window.showFollowAlert = this.remind.bind(this, 'create')
} }
componentDidUpdate(prevProps) { componentDidUpdate(prevProps) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment