|
@@ -1,13 +1,20 @@
|
|
|
import React, { Component } from 'react';
|
|
|
import style from './index.less';
|
|
|
+import $ from 'jquery';
|
|
|
|
|
|
class TipsMsg extends Component {
|
|
|
constructor(props) {
|
|
|
- super(props)
|
|
|
+ super(props);
|
|
|
+ }
|
|
|
+ componentWillReceiveProps(){
|
|
|
+ //滚动条定位到提示信息模块
|
|
|
+ const {patDom} = this.props;
|
|
|
+ const ht = $(patDom.current).height();
|
|
|
+ $(patDom.current).scrollTop(ht);
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
- const { tips, showTips, tipsDiscalimer, tipsImg, tmpFlg} = this.props
|
|
|
+ const { tips, showTips, tipsDiscalimer, tipsImg, tmpFlg} = this.props;
|
|
|
return <div className={style["tips"]}>
|
|
|
<h1>
|
|
|
<img src={tipsImg} />
|