From 9e8e906ece911df87ae42f888fc17d4459cde395 Mon Sep 17 00:00:00 2001 From: donqi Date: Fri, 26 Aug 2022 16:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=83=AD=E9=97=A8=E7=B1=BB?= =?UTF-8?q?=E7=9B=AE=E5=9B=BE=E7=89=87=E5=A4=A7=E5=B0=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?=EF=BC=9B=E5=A2=9E=E5=8A=A0=E5=B1=95=E7=A4=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E5=9F=8E=E5=B8=82=E7=9A=84=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/common-card/vertical-card.vue | 2 +- components/goods-card/flow-goods-card.vue | 67 ++++++++ pages/index/home.vue | 180 +++++++++++++++------- 3 files changed, 195 insertions(+), 54 deletions(-) create mode 100644 components/goods-card/flow-goods-card.vue 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; }