屏蔽余额功能
This commit is contained in:
@@ -59,7 +59,7 @@ export default async function UserCenter() {
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex flex-col gap-1">
|
||||
{/* <div className="flex flex-col gap-1">
|
||||
<h4 className="text-sm text-weak">账户余额</h4>
|
||||
<div className="flex justify-between items-baseline">
|
||||
<p className="text-xl text-accent">
|
||||
@@ -68,7 +68,7 @@ export default async function UserCenter() {
|
||||
</p>
|
||||
<RechargeModal/>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
<div className="flex flex-col gap-3">
|
||||
<h4 className="text-sm text-weak">快捷入口</h4>
|
||||
<div className="flex justify-around gap-2">
|
||||
|
||||
@@ -35,9 +35,9 @@ export default async function ProfilePage(props: ProfilePageProps) {
|
||||
{/* 块信息 */}
|
||||
<div className="flex gap-4 max-md:flex-col max-sm:flex-col">
|
||||
|
||||
<Card className="flex-1 ">
|
||||
{/* <Card className="flex-1 ">
|
||||
<CardHeader>
|
||||
<CardTitle className="font-normal">帐号余额(元)</CardTitle>
|
||||
<CardTitle className="font-normal">账户余额(元)</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="flex-auto flex justify-between items-center px-8">
|
||||
<p className="text-xl">{user.balance}</p>
|
||||
@@ -45,6 +45,16 @@ export default async function ProfilePage(props: ProfilePageProps) {
|
||||
trigger: `h-10 px-6`,
|
||||
}}/>
|
||||
</CardContent>
|
||||
</Card> */}
|
||||
|
||||
<Card className="flex-1 ">
|
||||
<CardHeader>
|
||||
<CardTitle className="font-normal">修改密码</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="flex-auto flex justify-between items-center px-8">
|
||||
<p>{user.phone}</p>
|
||||
<ChangePasswordDialog triggerClassName="w-24 h-9"/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card className="flex-1">
|
||||
@@ -79,17 +89,6 @@ export default async function ProfilePage(props: ProfilePageProps) {
|
||||
</div>
|
||||
|
||||
<div className="flex-none rounded-lg bg-white p-4 flex max-sm:flex-col flex-col gap-8">
|
||||
|
||||
{/* 安全信息 */}
|
||||
<div className="flex flex-col gap-4">
|
||||
<h3 className="font-normal">安全信息</h3>
|
||||
<div className="flex gap-4 items-center">
|
||||
<p>{user.phone}</p>
|
||||
<ChangePasswordDialog triggerClassName="w-24 h-9"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 基本信息 */}
|
||||
<BasicForm profile={user}/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -172,7 +172,7 @@ function BalanceOrLogin(props: {
|
||||
onValueChange={field.onChange}
|
||||
className="flex flex-col gap-3">
|
||||
|
||||
<div className="w-full p-3 flex flex-col gap-4 bg-gray-100 rounded-md">
|
||||
{/* <div className="w-full p-3 flex flex-col gap-4 bg-gray-100 rounded-md">
|
||||
<p className="flex items-center gap-3">
|
||||
<Image src={balance} alt="余额icon"/>
|
||||
<span className="text-sm text-gray-500">账户余额</span>
|
||||
@@ -181,16 +181,16 @@ function BalanceOrLogin(props: {
|
||||
<span className="text-xl">{profile?.balance}</span>
|
||||
<RechargeModal/>
|
||||
</p>
|
||||
</div>
|
||||
</div> */}
|
||||
|
||||
<FormOption
|
||||
{/* <FormOption
|
||||
id={`${id}-balance`}
|
||||
value="balance"
|
||||
compare={field.value}
|
||||
className="p-3 w-full flex-row gap-2 justify-center">
|
||||
<Image src={balance} alt="余额 icon"/>
|
||||
<span>余额</span>
|
||||
</FormOption>
|
||||
</FormOption> */}
|
||||
<FormOption
|
||||
id={`${id}-wechat`}
|
||||
value="wechat"
|
||||
|
||||
@@ -173,7 +173,7 @@ function BalanceOrLogin(props: {
|
||||
onValueChange={field.onChange}
|
||||
className="flex flex-col gap-3">
|
||||
|
||||
<div className="w-full p-3 flex flex-col gap-4 bg-gray-100 rounded-md">
|
||||
{/* <div className="w-full p-3 flex flex-col gap-4 bg-gray-100 rounded-md">
|
||||
<p className="flex items-center gap-3">
|
||||
<Image src={balance} alt="余额icon"/>
|
||||
<span className="text-sm text-gray-500">账户余额</span>
|
||||
@@ -182,16 +182,16 @@ function BalanceOrLogin(props: {
|
||||
<span className="text-xl">{profile.balance}</span>
|
||||
<RechargeModal/>
|
||||
</p>
|
||||
</div>
|
||||
</div> */}
|
||||
|
||||
<FormOption
|
||||
{/* <FormOption
|
||||
id={`${id}-balance`}
|
||||
value="balance"
|
||||
compare={field.value}
|
||||
className="p-3 w-full flex-row gap-2 justify-center">
|
||||
<Image src={balance} alt="余额 icon"/>
|
||||
<span>余额</span>
|
||||
</FormOption>
|
||||
</FormOption> */}
|
||||
<FormOption
|
||||
id={`${id}-wechat`}
|
||||
value="wechat"
|
||||
|
||||
Reference in New Issue
Block a user