Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
样式优化
daoyian1141042fe2f6
diff --git a/src/views/finance/finance.module.scss b/src/views/finance/finance.module.scssindex 6812d0b6..5e240a29 100644--- a/src/views/finance/finance.module.scss+++ b/src/views/finance/finance.module.scss@@ -20,17 +20,17 @@display: flex;flex-direction: column;background-color: #f5f5f5;- padding: 24px;+ padding: 18px;.header {margin-bottom: 24px;.balanceCard {- background: linear-gradient(135deg, #1890ff 0%, #36cfcf 100%);+ background: linear-gradient(135deg, #a66ae4 0%, #36cfcf 100%);color: white;border-radius: 12px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);- padding: 24px;+ padding: 12px;.balanceLabel {color: rgba(255, 255, 255, 0.8);@@ -44,7 +44,7 @@}.walletIcon {- font-size: 48px;+ font-size: 38px;color: rgba(255, 255, 255, 0.8);}}@@ -64,8 +64,79 @@border-right: 1px solid #f0f0f0;padding-right: 24px;- .segmented {- width: 100%;+ :global {+ .ant-segmented {+ background: transparent;+ padding: 0;+ width: 100%;+ display: flex;+ flex-direction: column;++ .ant-segmented-item {+ width: 100%;+ margin: 8px 0;+ padding: 14px 20px;+ border-radius: 12px;+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);+ position: relative;+ overflow: hidden;++ &:hover {+ background-color: rgba(24, 144, 255, 0.08);+ transform: translateX(4px);++ &::after {+ content: '';+ position: absolute;+ right: 0;+ top: 0;+ height: 100%;+ width: 3px;+ background: #1890ff;+ border-radius: 2px;+ }+ }++ .ant-segmented-item-label {+ display: flex;+ align-items: center;+ gap: 12px;+ font-size: 15px;+ color: #666;++ .anticon {+ font-size: 20px;+ color: #1890ff;+ opacity: 0.8;+ }+ }+ }++ .ant-segmented-item-selected {+ background-color: #e6f7ff;+ box-shadow: 0 2px 12px rgba(24, 144, 255, 0.12);++ &::after {+ content: '';+ position: absolute;+ right: 0;+ top: 0;+ height: 100%;+ width: 3px;+ background: #1890ff;+ border-radius: 2px;+ }++ .ant-segmented-item-label {+ color: #1890ff;+ font-weight: 500;++ .anticon {+ opacity: 1;+ }+ }+ }+ }}}diff --git a/src/views/finance/index.tsx b/src/views/finance/index.tsxindex fb2bb749..531bd9de 100644--- a/src/views/finance/index.tsx+++ b/src/views/finance/index.tsx@@ -5,7 +5,7 @@* @LastEditors: nevin* @Description: 任务页面*/-import { VideoCameraOutlined, WalletOutlined } from '@ant-design/icons';+import { VideoCameraOutlined, WalletOutlined, HistoryOutlined, AccountBookOutlined } from '@ant-design/icons';import { Segmented, Card, Typography, Space, Row, Col } from 'antd';import { Outlet, useNavigate } from 'react-router-dom';import styles from './finance.module.scss';@@ -59,12 +59,12 @@ export default function Page() {{label: '提现记录',value: 'userWalletRecord',- icon: <WalletOutlined />,+ icon: <HistoryOutlined />,},{label: '钱包账户',value: 'userWalletAccount',- icon: <WalletOutlined />,+ icon: <AccountBookOutlined />,},]}onChange={(value) => {diff --git a/src/views/finance/userWalletAccount.tsx b/src/views/finance/userWalletAccount.tsxindex ca1fba81..9aa1bb7b 100644--- a/src/views/finance/userWalletAccount.tsx+++ b/src/views/finance/userWalletAccount.tsx@@ -82,14 +82,14 @@ export default function Page() {</Space>),},- ];+ ];const handleView = (record: UserWalletAccount) => {// TODO: 实现查看详情功能console.log('查看账户详情:', record);};- return (+ return (<div><div style={{ marginBottom: 16, textAlign: 'right' }}><Button@@ -108,6 +108,6 @@ export default function Page() {pagination={false}/><AddWalletAccount ref={Ref_AddWalletAccountRef} />- </div>+ </div>);}