Commit e4e52ec5 by xuzhenghua

社区

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