fix: 详情页白屏bug
This commit is contained in:
@@ -20,6 +20,8 @@ import { AtIcon } from "taro-ui";
|
||||
// export default class Index extends Component {
|
||||
const Index = () => {
|
||||
const [current, setcurrent] = useState(0);
|
||||
const [openId, setopenId] = useState(null);
|
||||
|
||||
const [isOpened, setisOpened] = useState(false);
|
||||
const [joinMeetup, setjoinMeetup] = useState(false);
|
||||
|
||||
@@ -44,6 +46,7 @@ const Index = () => {
|
||||
|
||||
// window.alert(hashopenid)
|
||||
let newOpenid = window.localStorage.getItem("openid");
|
||||
|
||||
// window.alert(newOpenid)
|
||||
|
||||
if (
|
||||
@@ -55,6 +58,7 @@ const Index = () => {
|
||||
// window.alert(newOpenid);
|
||||
|
||||
window.localStorage.setItem("openid", hashopenid);
|
||||
setopenId(hashopenid)
|
||||
} else {
|
||||
// window.alert('不存在')
|
||||
let nowUrl = window.location.href;
|
||||
@@ -210,9 +214,9 @@ const Index = () => {
|
||||
|
||||
<AtCard
|
||||
onClick={() => {
|
||||
Taro.navigateTo({
|
||||
url: "/pages/meetup/Detail/index?id=20231206",
|
||||
});
|
||||
// Taro.navigateTo({
|
||||
// url: "/pages/meetup/Detail/index?id=20231206",
|
||||
// });
|
||||
}}
|
||||
note=""
|
||||
extra=""
|
||||
@@ -232,7 +236,7 @@ const Index = () => {
|
||||
</View>
|
||||
<View className="right">
|
||||
<View className="up">
|
||||
<span style={{ color: "green" }}>[已报名]</span> 4/10
|
||||
<span style={{ color: "green" }}>[报名中]</span> 4/10
|
||||
</View>
|
||||
<View className="middle">2023/12/06 星期三</View>
|
||||
<View className="down">
|
||||
@@ -242,6 +246,8 @@ const Index = () => {
|
||||
className="submitBtn"
|
||||
disabled={joinMeetup}
|
||||
onClick={() => {
|
||||
// window.alert(window.location.href)
|
||||
// return false
|
||||
Taro.navigateTo({
|
||||
url: "/pages/meetup/Detail/index?id=20231206",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user