commobilePadBill.js
959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @Date: 2019-05-20T16:45:00+08:00
* @Last modified time: 2019-06-26T18:40:44+08:00
*/
import React from 'react';
import { connect } from 'umi';
import CommobilePadBillComponent from '../../../mobile/common/CommobilePadBill';
import * as commonUtils from '../../../utils/utils';
function commobileBill({
dispatch, app, content, location,
}) {
if (location.state === null) {
return (<div />);
}
// const param = commonUtils.convertStrToObj(location.state.sParam);
let param = {};
if (location.state.sParam) {
param = commonUtils.convertStrToObj(location.state.sParam);
} else {
param = commonUtils.convertStrToObj(location.state);
}
const commonListProps = {
app,
content,
...param,
dispatch,
};
return (
<CommobilePadBillComponent {...commonListProps} style={{ height: '100%' }} />
);
}
export default connect(({ routing, app, content }) =>
({ routing, app, content }))(commobileBill);