个人中心页面按钮跳转与样式修复;实名认证页面界面与文字调整;提取 IP 页面浮动组件复制问题修复

This commit is contained in:
2025-04-30 10:42:47 +08:00
parent 09d6255bd5
commit 5ef673bacb
5 changed files with 63 additions and 41 deletions

View File

@@ -26,11 +26,13 @@ import {
} from '@/components/ui/dialog'
import {sendSMS} from '@/actions/verify'
import RechargeModal from '@/components/composites/recharge'
import {useRouter} from 'next/navigation'
export type ProfilePageProps = {}
export default function ProfilePage(props: ProfilePageProps) {
const router = useRouter()
const profile = useProfileStore(store => store.profile)
// ======================
@@ -67,7 +69,9 @@ export default function ProfilePage(props: ProfilePageProps) {
</CardHeader>
<CardContent className={`flex-auto flex justify-between items-center px-8`}>
<p className={`text-xl`}>{profile?.balance}</p>
<RechargeModal/>
<RechargeModal classNames={{
trigger: `h-10 px-6`,
}}/>
</CardContent>
</Card>
@@ -79,7 +83,7 @@ export default function ProfilePage(props: ProfilePageProps) {
{!profile?.id_token
? <>
<p className={`text-sm`}>使</p>
<Button theme={`outline`} className={`mx-16 w-24`}></Button>
<Button theme={`outline`} className={`mx-16 w-24`} onClick={() => router.push('/admin/identify')}></Button>
</>
: <>
<p className={`flex flex-col gap-1`}>
@@ -423,7 +427,7 @@ function PasswordForm(props: {
<Button theme={`outline`} type={`button`} className={`w-36`} onClick={() => sendVerifier()}>
{captchaWait > 0
? `重新发送(${captchaWait})`
: `获取验证码`
: `获取短信令牌`
}
</Button>
</div>