调整缩放比例造成的影响

dev_aliyun_beta
杨树明 5 years ago
parent 16fec9e90e
commit 686e6f8a5e

@ -429,7 +429,7 @@ class CommonWorkPost extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
// console.log("到达底部");
let{ search,page,limit }=this.state;

@ -126,7 +126,7 @@ class PathModal extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
if(shixunmodallist.subject_list.length===0){
return;

@ -105,7 +105,7 @@ class Selectresource extends Component{
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
//滑动到底判断
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
let newpage=page+1;
let url
if(searchtype==="getallfiles"){

@ -105,7 +105,7 @@ class ShixunModal extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1) {
if(e.currentTarget.scrollHeight-allclientHeight>=0) {
if (shixunmodallist.shixun_list.length === 0) {
return;

@ -44,7 +44,7 @@ class ShixunModal extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop)
let allclientHeight=e.currentTarget.clientHeight+newscrollTop
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
let {Searchvalue,type,page}=this.state;
let newpage=page+1

@ -56,7 +56,7 @@ class Ecerciseallbackagain extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
let {page,limit,datalist}=this.state;
let newpage=page+1;
let newdata=datalist;

@ -282,7 +282,7 @@ class GraduationTasksSubmitedit extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
// console.log("到达底部");
let{ search,page,limit,workslist}=this.state;

@ -273,7 +273,7 @@ class GraduationTasksSubmitnew extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
// console.log("到达底部");
let{ search,page,limit }=this.state;

@ -89,7 +89,7 @@ class ShixunWorkModal extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
let {page,limit,group_list}=this.state;
let newpage=page+1;
let newgroup_list=group_list;

@ -87,7 +87,7 @@ class MessagChat extends Component{
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
//滑动到底判断
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
// console.log("滑动到底判断");
let {page}=this.state;
let newpage=page+1

@ -302,7 +302,7 @@ class DetailCardsEditAndAdd extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
if(ChooseShixunList.shixun_list.length===0){
return

@ -342,7 +342,7 @@ class DetailCardsEditAndEdit extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
if(ChooseShixunList.shixun_list.length===0){
return

@ -130,7 +130,7 @@ class addCollaborators extends Component{
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
// console.log("到达底部");
let id=this.props.match.params.pathId;

@ -375,7 +375,7 @@ class Collaborators extends Component {
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1){
if(e.currentTarget.scrollHeight-allclientHeight>=0){
let {page,collaboratorList,user_name,school_name,Searchadmin} = this.state;
let newpage=page+1;
let newSearchadmin=Searchadmin

Loading…
Cancel
Save