From 0335e02af9b89dac2f328a19d4a569ef9179cdfb Mon Sep 17 00:00:00 2001 From: hackrobot Date: Tue, 19 Mar 2024 23:47:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=8A=A0=E5=85=A5=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E7=BE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.jsx | 40 +++++++++++++++++++++++++++++++------- src/pages/index/index.scss | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 7 deletions(-) diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index e70fe31..3947d40 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -45,8 +45,34 @@ export default function Index() { // }); }, []); + // 自定义组件 const CustomTest = () => { - return 自定义组件; + return ( + + 🥂加入微信群-meetup + {/* + + */} + + {[1, 2, 3, 4,5,6,7].map((item, index) => { + return ( + + ); + })} + + {/* 查看更多 */} + + ); }; const HomeCardItem = () => { @@ -58,12 +84,12 @@ export default function Index() { customCom: "test", }, // 双数插入 - // { - // cityName: "上海", - // imagePath: shanghai, - // isCustom: true, - // customCom: , - // }, + { + cityName: "上海", + imagePath: shanghai, + isCustom: true, + customCom: , + }, { cityName: "上海", imagePath: shanghai, diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index d4c53d0..b85dce6 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -26,6 +26,43 @@ flex-direction: row; flex-wrap: wrap; + .CustomTest { + padding: 10px; + font-size: 25px; + width: 320px; + height: 230px; + display: flex; + flex-direction: column; + align-items: center; + // justify-content: center; + // background-color: red; + border-radius: 20px; + border: solid 1px; + .CustomHeader { + width: 100%; + height: 60px; + // background-color: yellow; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + } + .CustomAvatar { + width: 100%; + // height: 60px; + // background-color: green; + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + .AtAvatar { + width: 70px; + height: 70px; + margin-right: 5px; + } + } + } + .homeCardItem { margin-top: 10px; width: 340px;