update: 优化邀请分享页错误场景

main
Mack 1 month ago
parent 153246b0db
commit 55f7ad98bc

@ -44,29 +44,33 @@ export default function Invite() {
width="56"
height="56"
className="mt-34px object-cover rounded-full"
src={userInfo?.avatar ?? ''}
src={userInfo?.avatar ?? '/img/share.png'}
alt=""
unoptimized
/>
<div className="mt-13px flex flex-col justify-between items-center">
<p className="text-17px leading-23.8px">{`${userInfo?.nickName ?? ''},邀请你加入雀乐`}</p>
{!!userInfo?.nickName && <p className="text-17px leading-23.8px">{`${userInfo.nickName},邀请你加入雀乐`}</p>}
<p className="w-fit mt-1px text-12px leading-16.8px text-#000/40"> </p>
</div>
<div className="flex justify-between items-center w-278px h-103px mt-14px pl-30px pr-25px rounded-6px bg-#fff">
{userInfo?.inviteCode ? (
<>
<Image width="42" height="42" className="rounded-full" src="/img/share.png" alt="" unoptimized />
<div>
<div>
<div className="flex items-center text-17px leading-23.8px">
<div></div>
<div className="w-1px h-14.5px mx-9px bg-#000/10" />
<div>{userInfo?.inviteCode ?? ''}</div>
<div>{userInfo.inviteCode}</div>
</div>
<p className="text-12px leading-16.8px text-#000/40"></p>
</div>
</div>
</>
) : (
<div className="mx-auto text-17px leading-23.8px"></div>
)}
</div>
<DownloadButton className="w-300px mt-33px" />

Loading…
Cancel
Save