修改弹窗
This commit is contained in:
@@ -206,8 +206,10 @@ const PublishBall: React.FC = () => {
|
||||
image_list,
|
||||
players,
|
||||
current_players,
|
||||
descriptionInfo
|
||||
} = formData;
|
||||
const { play_type, price, location_name } = activityInfo;
|
||||
const { description } = descriptionInfo;
|
||||
|
||||
const { max } = players;
|
||||
if (!image_list?.length && activityType === "group") {
|
||||
@@ -241,6 +243,16 @@ const PublishBall: React.FC = () => {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (title.length > 20) {
|
||||
if (!isOnSubmit) {
|
||||
Taro.showToast({
|
||||
title: `标题最多可输入20个字`,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
!price ||
|
||||
(typeof price === "number" && price <= 0) ||
|
||||
@@ -324,6 +336,16 @@ const PublishBall: React.FC = () => {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (description?.length > 200) {
|
||||
if (!isOnSubmit) {
|
||||
Taro.showToast({
|
||||
title: `补充要求最多可输入200个字`,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
const validateOnSubmit = () => {
|
||||
@@ -865,7 +887,7 @@ const PublishBall: React.FC = () => {
|
||||
</Text>
|
||||
</Text>
|
||||
)}
|
||||
{activityType === "group" && (
|
||||
{/* {activityType === "group" && (
|
||||
<View className={styles["submit-tip"]}>
|
||||
<Checkbox
|
||||
className={styles["submit-checkbox"]}
|
||||
@@ -874,7 +896,7 @@ const PublishBall: React.FC = () => {
|
||||
/>
|
||||
已认证 徐汇爱打球官方球场,请严格遵守签约协议
|
||||
</View>
|
||||
)}
|
||||
)} */}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user