diff --git a/src/pages/index/componments/JoinWechat/index.jsx b/src/pages/index/componments/JoinWechat/index.jsx index b94f72c..93b7a60 100644 --- a/src/pages/index/componments/JoinWechat/index.jsx +++ b/src/pages/index/componments/JoinWechat/index.jsx @@ -10,7 +10,7 @@ import { AtAccordion, AtList, AtListItem, - AtMessage + AtMessage, } from "taro-ui"; import "./index.scss"; import beijing from "@/images/city/beijing.jpg"; @@ -32,12 +32,27 @@ import { useEffect, useState } from "react"; const JoinWechat = () => { const [open, setopen] = useState(false); const [isOpened, setisOpened] = useState(false); - + // 用户基本信息 + const [localuserInfo, setlocaluserInfo] = useState( + Taro.getStorageSync("userInfo") + ); return ( { - setisOpened(true); + // 判断群组内是否包含wxid + // pass + + // 判断目前是否辨识wxid + if (localuserInfo?.wxid) { + // 跳转答题页面=入群 + Taro.navigateTo({ + url: "/pages/index/componments/KeywordJoin/index", + }); + } else { + // 显示二维码-个人名片 + setisOpened(true); + } }} > 🥂加入微信群-meetup diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index 565b6b2..2bc1514 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -71,7 +71,7 @@ export default function Index() { // const [wxid, openId] = params; // debug - // params.wxid = "wxid_4413224132412"; + params.wxid = "wxid_4413224132412"; if (params?.wxid) { setuserInfo({ wxid: params?.wxid, //个人号wxid