修改样式2020.0804

This commit is contained in:
Niujiawei
2020-08-04 22:34:03 +08:00
parent df29f86630
commit ef4a4010ff
6 changed files with 16 additions and 11 deletions

View File

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

View File

@@ -44,7 +44,7 @@ export default {
<style lang="scss" scoped>
.item{
width: 330rpx;
height: 510rpx;
height: 510rpx;
margin-bottom: 26rpx;
background-color: #f8f8f8;
border-radius: 10rpx 10rpx 0rpx 0rpx;
@@ -62,7 +62,7 @@ export default {
flex-direction: column;
justify-content: space-around;
.title{
line-height: 34rpx;
line-height: 40rpx;
font-size: 30rpx;
color: #333;
margin-bottom: 13rpx;
@@ -71,6 +71,7 @@ export default {
font-size: 26rpx;
color: #666;
margin-bottom: 20rpx;
line-height: 38rpx;
}
.price{
color: #FF3131;