Browse Source

暂无分页,隐藏滚到底部加载更多功能

htc 1 month ago
parent
commit
7b93c30d7d
1 changed files with 8 additions and 6 deletions
  1. 8 6
      pages/plan/index.vue

+ 8 - 6
pages/plan/index.vue

@@ -57,6 +57,7 @@
 					{name:'资产管理'}
 				],
 				nIndex:0,
+				key:'全部',
 				solutionList:[],
 				isOver:false
 			}
@@ -67,20 +68,21 @@
 		methods:{
 			changeType(index,key){
 				this.nIndex = index;
-				this.getList(key);
+				this.key = key;
+				this.getList();
 			},
 			scrolltolower() {
-				if (this.isOver) return;
-				this.getList(this.nIndex);
+				// if (this.isOver) return;
+				// this.getList();
 			},
-			getList(key){
-				if(key=='全部'){
+			getList(){
+				if(this.key=='全部'){
 					this.solutionList = [];
 					for (let d in data) {
 						this.solutionList = [...this.solutionList,...data[d]];
 					};
 				}else{
-					this.solutionList = data[key] || [];
+					this.solutionList = data[this.key] || [];
 				}
 			},
 			toDetails(item){