import * as React from "react"; import PropTypes from 'prop-types'; import {url} from "inspector"; import {connect} from "net"; type defaultProps = {} type ContentData = {} & defaultProps interface LPData { content: Array, [propsName: string]: any } interface LPType { content: any, [propsName: string]: any } type IPropTypes = { source?: ContentData, [propsName: string]: any } const CLASS = 'm-official-'; class MPro extends React.Component { state: any; constructor(props: IPropTypes) { super(props); this.state = { showFlag: false, value: props.value || "" } } componentDidMount(): void { } componentWillReceiveProps(nextProps): void { } click(){ if(this.props.onClick){ this.props.onClick() } } render() { let source = this.props; let content = source; return (
{ content&&content.appId&&content.appId.length>0?

店铺关联的公众号

{ content.headimgurl? : }

{content.nickname?content.nickname:"公众号名称"}

{content.signature?content.signature:"公众号描述"}
关注
:"" }
); } } export default MPro;