Commit 0b8848e2 by wangshuo

Merge branch 'issuevp'

parents 8d1780d6 fb7e2973
...@@ -35,6 +35,7 @@ class VideoCatalog extends Component { ...@@ -35,6 +35,7 @@ class VideoCatalog extends Component {
</div> </div>
{ {
this.props.isAist ? ( this.props.isAist ? (
item.video_auth ? (
(item.practice && item.practice.qid) (item.practice && item.practice.qid)
? <Link to={{ ? <Link to={{
pathname: item.practice.is_tested ? '/campResolve' : '/campTest', pathname: item.practice.is_tested ? '/campResolve' : '/campTest',
...@@ -43,13 +44,22 @@ class VideoCatalog extends Component { ...@@ -43,13 +44,22 @@ class VideoCatalog extends Component {
}}> }}>
<div className="exercise"> <div className="exercise">
课后练习:{item.practice.title} 课后练习:{item.practice.title}
<i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/> <i className={classnames('iconfont', item.practice.is_tested ? 'iconiconfront-3' : '')}/>
</div> </div>
</Link> </Link>
: null : null
) : ( ) : (
<a href="javascript:void(0)">
<div className="exercise">
课后练习:{item.practice.title}
<i className={classnames('iconfont','iconiconfront-74')}/>
</div>
</a>
)
) : (
item.practice_common.map((commonItem, index) => { item.practice_common.map((commonItem, index) => {
return ( return (
item.video_auth ? (
<Link to={{ <Link to={{
pathname: commonItem.is_tested ? '/campResolve' : '/campTest', pathname: commonItem.is_tested ? '/campResolve' : '/campTest',
search: `?keshi_id=${item.id}&qid=${commonItem.qid}`, search: `?keshi_id=${item.id}&qid=${commonItem.qid}`,
...@@ -57,9 +67,17 @@ class VideoCatalog extends Component { ...@@ -57,9 +67,17 @@ class VideoCatalog extends Component {
}} key={index}> }} key={index}>
<div className="exercise"> <div className="exercise">
课后练习:{commonItem.title} 课后练习:{commonItem.title}
<i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : commonItem.is_tested ? 'iconiconfront-3' : '')}/> <i className={classnames('iconfont',commonItem.is_tested ? 'iconiconfront-3' : '')}/>
</div> </div>
</Link> </Link>
) : (
<a href="javascript:void(0)">
<div className="exercise">
课后练习:{commonItem.title}
<i className={classnames('iconfont','iconiconfront-74')}/>
</div>
</a>
)
) )
}) })
) )
......
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