This commit is contained in:
hackrobot
2024-07-18 11:38:07 +08:00
parent 05e0dc3511
commit e3599c3afc

View File

@@ -361,9 +361,6 @@ const Index = () => {
<View
className="bookPrice"
onClick={() => {
if (!!wxid) {
// 修改接口数据
// 先判断用户字段
if (!!userInfo?.ebook) {
// 已预约
Taro.atMessage({
@@ -371,6 +368,7 @@ const Index = () => {
type: "warning",
});
} else {
if (!!wxid) {
// 发起预约
const userUpdateData = {
ebook: 1, // 只更新 openid 字段
@@ -402,10 +400,10 @@ const Index = () => {
// getUserinfo()
},
});
}
} else {
setmeetupQR(true);
}
}
}}
>
<View
@@ -482,10 +480,6 @@ const Index = () => {
: null,
}}
onClick={() => {
if (!!wxid) {
// window.alert(userInfo?.activity_status);
// 修改接口数据
// 先判断用户字段
if (userInfo?.activity_status == "1") {
// 已预约
Taro.atMessage({
@@ -499,6 +493,7 @@ const Index = () => {
type: "warning",
});
} else {
if (!!wxid) {
// 发起预约
const userUpdateData = {
activity_status: "2", // 审核中
@@ -526,10 +521,10 @@ const Index = () => {
window.location.reload();
},
});
}
} else {
setmeetupQR(true);
}
}
}}
>
{userInfo?.activity_status == "2"