From 34274cbaa8891bce745969a5cb98030d30abc7ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com>
Date: Mon, 12 Aug 2024 11:03:39 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E8=A3=85=E4=BF=AE=E5=AE=AB=E6=A0=BC?=
=?UTF-8?q?=E5=AF=BC=E8=88=AA=E8=83=8C=E6=99=AF=E5=9B=BE=E7=89=87=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/s-block-item/s-block-item.vue | 2 +-
sheep/components/s-menu-grid/s-menu-grid.vue | 164 ++++++++++--------
2 files changed, 94 insertions(+), 72 deletions(-)
diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue
index 156f36f6..5e65b36b 100644
--- a/sheep/components/s-block-item/s-block-item.vue
+++ b/sheep/components/s-block-item/s-block-item.vue
@@ -9,7 +9,7 @@
-
+
diff --git a/sheep/components/s-menu-grid/s-menu-grid.vue b/sheep/components/s-menu-grid/s-menu-grid.vue
index 518d6edf..deae0663 100644
--- a/sheep/components/s-menu-grid/s-menu-grid.vue
+++ b/sheep/components/s-menu-grid/s-menu-grid.vue
@@ -1,82 +1,104 @@
-
-
-
-
-
- {{ item.badge.text }}
-
-
-
+
+
+
+
+
+
+ {{ item.badge.text }}
+
+
+
+
+
+
+ {{ item.title }}
+
+
+ {{ item.subtitle }}
+
+
+
+
+
+
-
-
- {{ item.title }}
-
-
- {{ item.subtitle }}
-
-
-
-
-
+ .grid-item-box {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+
+ .img-box {
+ position: relative;
+
+ .tag-box {
+ position: absolute;
+ z-index: 2;
+ top: 0;
+ right: 0;
+ font-size: 2em;
+ line-height: 1;
+ padding: 0.4em 0.6em 0.3em;
+ transform: scale(0.4) translateX(0.5em) translatey(-0.6em);
+ transform-origin: 100% 0;
+ border-radius: 200rpx;
+ white-space: nowrap;
+ }
+ }
+
+ .title-box {
+ .grid-tip {
+ font-size: 24rpx;
+ white-space: nowrap;
+ text-align: center;
+ }
+ }
+ }
+
\ No newline at end of file