From 3f8e77d02cd33b324a046673ce1254aad63d8b6f Mon Sep 17 00:00:00 2001 From: liruiqiang <3151805288@qq.com> Date: Fri, 15 Aug 2025 14:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=A8=E6=9E=B6=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/components/PageSkeleton.vue | 394 ++++++++++++++++++++++++++++ src/pages/index/styles/category.scss | 26 ++ src/pages/index/styles/hot.scss | 52 ++++ 3 files changed, 472 insertions(+) create mode 100644 src/pages/index/components/PageSkeleton.vue create mode 100644 src/pages/index/styles/category.scss create mode 100644 src/pages/index/styles/hot.scss diff --git a/src/pages/index/components/PageSkeleton.vue b/src/pages/index/components/PageSkeleton.vue new file mode 100644 index 0000000..e00831c --- /dev/null +++ b/src/pages/index/components/PageSkeleton.vue @@ -0,0 +1,394 @@ + + + diff --git a/src/pages/index/styles/category.scss b/src/pages/index/styles/category.scss new file mode 100644 index 0000000..cb1dd45 --- /dev/null +++ b/src/pages/index/styles/category.scss @@ -0,0 +1,26 @@ +/* 前台类目 */ +.category { + margin: 20rpx 0 0; + padding: 10rpx 0; + display: flex; + flex-wrap: wrap; + min-height: 328rpx; + + .category-item { + width: 150rpx; + display: flex; + justify-content: center; + flex-direction: column; + align-items: center; + box-sizing: border-box; + + .icon { + width: 100rpx; + height: 100rpx; + } + .text { + font-size: 26rpx; + color: #666; + } + } +} diff --git a/src/pages/index/styles/hot.scss b/src/pages/index/styles/hot.scss new file mode 100644 index 0000000..17482b6 --- /dev/null +++ b/src/pages/index/styles/hot.scss @@ -0,0 +1,52 @@ +/* 热门推荐 */ +.hot { + display: flex; + flex-wrap: wrap; + min-height: 508rpx; + margin: 20rpx 20rpx 0; + border-radius: 10rpx; + background-color: #fff; + + .title { + display: flex; + align-items: center; + padding: 24rpx 24rpx 0; + font-size: 32rpx; + color: #262626; + position: relative; + .title-desc { + font-size: 24rpx; + color: #7f7f7f; + margin-left: 18rpx; + } + } + + .item { + display: flex; + flex-direction: column; + width: 50%; + height: 254rpx; + border-right: 1rpx solid #eee; + border-top: 1rpx solid #eee; + .title { + justify-content: start; + } + &:nth-child(2n) { + border-right: 0 none; + } + &:nth-child(-n + 2) { + border-top: 0 none; + } + .image { + width: 150rpx; + height: 150rpx; + } + } + .cards { + flex: 1; + padding: 15rpx 20rpx; + display: flex; + justify-content: space-between; + align-items: center; + } +}