Commit e1cc8ecf by zhanghaozhe

我的课程

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