diff --git a/src/pages/index/componments/KeywordJoin/index.config.js b/src/pages/index/componments/KeywordJoin/index.config.js index 7a1f49b..97961d0 100644 --- a/src/pages/index/componments/KeywordJoin/index.config.js +++ b/src/pages/index/componments/KeywordJoin/index.config.js @@ -1,3 +1,3 @@ export default definePageConfig({ - navigationBarTitleText: '加入微信群' + navigationBarTitleText: '入群公告' }) diff --git a/src/pages/index/componments/KeywordJoin/index.jsx b/src/pages/index/componments/KeywordJoin/index.jsx index a54f2bc..8ce34f6 100644 --- a/src/pages/index/componments/KeywordJoin/index.jsx +++ b/src/pages/index/componments/KeywordJoin/index.jsx @@ -26,10 +26,63 @@ const KeywordJoin = () => { const [current, setcurrent] = useState(0); const [value, setvalue] = useState(null); + const [userInfo, setuserInfo] = useState({ + wxid: null, + openId: null, + }); + + + + // 获取用户标识符 + useEffect(() => { + // 获取路由参数 + const params = Taro.getCurrentInstance().router.params; + console.log("params", params); + // const [wxid, openId] = params; + + if (params.wxid) { + setuserInfo({ + wxid: params?.wxid, //个人号wxid + // openId: params?.openId, //小程序openid + }); + // 本地存储 + + try { + Taro.setStorageSync("wxid", params?.wxid ?? ""); + } catch (e) {} + } + }, []); + + + + useEffect(() => { + // 更新分享-minipro + Taro.updateShareMenu({ + withShareTicket: true, + success() {}, + }); + + // 显示分享按钮-minipro + Taro.showShareMenu({ + withShareTicket: true, + // showShareItems:true, + }); + + // 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 + // Taro.downloadFile({ + // url: "https://res.wx.qq.com/wxdoc/dist/assets/img/demo.ef5c5bef.jpg", + // success: (res) => { + // Taro.showShareImageMenu({ + // path: res.tempFilePath, + // }); + // }, + // }); + }, []); + return ( {/* 步骤栏 */} - { console.log("target", target); setcurrent(target); }} - /> + /> */} + + + {/* H1文章标题 */} + 欢迎加入微信群 + {/* + 2024-03-24   异度星球 + */} + + {/* 内容区域 */} + + + + {/* 二级标题 */} + 这是二级标题 + {/* 三级标题 */} + 这是三级标题 + {/* 文本段落 */} + + 这是文本段落。这是文本段落。这是文本段落。这是文本段落。这是文本段落。这是文本段落。这是文本段落。这是文本落。这是文本段落。1234567890123456789012345678901234567890 + ABCDEFGHIJKLMNOPQRSTUVWXYZ + + 这是文本段落。这是文本段落。 + + + + + + 点击加入 + ); }; diff --git a/src/pages/index/componments/KeywordJoin/index.scss b/src/pages/index/componments/KeywordJoin/index.scss index e69de29..0ba27af 100644 --- a/src/pages/index/componments/KeywordJoin/index.scss +++ b/src/pages/index/componments/KeywordJoin/index.scss @@ -0,0 +1,13 @@ +.KeywordJoin{ + .tabbbarDiv { + width: 100%; + height: 100px; + // background-color: red; + } + + .jsonWechatBtn{ + position: fixed; + bottom: 0px; + width: 100%; + } +}