upgrade 9.4

This commit is contained in:
2020-08-04 20:00:58 +08:00
parent 1f9299602e
commit 13bdc08c86
6 changed files with 23 additions and 8 deletions

View File

@@ -93,7 +93,8 @@ export default {
},
setSwiperHeight() {
// height: 230px, margin-bottom: 13
this.swiperHeight = Math.ceil(this.goodsList.length / 2) * (230 + 13) + 'px';
const height = Math.ceil(this.goodsList.length / 2) * (230 + 13);
this.swiperHeight = height == 0 ? '230px' : height + 'px';
},
// tabs通知swiper切换
tabsChange(index) {