From e6afbc6cb36c5815701d954d4867b8428721f3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E7=BA=A2=E6=A2=85?= <1924913374@qq.com> Date: Wed, 18 May 2022 17:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A8=A1=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E6=A8=A1=E6=9D=BF=E6=9F=A5=E8=AF=A2=E6=87=92=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=EF=BC=8C=E5=B0=8F=E5=B1=8F=E5=B9=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9C=89=E6=95=B0=E6=8D=AE=E6=9C=AA=E5=8A=A0=E8=BD=BDbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mouseMenu/main.less | 3 +-- src/pages/exchangepage/template/main.js | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/mouseMenu/main.less b/src/components/mouseMenu/main.less index 32a0a525..dd3ab159 100644 --- a/src/components/mouseMenu/main.less +++ b/src/components/mouseMenu/main.less @@ -17,10 +17,9 @@ width: 100%; line-height: 40px; &:hover{ - background: #f00; + background: #f6f7f8; color: #296bef; } - } .mouse_menuactive{ font-weight: bold; diff --git a/src/pages/exchangepage/template/main.js b/src/pages/exchangepage/template/main.js index 5468167d..87951183 100644 --- a/src/pages/exchangepage/template/main.js +++ b/src/pages/exchangepage/template/main.js @@ -109,7 +109,9 @@ export default class mytemplate extends React.Component { this.setState({ toTopFlag: true }); this.setState({ toTopshow: false }); let isBottom = event.target.scrollHeight - event.target.clientHeight; - if (Math.round(isBottom) == Math.round(event.target.scrollTop)) { + console.log('到底了',Math.round(isBottom)); + console.log('设备高度',Math.round(event.target.scrollTop)); + if (Math.round(isBottom)+1 == Math.round(event.target.scrollTop)) { let endreq = this.state.endreq; if (endreq) { let page = this.state.page;//请求 @@ -122,7 +124,7 @@ export default class mytemplate extends React.Component { let preResult = this.state.system_template; getSystemTemplate(data).then(res => { handelResponse(res, (req, msg) => { - if (req.data.length > 0) { + if (0