diff --git a/components/common-card/vertical-card.vue b/components/common-card/vertical-card.vue index 24e44e1..f5df284 100644 --- a/components/common-card/vertical-card.vue +++ b/components/common-card/vertical-card.vue @@ -67,7 +67,7 @@ } .multi-pic-container { - height: 350rpx; + height: 246rpx; overflow: hidden; } diff --git a/components/goods-card/flow-goods-card.vue b/components/goods-card/flow-goods-card.vue new file mode 100644 index 0000000..fb6cbdc --- /dev/null +++ b/components/goods-card/flow-goods-card.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/pages/index/home.vue b/pages/index/home.vue index 02f3f64..1f2b280 100644 --- a/pages/index/home.vue +++ b/pages/index/home.vue @@ -32,63 +32,78 @@ - - - - - 分类 - - - - - - - {{item.goodsCategoryName}} - - - + + + + + + 分类 + + + + + + + {{item.goodsCategoryName}} + + + + + + + + + + + {{item.goodsCategoryName}} + + + + + + + + + {{item.goodsCategoryName}} + + + + + + + + + + + + + + + - - - - - - - {{item.goodsCategoryName}} - - - - - - - - - {{item.goodsCategoryName}} - - - - - - @@ -304,5 +368,15 @@ display: inline-flex; align-items: center; justify-content: center; + } + + .waterfall-grid { + column-count: 2; + column-gap: 15rpx; + } + + .waterfall-grid-item { + break-inside: avoid; + margin-bottom: 15rpx; }