import React, { Component } from 'react'; import style from './index.less'; import $ from 'jquery'; import { imageUrlPrefix } from '@utils/config.js'; class TipsMsg extends Component { constructor(props) { super(props); } componentWillReceiveProps(next){ //滚动条定位到提示信息模块 if(JSON.stringify(next.tips)!=JSON.stringify(this.props.tips)){ const {patDom} = this.props; const ht = $(patDom.current).height(); $(patDom.current).scrollTop(ht); } } render() { const { tips, showTips, tipsDiscalimer, tipsImg, tmpFlg} = this.props; return