Commit b0e54a0a by zhanghaozhe

已购课程

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