diff --git a/src/images/cat.jpg b/src/images/cat.jpg
new file mode 100644
index 0000000..1d2f8cf
Binary files /dev/null and b/src/images/cat.jpg differ
diff --git a/src/images/girl.jpg b/src/images/girl.jpg
new file mode 100644
index 0000000..82217e2
Binary files /dev/null and b/src/images/girl.jpg differ
diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx
index f97357c..26b383c 100644
--- a/src/pages/index/index.jsx
+++ b/src/pages/index/index.jsx
@@ -25,6 +25,9 @@ import { AtIcon } from "taro-ui";
import { VIEW } from "@tarojs/runtime";
import "animate.css";
import touxiang from "../../images/touxiang.png";
+import cat from "../../images/cat.jpg";
+import girl from "../../images/girl.jpg";
+
import emoji from "../../images/emoji.png";
import phone from "../../images/phone.png";
import robot from "../../images/robot.png";
@@ -405,6 +408,124 @@ const Index = () => {
+ {/* 已付费的用户才展示活动 */}
+
+
+
+ {/* 左边 */}
+
+
+
+
+ {/* 右边 */}
+
+ 自由交流&副业 | 沙龙(6人)
+
+
+ 深圳市龙华区
+
+
+ {/*
+
+ 19:00--21:00
+ */}
+
+ {[touxiang, girl, cat].map((item, index) => {
+ return (
+
+
+
+ );
+ })}
+
+ {
+ Taro.navigateTo({
+ url: "/pages/salon/index",
+ });
+ return false;
+ if (userInfo?.activity_status == "1") {
+ // 已预约
+ Taro.atMessage({
+ message: "已预约成功",
+ type: "warning",
+ });
+ } else if (userInfo?.activity_status == "2") {
+ // 已预约
+ Taro.atMessage({
+ message: "审核中",
+ type: "warning",
+ });
+ } else {
+ if (!!wxid) {
+ // 发起预约
+ const userUpdateData = {
+ activity_status: "2", // 审核中
+ };
+ Taro.request({
+ method: "PUT",
+ // url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
+ url: `/api/user/${wxid}`, //仅为示例,并非真实的接口地址
+ data: userUpdateData,
+ header: {
+ "Content-Type": "application/json",
+ },
+ success: function (res) {
+ // 预约成功
+ // Taro.atMessage({
+ // message: "预约成功",
+ // type: "success",
+ // });
+ if (res.data.code == "200") {
+ setmeetupToast(true);
+ }
+ },
+ fail: function (err) {},
+ complete: function (finy) {
+ window.location.reload();
+ },
+ });
+ } else {
+ setmeetupQR(true);
+ }
+ }
+ }}
+ >
+ {/* {userInfo?.activity_status == "2"
+ ? "审核中"
+ : userInfo?.activity_status == "1"
+ ? "已报名"
+ : // : "立即报名"}
+ "已满"} */}
+ {`查看`}
+
+
+
+
+
+
+
{/* 在线图书 */}
{/* 参考资料https://readmake.com/ */}
@@ -534,111 +655,6 @@ const Index = () => {
*/}
- {/* 已付费的用户才展示活动 */}
-
-
-
- {/* 左边 */}
-
-
-
-
- {/* 右边 */}
-
- 自由交流 | 沙龙 (6-8人)
-
-
- 深圳市龙华区
-
-
-
-
- 19:00--21:00
-
- {
- Taro.navigateTo({
- url: "/pages/salon/index",
- });
- return false;
- if (userInfo?.activity_status == "1") {
- // 已预约
- Taro.atMessage({
- message: "已预约成功",
- type: "warning",
- });
- } else if (userInfo?.activity_status == "2") {
- // 已预约
- Taro.atMessage({
- message: "审核中",
- type: "warning",
- });
- } else {
- if (!!wxid) {
- // 发起预约
- const userUpdateData = {
- activity_status: "2", // 审核中
- };
- Taro.request({
- method: "PUT",
- // url: `/api/user/${urlwxid}`, //仅为示例,并非真实的接口地址
- url: `/api/user/${wxid}`, //仅为示例,并非真实的接口地址
- data: userUpdateData,
- header: {
- "Content-Type": "application/json",
- },
- success: function (res) {
- // 预约成功
- // Taro.atMessage({
- // message: "预约成功",
- // type: "success",
- // });
- if (res.data.code == "200") {
- setmeetupToast(true);
- }
- },
- fail: function (err) {},
- complete: function (finy) {
- window.location.reload();
- },
- });
- } else {
- setmeetupQR(true);
- }
- }
- }}
- >
- {/* {userInfo?.activity_status == "2"
- ? "审核中"
- : userInfo?.activity_status == "1"
- ? "已报名"
- : // : "立即报名"}
- "已满"} */}
- {`查看`}
-
-
-
-
-
-
-
{/* 付费入群 */}
{/* 付费入群 */}
diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss
index fd795a1..18047bd 100644
--- a/src/pages/index/index.scss
+++ b/src/pages/index/index.scss
@@ -52,7 +52,7 @@
// background-color: #1bb14e;
}
- .book-middle{
+ .book-middle {
width: 20px;
height: 100%;
}
@@ -74,20 +74,18 @@
align-items: center;
// justify-content: space-between;
// background-color: red;
- .bookNmae{
+ .bookNmae {
margin-left: 10px;
-
}
}
- .subtitle{
+ .subtitle {
font-size: 20px;
color: red;
}
- .bookText{
+ .bookText {
font-size: 20px;
-
}
- .bookPrice{
+ .bookPrice {
font-size: 30px;
display: flex;
flex-direction: row-reverse;
@@ -106,7 +104,6 @@
right: 10px;
}
}
-
}
}
@@ -168,6 +165,22 @@
align-items: center;
justify-content: space-between;
+ .meetupSrcItem{
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ // background-color: red;
+
+ .meetupSrc {
+ // width: 20px;
+ // height:20px;
+ border-radius: 15%;
+ // background-color: yellow;
+ margin-left: 10px;
+ }
+ }
+
.join {
width: 100px;
display: flex;
@@ -186,13 +199,13 @@
}
}
- .contack{
+ .contack {
margin-top: 60px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
- .wechatNum{
+ .wechatNum {
font-size: 34px;
color: #1bb14e;
}