Commit e4e52ec5 by xuzhenghua

社区

parent 99d2686f
...@@ -50,9 +50,9 @@ class Index extends Component { ...@@ -50,9 +50,9 @@ class Index extends Component {
'href': '/examination' 'href': '/examination'
}, },
{ {
'src': require('./image/qynx_icon.png'), 'src': require('./image/shequ_icon.png'),
'name': '企业内训', 'name': '社区',
'href': 'http://m-active.julyedu.com' 'href': 'https://ask.julyedu.com'
} }
] ]
} }
...@@ -120,18 +120,18 @@ class Index extends Component { ...@@ -120,18 +120,18 @@ class Index extends Component {
return ( return (
<div className='index-box'> <div className='index-box'>
<div className='header'> <div className='header'>
<img <img
className="logo" className="logo"
src="http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/img/index/logo.png" src="http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/img/index/logo.png"
alt="" alt=""
/> />
<CallApp <CallApp
className='to-app' className='to-app'
text='在APP打开' text='在APP打开'
/> />
<i <i
className='iconfont iconiconfront- search' className='iconfont iconiconfront- search'
onClick={this.toSearch.bind(this)} onClick={this.toSearch.bind(this)}
/> />
</div> </div>
...@@ -166,8 +166,8 @@ class Index extends Component { ...@@ -166,8 +166,8 @@ class Index extends Component {
(this.state.lives && this.state.lives.length > 0) ? (this.state.lives && this.state.lives.length > 0) ?
<div className='lives'> <div className='lives'>
<h2 className="title">近期直播</h2> <h2 className="title">近期直播</h2>
<ScrollBox <ScrollBox
livesList={this.state.lives} livesList={this.state.lives}
liveCourse={this.liveCourse} liveCourse={this.liveCourse}
/> />
</div> : null </div> : null
...@@ -177,8 +177,8 @@ class Index extends Component { ...@@ -177,8 +177,8 @@ class Index extends Component {
(this.state.modules && this.state.modules.length > 0) ? this.state.modules.map((item, index) => { (this.state.modules && this.state.modules.length > 0) ? this.state.modules.map((item, index) => {
return ( return (
<div key={index}> <div key={index}>
<CourseList <CourseList
modules={item} modules={item}
toDetail={this.toCourseDetail} toDetail={this.toCourseDetail}
/> />
<p className="borderTop" /> <p className="borderTop" />
...@@ -197,10 +197,10 @@ class Index extends Component { ...@@ -197,10 +197,10 @@ class Index extends Component {
{/* 直播间预约 */} {/* 直播间预约 */}
{ {
this.state.islive && this.state.islive &&
<LiveRoom <LiveRoom
isShow={this.state.isShow} isShow={this.state.isShow}
colseBox={this.colseBox} colseBox={this.colseBox}
roomMess={this.state.roomMess} roomMess={this.state.roomMess}
getIndexData={this.getIndexData} getIndexData={this.getIndexData}
/> />
} }
...@@ -213,12 +213,12 @@ class Index extends Component { ...@@ -213,12 +213,12 @@ class Index extends Component {
function TopSwiper({bannerList}) { function TopSwiper({bannerList}) {
return ( return (
<Swiper <Swiper
type={animateTypes.CARD} type={animateTypes.CARD}
loop={true} loop={true}
height={168} height={168}
autoPlay={true} autoPlay={true}
typePro typePro
createStyle={createStyle} createStyle={createStyle}
> >
{bannerList && bannerList.length > 0 && bannerList.map((item, index) => { {bannerList && bannerList.length > 0 && bannerList.map((item, index) => {
...@@ -229,16 +229,16 @@ function TopSwiper({bannerList}) { ...@@ -229,16 +229,16 @@ function TopSwiper({bannerList}) {
<img className="item" src={item.name} alt="" /> <img className="item" src={item.name} alt="" />
{/* </Link> */} {/* </Link> */}
</a> : </a> :
<Link <Link
to={{ to={{
pathname: '/detail', pathname: '/detail',
search: `?id=${item.jump_url}` search: `?id=${item.jump_url}`
}} }}
key={index} key={index}
> >
<img <img
className="item" className="item"
src={item.name} src={item.name}
alt="" alt=""
/> />
</Link> </Link>
......
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