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;