修复问题

This commit is contained in:
al 2024-12-24 18:39:36 +08:00
parent 840ef29428
commit dd2de79a3f
5 changed files with 24 additions and 31 deletions

View File

@ -910,27 +910,25 @@ export default function CompleteStreamerInformation() {
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
<Form.Item {showWechatInput === 0 && (
// required <Form.Item
style={{ label={<span className="text-sm text-white">微信帐号</span>}
display: showWechatInput === 0 ? "block" : "none", layout="vertical"
}} name="wechat"
label={<span className="text-sm text-white">微信帐号</span>} rules={[
layout="vertical" {
name="wechat" required: true,
rules={[ message: messageEle("请填写正确的微信"),
{ pattern: /^[a-zA-Z0-9_-]+$/,
required: true, },
message: messageEle("请填写正确的微信"), ]}
pattern: /^[a-zA-Z0-9_-]+$/, >
}, <OwnInput
]} placeholder="对方付费购买后展示"
> inputClassName="mt-2 px-4 h-12 py-3 rounded-[0.8rem] bg-[#FFFFFF1a] flex justify-between items-center"
<OwnInput />
placeholder="对方付费购买后展示" </Form.Item>
inputClassName="mt-2 px-4 h-12 py-3 rounded-[0.8rem] bg-[#FFFFFF1a] flex justify-between items-center" )}
/>
</Form.Item>
<Form.Item <Form.Item
required required
name="fans" name="fans"
@ -956,7 +954,6 @@ export default function CompleteStreamerInformation() {
<Form.Item <Form.Item
layout="vertical" layout="vertical"
name="wechatPrice" name="wechatPrice"
required
rules={[ rules={[
{ {
required: true, required: true,
@ -964,12 +961,7 @@ export default function CompleteStreamerInformation() {
pattern: /^[1-9]\d*$/, pattern: /^[1-9]\d*$/,
}, },
]} ]}
label={ label={<span className="text-sm text-white">加微信价格</span>}
<div className="flex">
<span className="text-sm text-white">加微信价格</span>
<span className="text-[#F53030]">*</span>
</div>
}
> >
<div className="mt-2 px-4 py-3 h-12 rounded-[0.8rem] bg-[#FFFFFF1a] flex justify-between items-center"> <div className="mt-2 px-4 py-3 h-12 rounded-[0.8rem] bg-[#FFFFFF1a] flex justify-between items-center">
<div className="flex items-center"> <div className="flex items-center">

View File

@ -38,7 +38,7 @@ function BottomNav({ changeNoticeCount, changeInviter, noticeCount }) {
if (_data.ret === -1) { if (_data.ret === -1) {
return; return;
} }
if (!noticeCount) changeNoticeCount(_data.data.total); changeNoticeCount(_data.data.total);
} catch (error) {} } catch (error) {}
}; };
getDtata(); getDtata();

View File

@ -259,20 +259,21 @@ export default function UploadImgs({
> >
<OwnImage <OwnImage
src={item.url} src={item.url}
outClassName="w-full h-full"
className="w-full h-full" className="w-full h-full"
rounded="rounded" rounded="rounded"
fit="cover" fit="cover"
/> />
</div> </div>
<div <div
className="h-6 w-6 bg-[#33333380] absolute top-0 right-0 flex justify-center items-center rounded-bl" className="h-6 w-6 bg-[#33333380] absolute top-0 right-0 flex justify-center items-center rounded-bl z-50"
onClick={() => handleRemoveItem(index * 4 + ind)} onClick={() => handleRemoveItem(index * 4 + ind)}
> >
<FontAwesomeIcon icon={faClose} size="xl" /> <FontAwesomeIcon icon={faClose} size="xl" />
</div> </div>
{type == 2 && ( {type == 2 && (
<div <div
className="absolute top-1/2 left-1/2 flex justify-center items-center -mt-2 -ml-1" className="absolute top-1/2 left-1/2 flex justify-center items-center -mt-2 -ml-1 z-50"
onClick={() => showPhotos(filesUrls)} onClick={() => showPhotos(filesUrls)}
> >
<FontAwesomeIcon icon={faPlay} size="xl" /> <FontAwesomeIcon icon={faPlay} size="xl" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 84 KiB