update
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user