This commit is contained in:
hackrobot
2024-07-19 17:06:15 +08:00
parent 0e0fed4ecc
commit dd1970458c
2 changed files with 27 additions and 4 deletions

View File

@@ -248,11 +248,10 @@ const Index = () => {
useEffect(() => {
let inwechat = isWeChatFun();
if (inwechat) {
// 获取openId
getOpenid();
// 获取openId
getOpenid();
} else {
// window.alert('不在微信')
}
}, []);
@@ -554,6 +553,17 @@ const Index = () => {
</AtCard>
</View>
{/* 联系我 */}
{!wxid ? (
<View className="contack">
<View className="wechatNum">微信号: hackrobot</View>
<Image
style="width: 185px;height: 200px;background: #fff;"
src={qrcode}
/>
</View>
) : null}
{/* <View className="payBtn">
<AtButton type="primary">立即购买 -- 29.8元</AtButton>
</View> */}

View File

@@ -44,7 +44,8 @@
flex-direction: row;
align-items: center;
// justify-content: center;
background-color: #f0f0f0;
// background-color: #f0f0f0;
background-color: #f0f5ff;
.bookImg {
width: 40%;
height: 100%;
@@ -182,6 +183,18 @@
}
}
.contack{
margin-top: 60px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.wechatNum{
font-size: 34px;
color: #1bb14e;
}
}
.emojiModel {
.modelText {
font-size: 22px;