Commit 38b96b7c by wangshuo

class-className

parent e32e3e64
...@@ -70,36 +70,36 @@ export default class index extends Component { ...@@ -70,36 +70,36 @@ export default class index extends Component {
return <li key={index} className='live_room_item'> return <li key={index} className='live_room_item'>
<img className='user__avatar' src={item.avatar} alt="" /> <img className='user__avatar' src={item.avatar} alt="" />
<div className='live__info'> <div className='live__info'>
<div class="theme"> <div className="theme">
<span>主题:</span> <span>主题:</span>
<p>{item.title}</p> <p>{item.title}</p>
</div> </div>
<div class="info__item"> <div className="info__item">
<span>时间:</span> <span>时间:</span>
<p>{item.date}</p> <p>{item.date}</p>
</div> </div>
<div class="info__item"> <div className="info__item">
<span>讲师:</span> <span>讲师:</span>
<p>{item.teacher}</p> <p>{item.teacher}</p>
</div> </div>
{ {
item.on_live == 0 && item.is_end == 0 && item.is_subscribe == 0 && ( item.on_live == 0 && item.is_end == 0 && item.is_subscribe == 0 && (
<span onClick={this.subscribe(item.live_id)} class="order__btn">立即预约</span> <span onClick={this.subscribe(item.live_id)} className="order__btn">立即预约</span>
) )
} }
{ {
item.on_live == 0 && item.is_end == 0 && item.is_subscribe == 1 && ( item.on_live == 0 && item.is_end == 0 && item.is_subscribe == 1 && (
<span onClick={this.tip} class="order__btn subscribed">已预约</span> <span onClick={this.tip} className="order__btn subscribed">已预约</span>
) )
} }
{ {
item.on_live == 1 && item.is_end == 0 && ( item.on_live == 1 && item.is_end == 0 && (
<span onClick={this.toLivingRoom(item.room_url)} class="order__btn living">正在直播</span> <span onClick={this.toLivingRoom(item.room_url)} className="order__btn living">正在直播</span>
) )
} }
{ {
item.is_end == 1 && item.transcribe_url != '' && ( item.is_end == 1 && item.transcribe_url != '' && (
<span onClick={this.checkVideo(item.transcribe_url)} class="order__btn check__video">查看回放</span> <span onClick={this.checkVideo(item.transcribe_url)} className="order__btn check__video">查看回放</span>
) )
} }
......
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