import * as React from "react"; import ShopListItem from '../commen/proItem'; import ProWrapper from '../commen/wrapper' import MUtil from "../../../util/utils"; import DistriTimer from "../commen/timer"; const date = new Date().getTime(); const timerType = MUtil.timerType(); class ThreeItems extends React.Component { state: any; constructor(props) { super(props); this.state = { style: { key: 'shop-product-wrapper' + new Date().getTime(), } } } componentDidMount(): void { } onClick(data) { this.props.onClick ? this.props.onClick(data) : '' } goBuy(data) { this.props.goBuy ? this.props.goBuy(data) : '' } modifySource(data: any) { if (data.purBtnStyle) { if (data.purBtnStyle == 3) { // data.purBtnStyle = 1; } } return data; } render() { let source = this.modifySource(this.props); let content = this.props.content; return (
{ content && content.length > 0 ? content.map((data, index) => ( )) : '' }
); } } export default ThreeItems;