个人中心页面按钮跳转与样式修复;实名认证页面界面与文字调整;提取 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

@@ -19,7 +19,7 @@ import step1 from './_assets/step1.webp'
import step2 from './_assets/step2.webp'
import step3 from './_assets/step3.webp'
import {Card, CardContent, CardDescription, CardHeader, CardTitle} from '@/components/ui/card'
import {WorkflowIcon} from 'lucide-react'
import {CheckCircle, CheckCircleIcon, WorkflowIcon} from 'lucide-react'
export type IdentifyPageProps = {}
@@ -120,12 +120,15 @@ export default function IdentifyPage(props: IdentifyPageProps) {
<Image src={personal} alt={`个人认证`}/>
<div>
<h3 className={`text-center text-lg font-bold`}></h3>
<p className={`text-sm text-gray-600`}></p>
<p className={`text-sm text-gray-600`}>
</p>
</div>
{profile?.id_token ? (
<div className={`flex flex-col gap-4`}>
<p className={`text-sm text-gray-600`}></p>
</div>
<p className={`flex gap-2 items-center`}>
<CheckCircleIcon className={`text-done`}/>
<span></span>
</p>
) : (
<Dialog open={openDialog} onOpenChange={setOpenDialog}>
<DialogTrigger asChild>

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>