mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +08:00
解决移动端的问题
This commit is contained in:
@@ -477,16 +477,16 @@
|
|||||||
this.qa.params.keyword=this.keyword;
|
this.qa.params.keyword=this.keyword;
|
||||||
if(this.keyword!=''){
|
if(this.keyword!=''){
|
||||||
if(this.conType==1){
|
if(this.conType==1){
|
||||||
if(this.course.loadStatus=='more'){
|
if(this.course.loadStatus=='more' && this.course.list.length==0){
|
||||||
this.loadCourseData();
|
this.loadCourseData();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(this.conType==2){
|
}else if(this.conType==2){
|
||||||
if(this.article.loadStatus=='more'){
|
if(this.article.loadStatus=='more' && this.article.list.length==0){
|
||||||
this.loadArticleData();
|
this.loadArticleData();
|
||||||
}
|
}
|
||||||
}else if(this.conType==4){
|
}else if(this.conType==4){
|
||||||
if(this.qa.loadStatus=='more'){
|
if(this.qa.loadStatus=='more' && this.qa.list.length==0){
|
||||||
this.loadQaData();
|
this.loadQaData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -522,23 +522,29 @@
|
|||||||
resetFilters(){
|
resetFilters(){
|
||||||
this.stepIndex=2;
|
this.stepIndex=2;
|
||||||
this.filterTags=[];
|
this.filterTags=[];
|
||||||
if(this.conType==1){
|
|
||||||
this.course.filters=[];
|
this.course.filters=[];
|
||||||
this.course.list=[];
|
this.course.list=[];
|
||||||
this.course.params.pageIndex=1;
|
this.course.params.pageIndex=1;
|
||||||
this.course.loadStatus='more';
|
this.course.loadStatus='more';
|
||||||
this.loadCourseData();
|
|
||||||
}else if(this.conType==2){
|
|
||||||
this.article.filters=[];
|
this.article.filters=[];
|
||||||
this.article.list=[];
|
this.article.list=[];
|
||||||
this.article.params.pageIndex=1;
|
this.article.params.pageIndex=1;
|
||||||
this.article.loadStatus='more';
|
this.article.loadStatus='more';
|
||||||
this.loadArticleData();
|
|
||||||
}else if(this.conType==4){
|
|
||||||
this.qa.filters=[];
|
this.qa.filters=[];
|
||||||
this.qa.list=[];
|
this.qa.list=[];
|
||||||
this.qa.params.pageIndex=1;
|
this.qa.params.pageIndex=1;
|
||||||
this.qa.loadStatus='more';
|
this.qa.loadStatus='more';
|
||||||
|
|
||||||
|
if(this.conType==1){
|
||||||
|
this.loadCourseData();
|
||||||
|
}else if(this.conType==2){
|
||||||
|
|
||||||
|
this.loadArticleData();
|
||||||
|
}else if(this.conType==4){
|
||||||
|
|
||||||
this.loadQaData();
|
this.loadQaData();
|
||||||
}
|
}
|
||||||
if(this.keyword!=''){
|
if(this.keyword!=''){
|
||||||
|
|||||||
Reference in New Issue
Block a user