From 2f8f4a2004b0b176e43597bb0f70dd8bdbe9ef2d Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Wed, 24 Apr 2024 14:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AD=94=E6=96=B9=E6=8F=92=E4=BB=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/css/lib.css | 23 ++++++++++++ components/blog-list/blog-list.vue | 2 +- components/goods-list/goods-list.vue | 2 +- components/magic-list/magic-list.vue | 55 ++++++++++++++-------------- 4 files changed, 52 insertions(+), 30 deletions(-) diff --git a/common/css/lib.css b/common/css/lib.css index 01529397..b7cdc839 100644 --- a/common/css/lib.css +++ b/common/css/lib.css @@ -695,4 +695,27 @@ } .right-xxxxxl { right: 24rpx; +} + +/** + * gap + */ +.gap-xs { + gap: 10rpx; +} +.gap-sm { + gap: 20rpx; +} +.gap-md, +.gap { + gap: 30rpx; +} +.gap-lg { + gap: 40rpx; +} +.gap-xl { + gap: 50rpx; +} +.gap-xxl { + gap: 60rpx; } \ No newline at end of file diff --git a/components/blog-list/blog-list.vue b/components/blog-list/blog-list.vue index 7796c0c3..8bf97761 100644 --- a/components/blog-list/blog-list.vue +++ b/components/blog-list/blog-list.vue @@ -49,7 +49,7 @@ - + {{ item.title }} diff --git a/components/goods-list/goods-list.vue b/components/goods-list/goods-list.vue index c3411a25..ba16fc1e 100644 --- a/components/goods-list/goods-list.vue +++ b/components/goods-list/goods-list.vue @@ -126,7 +126,7 @@ - + {{ item.title }} diff --git a/components/magic-list/magic-list.vue b/components/magic-list/magic-list.vue index 4a2d478c..5ed0b96b 100644 --- a/components/magic-list/magic-list.vue +++ b/components/magic-list/magic-list.vue @@ -4,10 +4,10 @@ - + - + {{ items.title }} @@ -17,18 +17,18 @@ - {{ items.describe }} - + {{ items.describe }} + - - + + - - + + {{ gv.show_price_symbol }} {{ gv.min_price }} - {{ gv.show_price_unit }} + {{ gv.show_price_unit }} @@ -45,20 +45,20 @@ - + - + - {{ items.title }} + {{ items.title }} - + - + {{ $t('common.more') }} @@ -87,7 +87,7 @@ theme_color: app.globalData.get_theme_color(), theme_color_light: app.globalData.get_theme_color(null, true), data_goods_list: [], - show_style1_active_index: 0, + show_style1_active_index: {}, }; }, props: { @@ -150,8 +150,10 @@ // tabs切换 switch_tabs_event(e) { + var temp = this.show_style1_active_index || {}; + temp[e.currentTarget.dataset.index] = e.currentTarget.dataset.indexs; this.setData({ - show_style1_active_index: e.currentTarget.dataset.indexs + show_style1_active_index: temp }); }, @@ -206,31 +208,28 @@ content: ''; height: 80%; width: 2rpx; - border-left: 2rpx dashed #f5f5f5; + border-left: 2rpx solid rgb(232 232 232 / 28%); position: absolute; left: 0; top: 50%; transform: translateY(-50%); } - .plugins-magic-content .hot-list .swiper-2 { - height: 176rpx; + .plugins-magic-content .hot-list.is-text-white > .flex-width-half:nth-child(even)::before { + border-left: 2rpx solid rgb(255 245 245 / 9%); } - .plugins-magic-content .hot-list .swiper-2 .swiper-img { - height: 124rpx; + .plugins-magic-content .hot-list .swiper-list { + height: 216rpx; } - .plugins-magic-content .hot-list .swiper-1 { - height: 187rpx; + .plugins-magic-content .hot-list .swiper-list .swiper-item { + margin-top: 16rpx; } - .plugins-magic-content .hot-list .swiper-1 .swiper-img { - height: 135rpx; + .plugins-magic-content .hot-list .swiper-list .swiper-img { + height: 140rpx !important; } .plugins-magic-content .hot-go { height: 34rpx; line-height: 34rpx; } - .plugins-magic-content .flex-width-half-2 { - width: 25%; - } /** * 切换滚动、切换九宫格、切换滚动