修复bug

This commit is contained in:
yezian 2024-04-30 17:55:08 +08:00
parent 4fa5afec95
commit 433b9f4c84
1 changed files with 17 additions and 12 deletions

View File

@ -40,6 +40,7 @@ export default function StreamerDetail({ params }) {
}
);
const detailData = await detailResponse.json();
console.log(detailData);
if (detailData.ret === -1) {
Toast.show({
content: detailData.msg,
@ -93,18 +94,22 @@ export default function StreamerDetail({ params }) {
{data?.bio}
</p>
</div>
<Link
href={`/zone/${data?.user_id}`}
className="flex flex-row cursor-pointer bg-[#07050A] border-2 border-[#FFFFFF26] rounded-2xl h-12 items-center justify-center mt-4"
>
<Image src={zone} alt="" className="w-5 h-5" />
<p className="text-white text-base font-medium ml-2">我的秘密空间</p>
{data?.is_active_within_a_week === 1 && (
<div className="flex justify-center items-center px-[3px] bg-primary rounded-[2px] ml-2">
<p className="text-white text-[9px] font-medium">有更新</p>
</div>
)}
</Link>
{data?.zones?.length !== 0 && (
<Link
href={`/zone/${data?.user_id}`}
className="flex flex-row cursor-pointer bg-[#07050A] border-2 border-[#FFFFFF26] rounded-2xl h-12 items-center justify-center mt-4"
>
<Image src={zone} alt="" className="w-5 h-5" />
<p className="text-white text-base font-medium ml-2">
我的秘密空间
</p>
{data?.is_active_within_a_week === 1 && (
<div className="flex justify-center items-center px-[3px] bg-primary rounded-[2px] ml-2">
<p className="text-white text-[9px] font-medium">有更新</p>
</div>
)}
</Link>
)}
<WechatBar
price={Math.ceil(data?.wechat_coin_price / 9)}
streamerMid={data?.mid}