|
|
@@ -2,6 +2,7 @@ import React, { Component } from 'react'
|
|
|
import OrderCard from './OrderCard'
|
|
|
import { ActivityIndicator } from 'antd-mobile';
|
|
|
import TabBarTop from './OrderTabTop'
|
|
|
+import NavBars from '../Common/NavBar'
|
|
|
|
|
|
import './OrderCenterPage.css'
|
|
|
|
|
|
@@ -106,17 +107,18 @@ class OrderCenterPage extends Component {
|
|
|
render() {
|
|
|
const orderList=this.state.orderList||[]
|
|
|
return (
|
|
|
- <div>
|
|
|
- <ActivityIndicator toast text="loading" animating={this.state.loading}/>
|
|
|
- <TabBarTop tabChange={this.tabChange} tabs={this.state.tabs}/>
|
|
|
- <div className="orderList">
|
|
|
- {
|
|
|
- orderList.map((item,index)=>{
|
|
|
- console.log(index,item)
|
|
|
- return(<OrderCard order={item} key={item.id} toPay={this.toPay} toDeleteOrder={this.toDeleteOrder}/>)
|
|
|
- })
|
|
|
- }
|
|
|
- </div>
|
|
|
+ <div className="orderCnerWrap">
|
|
|
+ <ActivityIndicator toast text="loading" animating={this.state.loading}/>
|
|
|
+ <NavBars navBarText="我的订单" changePage={this.props.changePage} page="user"/>
|
|
|
+ <div style={{marginTop:"45px"}}><TabBarTop tabChange={this.tabChange} tabs={this.state.tabs}/></div>
|
|
|
+ <div className="orderList">
|
|
|
+ {
|
|
|
+ orderList.map((item,index)=>{
|
|
|
+ console.log(index,item)
|
|
|
+ return(<OrderCard order={item} key={item.id} toPay={this.toPay} toDeleteOrder={this.toDeleteOrder}/>)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </div>
|
|
|
</div>
|
|
|
)
|
|
|
}
|