Commit b0e54a0a by zhanghaozhe

已购课程

parent 32fb53ac
......@@ -18,7 +18,6 @@ class Purchased extends Component {
componentDidMount() {
this.getList()
this.limitFreeCountDown()
}
// 获取订单
......@@ -41,14 +40,6 @@ class Purchased extends Component {
history.push(`/detail?id=${id}`)
// }));
}
limitFreeCountDown = timestamp => {
//todo 联调
const later = new Date(timestamp)
const earlier = Date.now()
return dateCountDown(later, earlier)
}
render() {
const {user} = this.props
const uid = user && user.data && user.data.uid
......@@ -84,8 +75,7 @@ class Purchased extends Component {
</div>
)
const status = (
// item.is_aist && <span className='status'>返现</span>
<span className='limit-free-status'>{'*'}{'*'}{'*'}分后过期</span>
item.is_aist && <span className='status'>返现</span>
)
const courseExpire = (
item.course_expire && item.course_expire != '' &&
......
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