修复存在的问题

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-size: inherit;
color: inherit;
}
input,textarea{
input,
textarea {
-webkit-user-select: auto; /* Safari */
-moz-user-select: auto; /* Firefox */
-ms-user-select: auto; /* IE/Edge */
@ -273,6 +273,18 @@ input,textarea{
.adm-dialog .adm-dialog-content {
max-height: none;
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 {
display: flex;

View File

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

View File

@ -33,7 +33,7 @@ export default function Setting() {
...info,
refund_enable: res?.refund_enable,
});
isShowThird(parseInt(mid));
isShowThird(parseInt(info.id));
});
}
})();
@ -131,6 +131,7 @@ export default function Setting() {
});
return;
}
setIsAgencyHided(_data.data.zone_third_partner?.is_hided != 1);
} catch (error) {
// console.error(error);
@ -225,22 +226,6 @@ export default function Setting() {
</li>
{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>
<div
onClick={() =>
@ -298,6 +283,20 @@ export default function Setting() {
<Divider />
</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?.admission_price > 0 &&
streamerInfo?.visitor_role === 0 && (
@ -323,7 +322,7 @@ export default function Setting() {
<Divider />
</li>
)}
{streamerInfo?.visitor_role != 3 && (
{streamerInfo?.visitor_role === 0 && (
<li onClick={handleShowDialog}>
<div className="flex justify-between">
<span className="text-base text-white">退出空间</span>

View File

@ -90,9 +90,7 @@ export default function CollaboratorSetting() {
setModalVisible={setModalVisible}
zid={zid}
handleRefresh={getData}
maxRate={
(data?.zone_third_partner?.sharing_ratio * 100).toFixed() || 0
}
maxRate={remainingRate * 100}
/>
),
bodyStyle: {
@ -408,7 +406,7 @@ const ModalMask = ({ setModalVisible, zid, handleRefresh, maxRate }) => {
}
};
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">
<span className="text-base font-medium">搜索用户</span>
<OwnInput