ContactsInfoMobile.js
1.56 KB
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
38
39
40
41
42
43
44
45
import React from 'react';
import { Grid, Result } from 'antd-mobile';
import { createForm } from 'rc-form';
import 'antd-mobile/dist/antd-mobile.css';
import styles from '../mobile.less';
import CommobileBase from './CommobileBase';
import CommobileBillEvent from './CommobileBillEvent';
import CommobileView from './CommobileView';
// import * as commonUtils from '../../utils/utils';
const arr = ['https://gw.alipayobjects.com/zos/rmsportal/nywPmnTAvTmLusPxHPSu.png', 'https://gw.alipayobjects.com/zos/rmsportal/pdFARIqkrKEGVVEwotFe.svg', 'https://gw.alipayobjects.com/zos/rmsportal/pdFARIqkrKEGVVEwotFe.svg', 'https://gw.alipayobjects.com/zos/rmsportal/pdFARIqkrKEGVVEwotFe.svg'];
const data1 = Array.from(new Array(4)).map((_val, i) => ({
icon: arr[i],
}));
// eslint-disable-next-line no-useless-concat
const myImg = src => <img src={src} className={`${'spe ' + 'am-icon '}${styles.aa}`} alt="" />;
class ContactsInfoMobile extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
const { personPic } = this.props;
return (
<div>
<Result
className={styles.resultExample}
img={myImg(personPic)}
// title={masterData.sEmployeeName}
// message={<div>{masterData.sPositionName}</div>}
/>
<CommobileView {...this.props} />
<Grid data={data1} columnNum={4} hasLine={false} />
</div>
);
}
}
const ContactsInfoMobileComponent = createForm()(ContactsInfoMobile);
export default CommobileBase(CommobileBillEvent(ContactsInfoMobileComponent));