Browse Source

improve: 分类刷新

From-wh 2 years ago
parent
commit
03e0efb360
1 changed files with 2 additions and 3 deletions
  1. 2 3
      template/uni-app/pages/goods_cate/goods_cate1.vue

+ 2 - 3
template/uni-app/pages/goods_cate/goods_cate1.vue

@@ -124,11 +124,10 @@
 			let routes = getCurrentPages();
 			let routes = getCurrentPages();
 			let curRoute = routes[routes.length - 1].route
 			let curRoute = routes[routes.length - 1].route
 			this.activeRouter = '/' + curRoute
 			this.activeRouter = '/' + curRoute
-			this.getAllCategory();
+			this.getAllCategory(1);
 		},
 		},
 		watch: {
 		watch: {
 			isNew(newVal) {
 			isNew(newVal) {
-
 				this.getAllCategory(1);
 				this.getAllCategory(1);
 			}
 			}
 		},
 		},
@@ -346,7 +345,7 @@
 		overflow: hidden;
 		overflow: hidden;
 		padding: 0 14rpx;
 		padding: 0 14rpx;
 		background-color: #fff;
 		background-color: #fff;
-		position: relative;
+		position: relative;
 		padding-bottom: 200rpx;
 		padding-bottom: 200rpx;
 	}
 	}