屏蔽余额功能
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
购买页固定套餐
|
购买页固定套餐
|
||||||
|
|
||||||
不要余额
|
|
||||||
|
|
||||||
优惠问题
|
优惠问题
|
||||||
|
|
||||||
### 禁止直接依赖 form
|
### 禁止直接依赖 form
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export default async function UserCenter() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-1">
|
{/* <div className="flex flex-col gap-1">
|
||||||
<h4 className="text-sm text-weak">账户余额</h4>
|
<h4 className="text-sm text-weak">账户余额</h4>
|
||||||
<div className="flex justify-between items-baseline">
|
<div className="flex justify-between items-baseline">
|
||||||
<p className="text-xl text-accent">
|
<p className="text-xl text-accent">
|
||||||
@@ -68,7 +68,7 @@ export default async function UserCenter() {
|
|||||||
</p>
|
</p>
|
||||||
<RechargeModal/>
|
<RechargeModal/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> */}
|
||||||
<div className="flex flex-col gap-3">
|
<div className="flex flex-col gap-3">
|
||||||
<h4 className="text-sm text-weak">快捷入口</h4>
|
<h4 className="text-sm text-weak">快捷入口</h4>
|
||||||
<div className="flex justify-around gap-2">
|
<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">
|
<div className="flex gap-4 max-md:flex-col max-sm:flex-col">
|
||||||
|
|
||||||
<Card className="flex-1 ">
|
{/* <Card className="flex-1 ">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="font-normal">帐号余额(元)</CardTitle>
|
<CardTitle className="font-normal">账户余额(元)</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="flex-auto flex justify-between items-center px-8">
|
<CardContent className="flex-auto flex justify-between items-center px-8">
|
||||||
<p className="text-xl">{user.balance}</p>
|
<p className="text-xl">{user.balance}</p>
|
||||||
@@ -45,6 +45,16 @@ export default async function ProfilePage(props: ProfilePageProps) {
|
|||||||
trigger: `h-10 px-6`,
|
trigger: `h-10 px-6`,
|
||||||
}}/>
|
}}/>
|
||||||
</CardContent>
|
</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>
|
||||||
|
|
||||||
<Card className="flex-1">
|
<Card className="flex-1">
|
||||||
@@ -79,17 +89,6 @@ export default async function ProfilePage(props: ProfilePageProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex-none rounded-lg bg-white p-4 flex max-sm:flex-col flex-col gap-8">
|
<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}/>
|
<BasicForm profile={user}/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ function BalanceOrLogin(props: {
|
|||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
className="flex flex-col gap-3">
|
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">
|
<p className="flex items-center gap-3">
|
||||||
<Image src={balance} alt="余额icon"/>
|
<Image src={balance} alt="余额icon"/>
|
||||||
<span className="text-sm text-gray-500">账户余额</span>
|
<span className="text-sm text-gray-500">账户余额</span>
|
||||||
@@ -181,16 +181,16 @@ function BalanceOrLogin(props: {
|
|||||||
<span className="text-xl">{profile?.balance}</span>
|
<span className="text-xl">{profile?.balance}</span>
|
||||||
<RechargeModal/>
|
<RechargeModal/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div> */}
|
||||||
|
|
||||||
<FormOption
|
{/* <FormOption
|
||||||
id={`${id}-balance`}
|
id={`${id}-balance`}
|
||||||
value="balance"
|
value="balance"
|
||||||
compare={field.value}
|
compare={field.value}
|
||||||
className="p-3 w-full flex-row gap-2 justify-center">
|
className="p-3 w-full flex-row gap-2 justify-center">
|
||||||
<Image src={balance} alt="余额 icon"/>
|
<Image src={balance} alt="余额 icon"/>
|
||||||
<span>余额</span>
|
<span>余额</span>
|
||||||
</FormOption>
|
</FormOption> */}
|
||||||
<FormOption
|
<FormOption
|
||||||
id={`${id}-wechat`}
|
id={`${id}-wechat`}
|
||||||
value="wechat"
|
value="wechat"
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ function BalanceOrLogin(props: {
|
|||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
className="flex flex-col gap-3">
|
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">
|
<p className="flex items-center gap-3">
|
||||||
<Image src={balance} alt="余额icon"/>
|
<Image src={balance} alt="余额icon"/>
|
||||||
<span className="text-sm text-gray-500">账户余额</span>
|
<span className="text-sm text-gray-500">账户余额</span>
|
||||||
@@ -182,16 +182,16 @@ function BalanceOrLogin(props: {
|
|||||||
<span className="text-xl">{profile.balance}</span>
|
<span className="text-xl">{profile.balance}</span>
|
||||||
<RechargeModal/>
|
<RechargeModal/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div> */}
|
||||||
|
|
||||||
<FormOption
|
{/* <FormOption
|
||||||
id={`${id}-balance`}
|
id={`${id}-balance`}
|
||||||
value="balance"
|
value="balance"
|
||||||
compare={field.value}
|
compare={field.value}
|
||||||
className="p-3 w-full flex-row gap-2 justify-center">
|
className="p-3 w-full flex-row gap-2 justify-center">
|
||||||
<Image src={balance} alt="余额 icon"/>
|
<Image src={balance} alt="余额 icon"/>
|
||||||
<span>余额</span>
|
<span>余额</span>
|
||||||
</FormOption>
|
</FormOption> */}
|
||||||
<FormOption
|
<FormOption
|
||||||
id={`${id}-wechat`}
|
id={`${id}-wechat`}
|
||||||
value="wechat"
|
value="wechat"
|
||||||
|
|||||||
Reference in New Issue
Block a user