Skip to content

Let's use AI to Earn!

tes1

bulaienaofutuojiesenzhang3ab5417904db
diff --git a/src/app/[lng]/profile/page.tsx b/src/app/[lng]/profile/page.tsx
index 4434f052..da947538 100644
--- a/src/app/[lng]/profile/page.tsx
+++ b/src/app/[lng]/profile/page.tsx
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
import { Card, Descriptions, Button, message, Modal, Form, Input, Tabs, Table, Tag, Popconfirm, DatePicker, Select, Space } from "antd";
import { CrownOutlined, TrophyOutlined, GiftOutlined, StarOutlined, RocketOutlined, ThunderboltOutlined, HistoryOutlined, DollarOutlined, ShoppingCartOutlined, UserOutlined, GiftFilled } from "@ant-design/icons";
import { useRouter, useSearchParams } from "next/navigation";
+import { WalletOutlined } from "@ant-design/icons";
import { useUserStore } from "@/store/user";
import { getUserInfoApi, updateUserInfoApi, getPointsRecordsApi } from "@/api/apiReq";
import { createPaymentOrderApi, PaymentType as VipPaymentType } from "@/api/vip";
@@ -693,7 +694,7 @@ export default function ProfilePage() {
const renderProfileContent = () => (
<>
-<div className={styles.vipCard}>
+{/* <div className={styles.vipCard}>
<div className={styles.vipContent}>
<div className={styles.vipHeader}>
<span className={styles.vipIcon}><CrownOutlined /></span>
@@ -724,11 +725,11 @@ export default function ProfilePage() {
</button>
)}
</div>
- </div>
+ </div> */}
{/* 积分显示卡片 */}
- <div className={styles.pointsCard}>
+ {/* <div className={styles.pointsCard}>
<div className={styles.pointsContent}>
<div className={styles.pointsHeader}>
<div className={styles.pointsTitleSection}>
@@ -780,7 +781,7 @@ export default function ProfilePage() {
</div>
</div>
</div>
- </div>
+ </div> */}
{/* 余额显示卡片 */}
<div className={styles.incomeCard}>
@@ -788,9 +789,7 @@ export default function ProfilePage() {
<div className={styles.incomeHeader}>
<div className={styles.incomeTitleSection}>
<span className={styles.incomeIcon}>
- <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 10.9 13 11.5 13 12h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/>
- </svg>
+ <WalletOutlined />
</span>
<span className={styles.incomeTitle}>我的余额</span>
</div>
@@ -924,35 +923,6 @@ export default function ProfilePage() {
</div>
);
- // 积分记录内容
- const renderPointsContent = () => (
- <div className={styles.orderContent}>
- <Card>
- <Table
- columns={pointsColumns}
- dataSource={pointsRecords}
- loading={pointsLoading}
- rowKey="id"
- className={styles.pointsTable}
- pagination={{
- current: pointsPagination.current,
- pageSize: pointsPagination.pageSize,
- total: pointsPagination.total,
- onChange: (page, size) => {
- fetchPointsRecords({ page, pageSize: size || 10 });
- },
- showSizeChanger: true,
- showQuickJumper: true,
- showTotal: (total) => t('points.totalRecords', { total }),
- pageSizeOptions: ['10', '20', '50'],
- }}
- locale={{
- emptyText: pointsLoading ? t('loading') : t('points.noPointsRecords')
- }}
- />
- </Card>
- </div>
- );
if (loading) {
return null;
@@ -994,17 +964,7 @@ export default function ProfilePage() {
>
{renderOrderContent()}
</TabPane>
- <TabPane
- tab={
- <span>
- <GiftFilled />
- {t('points.title')}
- </span>
- }
- key="points"
- >
- {renderPointsContent()}
- </TabPane>
+
</Tabs>
<Modal
diff --git a/src/app/[lng]/profile/profile.module.css b/src/app/[lng]/profile/profile.module.css
index e5c52913..bec39c32 100644
--- a/src/app/[lng]/profile/profile.module.css
+++ b/src/app/[lng]/profile/profile.module.css
@@ -896,15 +896,15 @@
/* 余额卡片样式 */
.incomeCard {
- background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);
+ background: #ffffff;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
- color: #fff;
- box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);
+ color: #2B2F36;
+ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.08);
position: relative;
overflow: hidden;
- border: 1px solid rgba(255, 255, 255, 0.1);
+ border: 1px solid rgba(252, 226, 169, 0.35);
}
.incomeCard::before {
@@ -913,9 +913,8 @@
top: 0;
left: 0;
right: 0;
- bottom: 0;
- background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
- animation: shimmer 3s ease-in-out infinite;
+ height: 3px;
+ background: linear-gradient(135deg, #fce2a9 0%, #ffd700 100%);
}
.incomeContent {
@@ -938,11 +937,11 @@
.incomeIcon {
font-size: 20px;
- color: #fce2a9;
- background: rgba(252, 226, 169, 0.1);
+ color: #c7a800;
+ background: rgba(252, 226, 169, 0.18);
border-radius: 50%;
- width: 32px;
- height: 32px;
+ width: 36px;
+ height: 36px;
display: flex;
align-items: center;
justify-content: center;
@@ -951,14 +950,13 @@
.incomeTitle {
font-size: 18px;
font-weight: 600;
- color: #fce2a9;
+ color: #2B2F36;
}
.incomeCount {
font-size: 28px;
- font-weight: bold;
+ font-weight: 800;
color: #fce2a9;
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
background: linear-gradient(135deg, #fce2a9, #ffd700);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@@ -967,9 +965,9 @@
.incomeDescription {
font-size: 13px;
- color: rgba(255, 255, 255, 0.8);
- margin-bottom: 18px;
- line-height: 1.4;
+ color: #7c7c7c;
+ margin-bottom: 12px;
+ line-height: 1.5;
}
.incomeActions {
@@ -979,7 +977,7 @@
.incomeButton {
background: linear-gradient(135deg, #fce2a9 0%, #ffd700 100%);
- border: 2px solid rgba(252, 226, 169, 0.3);
+ border: 2px solid rgba(252, 226, 169, 0.4);
color: #2B2F36;
padding: 12px 20px;
border-radius: 8px;
@@ -989,7 +987,7 @@
transition: all 0.3s ease;
position: relative;
overflow: hidden;
- box-shadow: 0 2px 8px rgba(252, 226, 169, 0.3);
+ box-shadow: 0 2px 8px rgba(252, 226, 169, 0.35);
display: flex;
align-items: center;
gap: 8px;
@@ -1009,7 +1007,7 @@
left: -100%;
width: 100%;
height: 100%;
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
transition: left 0.6s ease;
}
@@ -1020,7 +1018,7 @@
.incomeButton:hover {
background: linear-gradient(135deg, #ffd700 0%, #fce2a9 100%);
transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(252, 226, 169, 0.4);
+ box-shadow: 0 4px 12px rgba(252, 226, 169, 0.5);
border-color: rgba(252, 226, 169, 0.6);
}
@@ -1035,5 +1033,5 @@
.incomeButton:focus {
outline: none;
- box-shadow: 0 0 0 3px rgba(252, 226, 169, 0.3), 0 2px 8px rgba(252, 226, 169, 0.3);
+ box-shadow: 0 0 0 3px rgba(252, 226, 169, 0.35), 0 2px 8px rgba(252, 226, 169, 0.35);
}
\ No newline at end of file