Commit 41bcec9e by wangshuo

公共弹框初步完善

parent 7a230890
......@@ -9,7 +9,8 @@ export default class index extends Component {
constructor(props) {
super(props);
this.state = {
list: []
list: [],
showMark: true,
}
}
......@@ -58,12 +59,26 @@ export default class index extends Component {
const vCourseId = url.split('/')[0];
history.push(`/play/video?id=${vCourseId}`)
}
// 关闭弹框
closePopup = () => {
this.setState({
showMark: false,
})
}
render() {
const { list } = this.state;
const { list,showMark } = this.state;
return (
<div className='live__container'>
<CommonPopup top={50}/>
{
showMark && (
<CommonPopup top={50} closePopup={this.closePopup} mark={true}>
<div>1</div>
<div>2</div>
</CommonPopup>
)
}
<CommonContainer title='大咖直播'>
<ul className='live__list'>
{
......
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