diff --git a/components/shop/list/index.vue b/components/shop/list/index.vue index 3f8907e..f53731a 100644 --- a/components/shop/list/index.vue +++ b/components/shop/list/index.vue @@ -93,8 +93,8 @@ export default { }, setSwiperHeight() { // height: 230px, margin-bottom: 13 - const height = Math.ceil(this.goodsList.length / 2) * (230 + 13); - this.swiperHeight = height == 0 ? '230px' : height + 'px'; + const height = Math.ceil(this.goodsList.length / 2) * (510 + 26); + this.swiperHeight = height == 0 ? '230rpx' : height + 'rpx'; }, // tabs通知swiper切换 tabsChange(index) { diff --git a/components/shop/list/item.vue b/components/shop/list/item.vue index 9767e42..329a98e 100644 --- a/components/shop/list/item.vue +++ b/components/shop/list/item.vue @@ -44,6 +44,7 @@ export default {