diff --git a/packages/shop/index/index.css b/packages/shop/index/index.css index 5c34f82d..6ef2055d 100644 --- a/packages/shop/index/index.css +++ b/packages/shop/index/index.css @@ -132,6 +132,10 @@ page { padding: 35rpx 0; } +.CateItem_active { + background-color: #ffffff; +} + .CateItem .hot { width: 25.82rpx; height: 30rpx; diff --git a/packages/shop/index/index.vue b/packages/shop/index/index.vue index 5f4e6789..de7d35b9 100644 --- a/packages/shop/index/index.vue +++ b/packages/shop/index/index.vue @@ -90,7 +90,7 @@
0) { + this.currentLeftCateId = this.leftCateList[0].id; + this.secondId = this.leftCateList[0].id; + } else { + this.currentLeftCateId = null; + this.secondId = null; + } this.getGoodsList(); }); }, @@ -448,6 +455,7 @@ export default { }, changeLeftCate(e) { + this.currentLeftCateId = e; this.secondId = e; this.getGoodsList(); },