diff --git a/src/pages/category/category.vue b/src/pages/category/category.vue
index 0b5026f..13352ba 100644
--- a/src/pages/category/category.vue
+++ b/src/pages/category/category.vue
@@ -12,7 +12,7 @@
{{item}}
-
+
{{item.cat_name}}
@@ -24,7 +24,7 @@
-
+
@@ -41,6 +41,8 @@ export default {
menuCurrent: 0,
// 右列表
goods: [],
+ // 滚动到顶部
+ scrollTop: 0
}
},
onLoad(){
@@ -60,10 +62,14 @@ export default {
this.goods = message[this.menuCurrent].children
// console.log(this.goods);
},
+ // 点击左菜单
onMenuTap(menuCurrent) {
this.menuCurrent = menuCurrent
this.goods = categoryData[menuCurrent].children
+ // 一直为0没变化, 小程序不会发现
+ this.scrollTop = Math.random() / 1000;
}
+
}
}