update
This commit is contained in:
@@ -361,16 +361,14 @@ const Index = () => {
|
||||
<View
|
||||
className="bookPrice"
|
||||
onClick={() => {
|
||||
if (!!wxid) {
|
||||
// 修改接口数据
|
||||
// 先判断用户字段
|
||||
if (!!userInfo?.ebook) {
|
||||
// 已预约
|
||||
Taro.atMessage({
|
||||
message: "已预约成功",
|
||||
type: "warning",
|
||||
});
|
||||
} else {
|
||||
if (!!userInfo?.ebook) {
|
||||
// 已预约
|
||||
Taro.atMessage({
|
||||
message: "已预约成功",
|
||||
type: "warning",
|
||||
});
|
||||
} else {
|
||||
if (!!wxid) {
|
||||
// 发起预约
|
||||
const userUpdateData = {
|
||||
ebook: 1, // 只更新 openid 字段
|
||||
@@ -402,9 +400,9 @@ const Index = () => {
|
||||
// getUserinfo()
|
||||
},
|
||||
});
|
||||
} else {
|
||||
setmeetupQR(true);
|
||||
}
|
||||
} else {
|
||||
setmeetupQR(true);
|
||||
}
|
||||
}}
|
||||
>
|
||||
@@ -482,23 +480,20 @@ const Index = () => {
|
||||
: null,
|
||||
}}
|
||||
onClick={() => {
|
||||
if (!!wxid) {
|
||||
// window.alert(userInfo?.activity_status);
|
||||
// 修改接口数据
|
||||
// 先判断用户字段
|
||||
if (userInfo?.activity_status == "1") {
|
||||
// 已预约
|
||||
Taro.atMessage({
|
||||
message: "已预约成功",
|
||||
type: "warning",
|
||||
});
|
||||
} else if (userInfo?.activity_status == "2") {
|
||||
// 已预约
|
||||
Taro.atMessage({
|
||||
message: "审核中",
|
||||
type: "warning",
|
||||
});
|
||||
} else {
|
||||
if (userInfo?.activity_status == "1") {
|
||||
// 已预约
|
||||
Taro.atMessage({
|
||||
message: "已预约成功",
|
||||
type: "warning",
|
||||
});
|
||||
} else if (userInfo?.activity_status == "2") {
|
||||
// 已预约
|
||||
Taro.atMessage({
|
||||
message: "审核中",
|
||||
type: "warning",
|
||||
});
|
||||
} else {
|
||||
if (!!wxid) {
|
||||
// 发起预约
|
||||
const userUpdateData = {
|
||||
activity_status: "2", // 审核中
|
||||
@@ -526,9 +521,9 @@ const Index = () => {
|
||||
window.location.reload();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
setmeetupQR(true);
|
||||
}
|
||||
} else {
|
||||
setmeetupQR(true);
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user