调整导航栏激活颜色

This commit is contained in:
许红梅 2022-05-18 17:42:41 +08:00
parent e6afbc6cb3
commit 80894e52bf
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ export default class mytemplate extends React.Component {
let isBottom = event.target.scrollHeight - event.target.clientHeight; let isBottom = event.target.scrollHeight - event.target.clientHeight;
console.log('到底了',Math.round(isBottom)); console.log('到底了',Math.round(isBottom));
console.log('设备高度',Math.round(event.target.scrollTop)); console.log('设备高度',Math.round(event.target.scrollTop));
if (Math.round(isBottom)+1 == Math.round(event.target.scrollTop)) { if (Math.round(isBottom)+1 == Math.round(event.target.scrollTop)||Math.round(isBottom)== Math.round(event.target.scrollTop)) {
let endreq = this.state.endreq; let endreq = this.state.endreq;
if (endreq) { if (endreq) {
let page = this.state.page;//请求 let page = this.state.page;//请求