import React, { Component } from "react"; import style from "./index.less"; import close from '../../common/images/icon_close.png' import { storageLocal } from "../../utils/tools" import DiscontentSon from "./DiscontentSon" import CopyModalSon from "./CopyModalSon" class CopyRight extends Component { constructor(props) { super(props); this.showCopyModal = this.showCopyModal.bind(this); this.closeCopyModal = this.closeCopyModal.bind(this); this.showDisclatmerModal = this.showDisclatmerModal.bind(this); this.closeDisclatmerModal = this.closeDisclatmerModal.bind(this); this.disclatmerContent = this.disclatmerContent.bind(this); this.getNewVersion= this.getNewVersion.bind(this); } componentWillMount() { this.props.getDisMessage() } componentDidMount() { this.props.getMessage() } showCopyModal() { this.props.showCopyModal(); if(this.props.copyRight.hasNewVersion) { this.props.closeVersionTip() } } closeCopyModal() { this.props.closeCopyModal(); } showDisclatmerModal(){ this.props.showDisclatmerModal() } closeDisclatmerModal(){ this.props.closeDisclatmerModal() } disclatmerContent() { const { disContent } = this.props.copyRight; // const disclatmer = disContent.data.data[2].description if(disContent.data) { return (