解决移动端的问题

This commit is contained in:
daihh
2023-01-11 11:38:20 +08:00
parent cef100a2d4
commit 42f4d56746

View File

@@ -477,16 +477,16 @@
this.qa.params.keyword=this.keyword;
if(this.keyword!=''){
if(this.conType==1){
if(this.course.loadStatus=='more'){
if(this.course.loadStatus=='more' && this.course.list.length==0){
this.loadCourseData();
}
}else if(this.conType==2){
if(this.article.loadStatus=='more'){
if(this.article.loadStatus=='more' && this.article.list.length==0){
this.loadArticleData();
}
}else if(this.conType==4){
if(this.qa.loadStatus=='more'){
if(this.qa.loadStatus=='more' && this.qa.list.length==0){
this.loadQaData();
}
}
@@ -522,23 +522,29 @@
resetFilters(){
this.stepIndex=2;
this.filterTags=[];
this.course.filters=[];
this.course.list=[];
this.course.params.pageIndex=1;
this.course.loadStatus='more';
this.article.filters=[];
this.article.list=[];
this.article.params.pageIndex=1;
this.article.loadStatus='more';
this.qa.filters=[];
this.qa.list=[];
this.qa.params.pageIndex=1;
this.qa.loadStatus='more';
if(this.conType==1){
this.course.filters=[];
this.course.list=[];
this.course.params.pageIndex=1;
this.course.loadStatus='more';
this.loadCourseData();
}else if(this.conType==2){
this.article.filters=[];
this.article.list=[];
this.article.params.pageIndex=1;
this.article.loadStatus='more';
this.loadArticleData();
}else if(this.conType==4){
this.qa.filters=[];
this.qa.list=[];
this.qa.params.pageIndex=1;
this.qa.loadStatus='more';
this.loadQaData();
}
if(this.keyword!=''){