优化服务分类、列表页面

This commit is contained in:
TOP糯米 2023-04-09 00:31:13 +08:00
parent 435b6919b2
commit 965505aef7
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@
class="class-item" class="class-item"
v-for="(item, index) in data" v-for="(item, index) in data"
:key="index" :key="index"
:style="{ height: index == data.length - 1 ? wrapHeight + 'px' : 'auto' }" :style="{ minHeight: index == data.length - 1 ? wrapHeight - utils.rpx2px(36) + 'px' : 'auto' }"
> >
<cate-tmpl v-if="cateType === 'cate'" :parentId="item.id" :data="item" @clickItem="clickItem"></cate-tmpl> <cate-tmpl v-if="cateType === 'cate'" :parentId="item.id" :data="item" @clickItem="clickItem"></cate-tmpl>
<list-tmpl <list-tmpl
@ -265,6 +265,9 @@ export default {
background-color: #ffffff; background-color: #ffffff;
padding: 36rpx 32rpx 0 32rpx; padding: 36rpx 32rpx 0 32rpx;
} }
.class-item:last-child {
padding-bottom: 36rpx;
}
} }
} }
</style> </style>