Commit e1cc8ecf by zhanghaozhe

我的课程

parent 77226fed
...@@ -79,7 +79,7 @@ class MyCourses extends Component { ...@@ -79,7 +79,7 @@ class MyCourses extends Component {
handleClick = (id, item) => { handleClick = (id, item) => {
const {history} = this.props const {history} = this.props
const {mode, course_id} = item const {mode, course_id} = item
if(mode && mode == 6){ if (mode && mode == 6) {
history.push(`/python?id=${course_id}`) history.push(`/python?id=${course_id}`)
return return
} }
...@@ -156,11 +156,11 @@ class MyCourses extends Component { ...@@ -156,11 +156,11 @@ class MyCourses extends Component {
) )
const status = ( const status = (
item.is_aist && <span className='status'>返现</span> item.is_aist
) ? <span className='status'>返现</span>
const courseExpire = ( : item.course_expire
item.course_expire && item.course_expire!='' && ? <span className='course-expire'>{item.course_expire}</span>
<span className='course-expire'>{item.course_expire}</span> : null
) )
return ( return (
<VList img={item.image_name} <VList img={item.image_name}
...@@ -169,7 +169,6 @@ class MyCourses extends Component { ...@@ -169,7 +169,6 @@ class MyCourses extends Component {
key={index} key={index}
info={Info} info={Info}
status={status} status={status}
courseExpire={courseExpire}
item={item} item={item}
id={item['v_course_id']} id={item['v_course_id']}
/> />
......
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