修复问题

This commit is contained in:
al 2024-11-26 17:25:20 +08:00
parent 1fa844df12
commit 9f5b088ae3
2 changed files with 16 additions and 11 deletions

View File

@ -8,6 +8,7 @@ import { faAngleLeft } from "@fortawesome/free-solid-svg-icons";
import OwnInput from "@/components/OwnInput";
import UploadImgs from "@/components/UploadImgs";
import { multiUploadImage } from "@/utils/upload";
import { get } from "@/utils/storeInfo";
import requireAPI from "@/utils/requireAPI";
export default function JoinGuild() {
const router = useRouter();
@ -36,16 +37,20 @@ export default function JoinGuild() {
return;
}
setIsSubmitting(true);
const account_shot = await multiUploadImage(values.account_shot, 1);
if (!account_shot.image_ids.length) {
Toast.show({
icon: "fail",
content: "上传失败,请联系客服进行上传",
position: 60,
});
setIsSubmitting(false);
return;
let account_shot = null;
if (values.account_shot.length != 0) {
account_shot = await multiUploadImage(values.account_shot, 1);
if (!account_shot.image_ids.length) {
Toast.show({
icon: "fail",
content: "上传失败,请联系客服进行上传",
position: 60,
});
setIsSubmitting(false);
return;
}
}
//
const body = {
...values,
@ -92,7 +97,7 @@ export default function JoinGuild() {
}}
/>
</div>
<p className="text-base text-center leading-9">申请入驻</p>
<p className="text-base text-center leading-9">公会入驻</p>
<p></p>
</div>
{/* 内容 */}

View File

@ -97,7 +97,7 @@ export default function JoinStreamer() {
}}
/>
</div>
<p className="text-base text-center leading-9">申请入驻</p>
<p className="text-base text-center leading-9">达人入驻</p>
<p
className="text-base text-center leading-9 text-[#FF669E]"
onClick={() => {