修改样式问题

This commit is contained in:
al 2025-01-10 16:07:47 +08:00
parent 8a2ef9b2e5
commit 8024ac7994
5 changed files with 27 additions and 17 deletions

View File

@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faAngleRight } from "@fortawesome/free-solid-svg-icons"; import { faAngleRight } from "@fortawesome/free-solid-svg-icons";
import { Avatar, Toast, Space } from "antd-mobile"; import { Avatar, Toast, Space } from "antd-mobile";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { get } from "@/utils/storeInfo"; import { get, save } from "@/utils/storeInfo";
import requireAPI from "@/utils/requireAPI"; import requireAPI from "@/utils/requireAPI";
import OwnIcon from "@/components/OwnIcon"; import OwnIcon from "@/components/OwnIcon";
import OwnImage from "@/components/OwnImage"; import OwnImage from "@/components/OwnImage";
@ -29,6 +29,7 @@ const My = () => {
null, null,
true true
); );
console.log("------", data);
if (data.ret === -1) { if (data.ret === -1) {
Toast.show({ Toast.show({
icon: "fail", icon: "fail",
@ -65,6 +66,7 @@ const My = () => {
}); });
return; return;
} }
save("account", account.data.account);
const statuses = await requireAPI( const statuses = await requireAPI(
"POST", "POST",
"/api/streamer_auth_approval/get_statuses", "/api/streamer_auth_approval/get_statuses",
@ -118,13 +120,13 @@ const My = () => {
subTitle: subTitle:
account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁", account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁",
}, },
// { {
// url: `my/refund/refundList`, url: `my/refund/refundList`,
// iconUrl: "/icons/32DP/wallet.png", iconUrl: "/icons/32DP/wallet.png",
// title: "退款审核", title: "退款审核",
// subTitle: subTitle:
// account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁", account.data.account.role == 3 ? "创作者功能" : "完善资料后解锁",
// }, },
// ...currentOld, // ...currentOld,
]; ];
if (isInJoinProgress) { if (isInJoinProgress) {

View File

@ -142,7 +142,11 @@ export default function RefundDetail() {
<Radio.Group <Radio.Group
className="flex flex-col" className="flex flex-col"
onChange={setIndex} onChange={setIndex}
value={data && data?.refunds_status === 4 ? 2 : selectedIndex} value={
data && [2, 3, 4].includes(data?.refunds_status)
? 2
: selectedIndex
}
disabled={!checkAble} disabled={!checkAble}
> >
<div className="flex flex-row items-start mt-4 pr-6"> <div className="flex flex-row items-start mt-4 pr-6">

View File

@ -66,7 +66,7 @@ export default function PendingReview({ currentIndex }) {
roundedFull roundedFull
/> />
<div className="ml-2 flex flex-col gap-1"> <div className="ml-2 flex flex-col gap-1">
<div className="flex flex-row items-center flex-1 "> <div className="flex flex-row flex-wrap items-center flex-1 ">
<div style={{ maxWidth: 100 }} className="truncate"> <div style={{ maxWidth: 100 }} className="truncate">
<span className="mr-2 text-base text-white font-medium whitespace-nowrap"> <span className="mr-2 text-base text-white font-medium whitespace-nowrap">
{item.account.name} {item.account.name}
@ -99,9 +99,9 @@ export default function PendingReview({ currentIndex }) {
</div> </div>
</div> </div>
<div className="flex flex-col justify-center items-center"> <div className="flex flex-col justify-center items-start">
<div className="px-4 py-1 rounded-full bg-[#FFFFFF1A] flex-row items-center"> <div className="px-4 py-1 rounded-full bg-[#FFFFFF1A] flex-row items-center">
<span className="text-white text-sm"> <span className="text-white text-sm whitespace-nowrap">
{item?.refunds_status === 4 {item?.refunds_status === 4
? "已自动退款" ? "已自动退款"
: item?.refunds_status === -1 : item?.refunds_status === -1

View File

@ -64,9 +64,13 @@ export default function HostList() {
style={{ "--padding-left": 0 }} style={{ "--padding-left": 0 }}
> >
<div <div
onClick={() => onClick={() => {
router.push(`space/person_space_introduce/${item.mid}`) if (item.hyperlinks[0].action === "outward") {
window.open(item.hyperlinks[0].url);
} else {
router.push(`space/person_space_introduce/${item.mid}`);
} }
}}
className="grid grid-cols-[48px,calc(100vw-48px-2rem)]" className="grid grid-cols-[48px,calc(100vw-48px-2rem)]"
> >
<div className="relative"> <div className="relative">

View File

@ -284,6 +284,7 @@ export default function PostItem({
{type == "post" ? ( {type == "post" ? (
<div <div
className="flex items-center" className="flex items-center"
style={{ display: !isOwn ? "flex" : "none" }}
onClick={() => onClick={() =>
router.push("/space/person_space_introduce/" + data.mid) router.push("/space/person_space_introduce/" + data.mid)
} }
@ -324,8 +325,7 @@ export default function PostItem({
/> />
</> </>
) : ( ) : (
data?.streamer_ext?.zones?.length !== 0 && data?.streamer_ext?.zones?.length !== 0 && (
!isOwn && (
<div className="text-[#FFFFFFB2] font-medium text-xs flex items-center"> <div className="text-[#FFFFFFB2] font-medium text-xs flex items-center">
<span className="mr-1">查看TA的空间</span> <span className="mr-1">查看TA的空间</span>
<FontAwesomeIcon <FontAwesomeIcon