diff --git a/src/images/qrcodeoffice.jpg b/src/images/qrcodeoffice.jpg
new file mode 100644
index 0000000..3346e24
Binary files /dev/null and b/src/images/qrcodeoffice.jpg differ
diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx
index cda5c40..0ae2b05 100644
--- a/src/pages/index/index.jsx
+++ b/src/pages/index/index.jsx
@@ -46,9 +46,10 @@ import zhengzhou from "../../images/zhengzhou.jpg";
import haikou from "../../images/haikou.jpg";
import hegang from "../../images/hegang.jpg";
+// 视频封面图
import nomadPoster from "../../images/nomadPoster.jpg";
-
-
+// 公众号二维码
+import qrcodeoffice from "../../images/qrcodeoffice.jpg";
import yintian from "../../images/cloud/yintian.png";
import taiyang from "../../images/cloud/taiyang.png";
@@ -62,7 +63,6 @@ import nomadBook from "../../images/nomadBook.jpg";
import wechatGroup from "../../images/wechatGroup.jpg";
import nomad from "../../images/nomad.mp4";
-
import IndexDetail from "./componments/IndexDetail/index";
import { LazyLoadImage } from "react-lazy-load-image-component";
@@ -71,6 +71,7 @@ import "react-lazy-load-image-component/src/effects/blur.css";
// export default class Index extends Component {
const Index = () => {
const [current, setcurrent] = useState(0);
+ const [qrOpen, setqrOpen] = useState(false);
// 自定义组件模版
const custDom = () => {
@@ -213,6 +214,10 @@ const Index = () => {
}
}, [windowWidth]);
+ const closeModal = () => {
+ setqrOpen(false); // 关闭模态框
+ };
+
return (
{/*
@@ -253,7 +258,20 @@ const Index = () => {
🌎追踪你的旅行,记录你去过的地方
💬加入微信群,在旅途中找到你的社区
+ {!!mobile ? (
+
+ {
+ setqrOpen(true);
+ }}
+ >{`踏上游牧之旅->`}
+
+ ) : null}
+
@@ -281,7 +306,7 @@ const Index = () => {
{cityList.map((item, index) => {
if (item.type === "custom") {
// 根据屏幕变化,添加自定义组件
- return {item.dom};
+ // return {item.dom};
} else {
return (
@@ -336,6 +361,27 @@ const Index = () => {
})}
+
+ {/* 标题 */}
+
+
+ 扫码关注公众号,加入💬微信群
+
+
+
+ {/*
+ {" "}
+ */}
+
+
{/* 22 */}
diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss
index 231b4db..6a90c51 100644
--- a/src/pages/index/index.scss
+++ b/src/pages/index/index.scss
@@ -39,6 +39,28 @@
.title {
font-size: 40px;
}
+ .upjonNomad {
+ margin-top: 10px;
+ width: 100%;
+ height: 50px;
+ font-size: 40px !important;
+ // background-color: yellow;
+ // position: relative;
+ .upjonNomadBtn {
+ height: 50px;
+ font-size: 24px ;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ background-color: #ff4d4f;
+ border-color: #ff4d4f;
+ // justify-content: space-between;
+ }
+ .jonNomadBtn:hover {
+ background-color: #ffffff; /* 悬浮时的背景色 */
+ color: #f5222d; /* 悬浮时的字体颜色 */
+ }
+ }
}
.nomadvideo {
display: flex;
@@ -196,16 +218,25 @@
background-color: red;
color: aqua;
}
+
+ .qrcode{
+ font-size: 24px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ }
}
@media (max-width: 2000px) {
.Index .nomadvideo {
display: none !important;
}
- .Index .videoDom {
- display: none;
- }
- .Index .jonNomad {
- display: none;
+}
+
+@media (min-width: 2000px) {
+ .Index .upjonNomad {
+ display: none !important;
}
}
+