From 07eb2c53493b7d4e46c41fb3472bb4cbc882801b Mon Sep 17 00:00:00 2001 From: xindan <2499232802@qq.com> Date: Thu, 14 Oct 2021 18:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E5=88=97=E8=A1=A8=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/brand/index/index.css | 29 ++ pages/plugins/brand/index/index.vue | 426 ++++++++++++---------------- 2 files changed, 209 insertions(+), 246 deletions(-) create mode 100644 pages/plugins/brand/index/index.css diff --git a/pages/plugins/brand/index/index.css b/pages/plugins/brand/index/index.css new file mode 100644 index 00000000..e8aea424 --- /dev/null +++ b/pages/plugins/brand/index/index.css @@ -0,0 +1,29 @@ +/** +* 分类导航 +*/ +.nav-list { + height: 80rpx; +} +.nav-list .item { + padding: 20rpx; + display: inline-block; + position: relative; +} + +/** +* 数据列表 +*/ +.data-list .item { + width: calc(50% - 10rpx); + margin-bottom: 20rpx; +} +.data-list .item:nth-child(2n) { + float: right; +} +.data-list .item:nth-child(2n+1) { + float: left; +} +.data-list .item image { + width: 100%; + height: 160rpx !important; +} \ No newline at end of file diff --git a/pages/plugins/brand/index/index.vue b/pages/plugins/brand/index/index.vue index fe10f2d7..0c87217b 100644 --- a/pages/plugins/brand/index/index.vue +++ b/pages/plugins/brand/index/index.vue @@ -1,249 +1,183 @@ -