Commit 9475185b by zhanghaozhe

周年庆

parent 5e53c3b1
......@@ -1084,10 +1084,16 @@ class Anniversary2020 extends Component {
Button = <button className={'unavailable'}>活动已结束</button>
}
}
return <li className={'course'} key={index}>
return <li className={'course'} key={index} onClick={(e) => {
const nodeName = e.target.nodeName.toLowerCase()
if (nodeName !== 'a') {
history.push(`/detail?id=${item.course_id}`)
}
}
}>
<div className="cover">
{
item.save && <span>立省{item.save}</span>
!!item.save && <span>立省{item.save}</span>
}
<img src={item.image_name}
alt=""/>
......@@ -1099,8 +1105,8 @@ class Anniversary2020 extends Component {
item.type === 1
? <div className="purchased">已购买</div>
: <div className="prices">
<span>¥{item.price0}</span>
<span>¥{item.price1}</span>
<span>¥{item.price0}</span>
</div>
}
<div className="btn">
......
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