|
@@ -59,7 +59,7 @@ class BigScreen extends React.Component {
|
|
|
patList: this.props.patListArea.slice((current - 1) * pageSize, current * pageSize),
|
|
|
});
|
|
|
// 10s切换
|
|
|
- const timer = setTimeout(fn, 10000);
|
|
|
+ const timer = setTimeout(fn, 6000);
|
|
|
this.setState({
|
|
|
timer,
|
|
|
});
|
|
@@ -72,7 +72,7 @@ class BigScreen extends React.Component {
|
|
|
initScroll = () => {
|
|
|
const parentDom = document.getElementById('patWrap');
|
|
|
const style = window.getComputedStyle(parentDom);
|
|
|
- const parentH = parentDom.offsetHeight - parseInt(style.paddingTop) - parseInt(style.paddingBottom);
|
|
|
+ const parentH = parentDom.offsetHeight - parseInt(style.paddingTop) - parseInt(style.paddingBottom) - 50;
|
|
|
const childH = parentDom.children[0].offsetHeight;
|
|
|
const pageSize = Math.floor(parentH / childH) - 1;
|
|
|
this.setState({
|