Commit 8cc52eb5 by xuzhenghua

我的订单

parent 2a6cb5f4
...@@ -83,13 +83,12 @@ class MyOrders extends Component { ...@@ -83,13 +83,12 @@ class MyOrders extends Component {
render() { render() {
return ( return (
<div className='myorders-box'> <div className='myorders-box'>
<HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar> <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>
<Loading isLoading={this.state.isLoading}> <Loading isLoading={this.state.isLoading}>
{ {
this.state.data && this.state.data.length > 0 ? this.state.data && JSON.stringify(this.state.data) !== '[{}]'?
<InfiniteScroll <InfiniteScroll
pageStart={0} pageStart={0}
hasMore={true} hasMore={true}
...@@ -121,8 +120,8 @@ class MyOrders extends Component { ...@@ -121,8 +120,8 @@ class MyOrders extends Component {
) )
return ( return (
<div className="order-wrap" key={index}> <div className="order-wrap" key={index}>
<OrderList <OrderList
info={Info} info={Info}
src={item.image_name} src={item.image_name}
isSign={item.is_aist} isSign={item.is_aist}
id={item.course_id} id={item.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