Skip to content

Let's use AI to Earn!

调用

bulaienaofutuojiesenzhang45d017611a07
diff --git a/src/app/[lng]/profile/page.tsx b/src/app/[lng]/profile/page.tsx
index 172936a7..f6a48416 100644
--- a/src/app/[lng]/profile/page.tsx
+++ b/src/app/[lng]/profile/page.tsx
@@ -15,6 +15,7 @@ import { OrderStatus, PaymentType } from "@/api/types/payment";
import styles from "./profile.module.css";
import { useTransClient } from "@/app/i18n/client";
import PointsRechargeModal from "@/components/modals/PointsRechargeModal";
+import PointsDetailModal from "@/components/modals/PointsDetailModal";
import plusvip from "@/assets/images/plusvip.png";
import logoHesd from "@/assets/images/logo.png";
@@ -82,6 +83,7 @@ export default function ProfilePage() {
const [isDragging, setIsDragging] = useState(false);
const [paymentOrderId, setPaymentOrderId] = useState<string | null>(null);
const [showPaymentSuccess, setShowPaymentSuccess] = useState(false);
+ const [pointsDetailVisible, setPointsDetailVisible] = useState(false);
// 积分记录类型定义
interface PointsRecord {
@@ -759,11 +761,11 @@ export default function ProfilePage() {
<span className={styles.statsCurrency}>元</span>
</div>
<div className={styles.statsGrid}>
- <div className={styles.statsItem}>
+ <div className={styles.statsItem} onClick={() => router.push('/income')} >
<div className={styles.statsValue}>{userInfo?.income || 0}</div>
<div className={styles.statsLabel}>余额</div>
</div>
- <div className={styles.statsItem}>
+ <div className={styles.statsItem} style={{cursor:'pointer'}} onClick={() => setPointsDetailVisible(true)}>
<div className={styles.statsValue}>{Math.floor((userInfo?.score as number) || 0)}</div>
<div className={styles.statsLabel}>积分</div>
</div>
@@ -1089,6 +1091,7 @@ export default function ProfilePage() {
{/* 积分充值弹窗(复用组件) */}
<PointsRechargeModal open={pointsRechargeVisible} onClose={handleRechargeCancel} />
+ <PointsDetailModal open={pointsDetailVisible} onClose={() => setPointsDetailVisible(false)} />
</div>
);
}
\ No newline at end of file
diff --git a/src/app/[lng]/profile/profile.module.css b/src/app/[lng]/profile/profile.module.css
index ad21390b..14e583a8 100644
--- a/src/app/[lng]/profile/profile.module.css
+++ b/src/app/[lng]/profile/profile.module.css
@@ -1049,6 +1049,10 @@
padding: 16px 8px 18px 8px;
}
+.statsItem:hover{
+ cursor: pointer;
+}
+
.statsValue {
font-size: 22px;
font-weight: 800;