diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx
index 9f1b05c..0d333ed 100644
--- a/src/pages/index/index.jsx
+++ b/src/pages/index/index.jsx
@@ -74,7 +74,6 @@ import nomadBook from "../../images/nomadBook.jpg";
import qrsalon from "../../images/qrsalon.png";
import meetupsalon from "../../images/meetupsalon.png";
-
import wechatGroup from "../../images/wechatGroup.jpg";
import nomad from "../../images/nomad.mp4";
@@ -104,8 +103,8 @@ const Index = () => {
};
useEffect(() => {
- isWeChatFun()
- }, [])
+ isWeChatFun();
+ }, []);
// 自定义组件模版
const custDom = () => {
return custDom;
@@ -298,11 +297,6 @@ const Index = () => {
{ image: boyb },
].map((item, index) => {
return (
- //
);
})}
@@ -327,8 +321,8 @@ const Index = () => {
// 在手机/微信
isWeChat
? Taro.navigateTo({
- url: "/pages/salon/index",
- })
+ url: "/pages/salon/index",
+ })
: setqrOpen(true);
}}
>{`加入社群💬`}
@@ -374,8 +368,8 @@ const Index = () => {
{/* 右侧固定内容,放前面 */}
-
- 新加入成员
+
+ 新加入成员
{[
{ image: girla },
@@ -392,20 +386,49 @@ const Index = () => {
{ image: girlb },
{ image: cat },
{ image: girl },
- { image: boya }
+ { image: boya },
].map((item, index) => {
return (
- //
-
+
);
})}
+
+
+ 最新活动
+
+ 活动时间: 2026年3月1日
+ 活动地点: 深圳市{" "}
+ 活动人数: 8人{" "}
+ {/* 活动时间: 2026年3月1日 */}
+
+ {[
+ { image: girla },
+ { image: avatar },
+ { image: girlb },
+ { image: cat },
+ { image: girl },
+ { image: boya },
+ { image: touxiang },
+ ].map((item, index) => {
+ return (
+
+ );
+ })}
+
+
+
+
{/* 22 */}
{/* 33 */}
@@ -458,7 +481,6 @@ const Index = () => {
// src={qrcode_planet}
// src={qrsalon}
src={meetupsalon}
-
/>
diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss
index 9e74cbb..8e63600 100644
--- a/src/pages/index/index.scss
+++ b/src/pages/index/index.scss
@@ -227,48 +227,101 @@
}
}
+ // css动画
+ .rightItem:hover {
+ animation: pulse 0.6s ease;
+ }
+
.rightItem {
- // padding: 20px;
height: 280px;
- // height: 240px;
border-radius: 15px;
position: relative;
color: white;
overflow: hidden;
width: 100%;
min-width: 260px; // 保证最小宽度不被挤掉
- // max-width: 340px; // 最大宽度
box-sizing: border-box;
- // background-color: yellow;
border: 1px solid black;
- .newMembers {
+
+ .rightItemcontent {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: black;
- .newMembersUp {
+ // background-color: #ff4d4f;
+ .rightItemtitle {
width: 100%;
- height: 40px;
- // background-color: #f5222d;
+ height: 44px;
+ font-size: 16px;
+ font-weight: 600;
+ letter-spacing: 0.5px;
+
display: flex;
- flex-direction: row;
align-items: center;
justify-content: center;
- border-bottom: 1px solid black;
+
+ background: linear-gradient(90deg, #ff4d4f, #ff7a45);
+ color: #fff;
}
.AvatarView {
padding: 20px;
- margin-top: 10px;
- margin-bottom: 10px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
- // align-items: center;
- // justify-content: space-between;
.Avatar {
width: 40px;
height: 40px;
+ margin-right: 5px;
+ margin-bottom: 20px;
+ border: 2px solid #fff;
+ border-radius: 50%;
+ }
+ }
+ /* ===== 活动信息区 ===== */
+ .meetup {
+ flex: 1;
+ padding: 20px 18px;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ gap: 14px;
+ font-size: 14px;
+ }
+
+ .meetupDate,
+ .meetupGps,
+ .meetupNum {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ // padding: 10px 12px;
+ border-radius: 10px;
+ background: #f5f6f7;
+ color: #333;
+ font-weight: 500;
+ }
+
+ .meetupDate::before {
+ content: "🗓";
+ }
+
+ .meetupGps::before {
+ content: "📍";
+ }
+
+ .meetupNum::before {
+ content: "👥";
+ }
+
+ .meetupAvatarView {
+ // padding: 20px;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ .Avatar {
+ width: 34px;
+ height: 34px;
margin-right: 6px;
margin-bottom: 20px;
border: 2px solid #fff;