From 6bc38e01b0da33900811d784d44bbad13f0fd4f6 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 25 Mar 2024 02:53:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BE=AE=E4=BF=A1=E7=BE=A4=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index/componments/JoinWechat/index.jsx | 21 ++++++++++++++++--- src/pages/index/index.jsx | 2 +- 2 files changed, 19 insertions(+), 4 deletions(-) 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