@ -47,15 +47,18 @@ const progressColumns = [
} ) )
class BasicProfile extends Component {
componentDidMount ( ) {
const { dispatch } = this . props ;
const { dispatch , match } = this . props ;
const { params } = match ;
dispatch ( {
type : 'profile/fetchBasic' ,
payload : params . id || '1000000000' ,
} ) ;
}
render ( ) {
const { profile , loading } = this . props ;
const { basicGoods , basicProgress } = profile ;
const { profile = { } , loading } = this . props ;
const { basicGoods = [ ] , basicProgress = [ ] , userInfo = { } , application = { } } = profile ;
let goodsData = [ ] ;
if ( basicGoods . length ) {
let num = 0 ;
@ -142,21 +145,21 @@ class BasicProfile extends Component {
} ,
] ;
return (
< PageHeaderWrapper title = "基础详情页" >
< PageHeaderWrapper title = "基础详情页" loading = { loading } >
< Card bordered = { false } >
< DescriptionList size = "large" title = "退款申请" style = { { marginBottom : 32 } } >
< Description term = "取货单号" > 1000000000 < / D e s c r i p t i o n >
< Description term = "状态" > 已取货 < / D e s c r i p t i o n >
< Description term = "销售单号" > 1234123421 < / D e s c r i p t i o n >
< Description term = "子订单" > 3214321432 < / D e s c r i p t i o n >
< Description term = "取货单号" > { application . id } < / D e s c r i p t i o n >
< Description term = "状态" > { application . status } < / D e s c r i p t i o n >
< Description term = "销售单号" > { application . orderNo } < / D e s c r i p t i o n >
< Description term = "子订单" > { application . childOrderNo } < / D e s c r i p t i o n >
< / D e s c r i p t i o n L i s t >
< Divider style = { { marginBottom : 32 } } / >
< DescriptionList size = "large" title = "用户信息" style = { { marginBottom : 32 } } >
< Description term = "用户姓名" > 付小小 < / D e s c r i p t i o n >
< Description term = "联系电话" > 18100000000 < / D e s c r i p t i o n >
< Description term = "常用快递" > 菜鸟仓储 < / D e s c r i p t i o n >
< Description term = "取货地址" > 浙江省杭州市西湖区万塘路18号 < / D e s c r i p t i o n >
< Description term = "备注" > 无 < / D e s c r i p t i o n >
< Description term = "用户姓名" > { userInfo . name } < / D e s c r i p t i o n >
< Description term = "联系电话" > { userInfo . tel } < / D e s c r i p t i o n >
< Description term = "常用快递" > { userInfo . delivery } < / D e s c r i p t i o n >
< Description term = "取货地址" > { userInfo . addr } < / D e s c r i p t i o n >
< Description term = "备注" > { userInfo . remark } < / D e s c r i p t i o n >
< / D e s c r i p t i o n L i s t >
< Divider style = { { marginBottom : 32 } } / >
< div className = { styles . title } > 退货商品 < / d i v >