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