修复存在的问题

This commit is contained in:
al 2024-11-20 12:13:27 +08:00
parent 7a049a54b2
commit af7da0681b
4 changed files with 34 additions and 31 deletions

View File

@ -57,9 +57,9 @@ input {
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
color: inherit; color: inherit;
} }
input,textarea{ input,
textarea {
-webkit-user-select: auto; /* Safari */ -webkit-user-select: auto; /* Safari */
-moz-user-select: auto; /* Firefox */ -moz-user-select: auto; /* Firefox */
-ms-user-select: auto; /* IE/Edge */ -ms-user-select: auto; /* IE/Edge */
@ -273,6 +273,18 @@ input,textarea{
.adm-dialog .adm-dialog-content { .adm-dialog .adm-dialog-content {
max-height: none; max-height: none;
height: 100%; height: 100%;
color: #5c5c5c;
}
.adm-dialog .adm-dialog-header {
font-size: large;
}
.adm-dialog .adm-dialog-footer .adm-dialog-action-row {
& > :first-child {
color: #5c5c5c;
}
& > :last-child {
color: #ffffff;
}
} }
.adm-toast-icon { .adm-toast-icon {
display: flex; display: flex;

View File

@ -186,13 +186,7 @@ export default function PersonSpace() {
}} }}
/> />
</div> </div>
<div <div onClick={() => router.push("setting/" + streamerInfo?.mid)}>
onClick={() =>
router.push(
"setting/" + streamerInfo?.mid
)
}
>
<Image <Image
width={42} width={42}
height={42} height={42}

View File

@ -33,7 +33,7 @@ export default function Setting() {
...info, ...info,
refund_enable: res?.refund_enable, refund_enable: res?.refund_enable,
}); });
isShowThird(parseInt(mid)); isShowThird(parseInt(info.id));
}); });
} }
})(); })();
@ -131,6 +131,7 @@ export default function Setting() {
}); });
return; return;
} }
setIsAgencyHided(_data.data.zone_third_partner?.is_hided != 1); setIsAgencyHided(_data.data.zone_third_partner?.is_hided != 1);
} catch (error) { } catch (error) {
// console.error(error); // console.error(error);
@ -225,22 +226,6 @@ export default function Setting() {
</li> </li>
{streamerInfo?.visitor_role === 3 && ( {streamerInfo?.visitor_role === 3 && (
<> <>
<li>
<div
onClick={() =>
router.push("spaceMember?zid=" + streamerInfo.id)
}
className="flex justify-between"
>
<span className="text-base text-white">空间成员</span>
<FontAwesomeIcon
icon={faAngleRight}
size="xl"
style={{ maxWidth: "12px" }}
/>
</div>
<Divider />
</li>
<li> <li>
<div <div
onClick={() => onClick={() =>
@ -298,6 +283,20 @@ export default function Setting() {
<Divider /> <Divider />
</li> </li>
)} )}
<li>
<div
onClick={() => router.push("spaceMember?zid=" + streamerInfo.id)}
className="flex justify-between"
>
<span className="text-base text-white">空间成员</span>
<FontAwesomeIcon
icon={faAngleRight}
size="xl"
style={{ maxWidth: "12px" }}
/>
</div>
<Divider />
</li>
{streamerInfo?.refund_enable === 1 && {streamerInfo?.refund_enable === 1 &&
streamerInfo?.admission_price > 0 && streamerInfo?.admission_price > 0 &&
streamerInfo?.visitor_role === 0 && ( streamerInfo?.visitor_role === 0 && (
@ -323,7 +322,7 @@ export default function Setting() {
<Divider /> <Divider />
</li> </li>
)} )}
{streamerInfo?.visitor_role != 3 && ( {streamerInfo?.visitor_role === 0 && (
<li onClick={handleShowDialog}> <li onClick={handleShowDialog}>
<div className="flex justify-between"> <div className="flex justify-between">
<span className="text-base text-white">退出空间</span> <span className="text-base text-white">退出空间</span>

View File

@ -90,9 +90,7 @@ export default function CollaboratorSetting() {
setModalVisible={setModalVisible} setModalVisible={setModalVisible}
zid={zid} zid={zid}
handleRefresh={getData} handleRefresh={getData}
maxRate={ maxRate={remainingRate * 100}
(data?.zone_third_partner?.sharing_ratio * 100).toFixed() || 0
}
/> />
), ),
bodyStyle: { bodyStyle: {
@ -408,7 +406,7 @@ const ModalMask = ({ setModalVisible, zid, handleRefresh, maxRate }) => {
} }
}; };
return ( return (
<div className="flex flex-col w-full bg-[#17161A] rounded-3xl "> <div className="flex flex-col w-full bg-[#17161A] rounded-3xl text-white">
<div className="flex flex-row items-center mb-4"> <div className="flex flex-row items-center mb-4">
<span className="text-base font-medium">搜索用户</span> <span className="text-base font-medium">搜索用户</span>
<OwnInput <OwnInput