diff --git a/src/components/cate/cate.vue b/src/components/cate/cate.vue index 04f5a88..093c0d1 100644 --- a/src/components/cate/cate.vue +++ b/src/components/cate/cate.vue @@ -1,16 +1,22 @@ @@ -224,7 +262,7 @@ export default { .component-tab-view { width: 200rpx; height: 100%; - background-color: #F6F6F6; + background-color: #f6f6f6; } .component-tab-item { height: 100rpx; @@ -233,19 +271,19 @@ export default { display: flex; align-items: center; font-size: 24rpx; - color: #8B8B8B; + color: #8b8b8b; font-weight: 400; line-height: 1; } .component-tab-item-active { position: relative; - color: #4B65ED; - background: #FFFFFF; + color: #4b65ed; + background: #ffffff; } .component-tab-item-active::before { content: ""; position: absolute; - border-left: 4px solid #4B65ED; + border-left: 4px solid #4b65ed; height: 24rpx; left: 0; top: 38rpx; @@ -256,9 +294,12 @@ export default { .right-box { width: 550rpx; } -.page-view { +.page-view.cate { padding-right: 16rpx; } +.page-view.list { + padding-right: 0; +} .class-item { background-color: #ffffff; padding: 36rpx 32rpx 0 32rpx; diff --git a/src/components/cate/template/parent.vue b/src/components/cate/template/cate.vue similarity index 74% rename from src/components/cate/template/parent.vue rename to src/components/cate/template/cate.vue index 46ada90..e626976 100644 --- a/src/components/cate/template/parent.vue +++ b/src/components/cate/template/cate.vue @@ -1,7 +1,7 @@ @@ -91,11 +96,11 @@ export default { onReachBottom() {}, onPullDownRefresh() {}, methods: { - clickParent(id) { + clickCate(id) { uni.navigateTo({ - url: '/pages/service/list?id=' + id + url: "/pages/service/list?id=" + id, }); - } + }, }, }; diff --git a/src/pages/service/list.vue b/src/pages/service/list.vue index e7980d9..bb71522 100644 --- a/src/pages/service/list.vue +++ b/src/pages/service/list.vue @@ -1,7 +1,7 @@