diff --git a/src/components/auth/agreement.vue b/src/components/auth/agreement.vue new file mode 100644 index 0000000..df82c8a --- /dev/null +++ b/src/components/auth/agreement.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/src/components/banner/banner.vue b/src/components/banner/banner.vue index 8f06f41..19ce165 100644 --- a/src/components/banner/banner.vue +++ b/src/components/banner/banner.vue @@ -11,7 +11,11 @@ > - + @@ -20,7 +24,7 @@ class="swiper-dot-item" v-for="(value, key) in list.length" :key="key" - :class="{'active': key === currentIndex}" + :class="{ active: key === currentIndex }" > diff --git a/src/components/cate/cate.vue b/src/components/cate/cate.vue index 0d6bf33..b0ffbb8 100644 --- a/src/components/cate/cate.vue +++ b/src/components/cate/cate.vue @@ -39,16 +39,14 @@ :style="{ height: index == data.length - 1 - ? cateType == 'cate' - ? 'calc(100vh - 70rpx)' - : '100vh' + ? wrapHeight + $utils.rpx2px(110) + 'px' : 'auto', }" > { + if (item.id == id) { + idx = index; + } + }); + this.swichMenu(idx); }, clickItem(id) { this.$emit("clickItem", id); diff --git a/src/components/cate/template/cate.vue b/src/components/cate/template/cate.vue index e626976..de0f95b 100644 --- a/src/components/cate/template/cate.vue +++ b/src/components/cate/template/cate.vue @@ -8,7 +8,7 @@ class="thumb-box" v-for="(child, index1) in data.child" :key="index1" - @click="clickItem(child.id, child.name)" + @click="clickItem(child.id)" > .item-title { font-size: 26rpx; + line-height: 26rpx; color: #010101; font-weight: bold; } diff --git a/src/components/cate/template/list.vue b/src/components/cate/template/list.vue index 02fe7b0..60f5ee5 100644 --- a/src/components/cate/template/list.vue +++ b/src/components/cate/template/list.vue @@ -9,27 +9,16 @@ v-for="(child, index1) in data.child" :key="index1" > - - - {{ child.name }} - - {{ "已服务113256次" }} - - ¥158元起 - - + + + + \ No newline at end of file diff --git a/src/components/widgets/checkbox.vue b/src/components/widgets/checkbox.vue new file mode 100644 index 0000000..b0d678f --- /dev/null +++ b/src/components/widgets/checkbox.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/src/components/mini/add.vue b/src/components/widgets/count-modify.vue similarity index 76% rename from src/components/mini/add.vue rename to src/components/widgets/count-modify.vue index 8ba7e6a..f93e52e 100644 --- a/src/components/mini/add.vue +++ b/src/components/widgets/count-modify.vue @@ -1,5 +1,5 @@