{!showBigImg &&

{this.setState({imgSrc: addContentPath('/images/messageimages/temp/man_wev8.png')})}}
onClick={()=>imgSrc && hrmCardInfo4Formal.updateShowBigImg(true)}
/>
}
{showBigImg &&
![]()
{this.setState({imgSrc: addContentPath('/images/messageimages/temp/man_wev8.png')})}}
onClick={()=>imgSrc && hrmCardInfo4Formal.updateShowBigImg(false)}
src={`${window.ecologyContentPath || ''}${imgSrc ? imgSrc : loadingImg}`}
/>
}
{
hasQRCode && !isEmpty(QRCodeOptions) &&
}
)
}
const getPortraitButtons=()=>{
const colArr = [];
isArray(sendButtons) && sendButtons.forEach((item) => {
colArr.push(
{
PublicFunc[item.funname](item.id);
}}
title={item.title}
>
)
})
return colArr;
}
const getAccountinfo=()=>{
let colArr = [];
accountInfo && accountInfo.forEach((a,i)=>{
let showValue;
if(a.isOpenHrm){
showValue = a.showName!=''?
window.pointerXY(event)}>{a.showName} :
;
}else{
showValue = a.value ?
:
;
}
if(a.name=='weixin'){
colArr.push(
{showWeaDialog()}}>{a.label}
);
}else{
colArr.push(
{a.label}:
);
colArr.push(
{showValue}
);
}
i==3 && colArr.push(
);
});
if(!showAccountInfo){
colArr.splice(8,colArr.length);
}
colArr.push(
hrmCardInfo4Formal.updateShowAccountInfo(!showAccountInfo)}>
);
return colArr;
}
const viewCard = (
{getPortrait()}
{getPortraitButtons()}
{getAccountinfo()}
{
modelItems && modelItems.map(c => {
const fontColor = c['font-color'];
return (
{window.open(c.url)}}>
)
})
}
{
infoGroup && infoGroup.map(info => {
return (
)
})
}
{
infoGroup2 && infoGroup2.map(info => {
return (
)
})
}
)
const editCard = (
{this.getSearchs()}
)
return (
{!isEditor ? viewCard : editCard}
)
}
}
export default Main;