Skip to content

Let's use AI to Earn!

jifen

daoyian45198a16411f
diff --git a/src/api/apiReq.ts b/src/api/apiReq.ts
index b35ded6f..9d165170 100644
--- a/src/api/apiReq.ts
+++ b/src/api/apiReq.ts
@@ -94,3 +94,13 @@ export const getPointsRecordsApi = async (params: { page: number; pageSize: numb
);
return res;
};
+
+// 积分充值相关API
+export interface RechargePointsParams {
+ amount: number; // 充值数量(1000积分为单位)
+ totalPrice: number; // 总价格
+}
+
+export const rechargePointsApi = (data: RechargePointsParams) => {
+ return http.post<any>("user/points/recharge", data);
+};
diff --git a/src/app/[lng]/profile/page.tsx b/src/app/[lng]/profile/page.tsx
index 3b2d22c4..3337eea6 100644
--- a/src/app/[lng]/profile/page.tsx
+++ b/src/app/[lng]/profile/page.tsx
@@ -5,7 +5,7 @@ import { Card, Descriptions, Button, message, Modal, Form, Input, Tabs, Table, T
import { CrownOutlined, TrophyOutlined, GiftOutlined, StarOutlined, RocketOutlined, ThunderboltOutlined, HistoryOutlined, DollarOutlined, ShoppingCartOutlined, UserOutlined, GiftFilled } from "@ant-design/icons";
import { useRouter } from "next/navigation";
import { useUserStore } from "@/store/user";
-import { getUserInfoApi, updateUserInfoApi, getPointsRecordsApi } from "@/api/apiReq";
+import { getUserInfoApi, updateUserInfoApi, getPointsRecordsApi, rechargePointsApi } from "@/api/apiReq";
import { getOrderListApi, getOrderDetailApi, getSubscriptionListApi, refundOrderApi, unsubscribeApi } from "@/api/payment";
import type { Order, OrderListParams, SubscriptionListParams, RefundParams, UnsubscribeParams } from "@/api/types/payment";
import { OrderStatus, PaymentType } from "@/api/types/payment";
@@ -65,6 +65,12 @@ export default function ProfilePage() {
total: 0
});
+ // 积分充值相关状态
+ const [pointsRechargeVisible, setPointsRechargeVisible] = useState(false);
+ const [rechargeAmount, setRechargeAmount] = useState(8);
+ const [rechargeForm] = Form.useForm();
+ const [isDragging, setIsDragging] = useState(false);
+
// 积分记录类型定义
interface PointsRecord {
id: string;
@@ -279,6 +285,14 @@ export default function ProfilePage() {
fetchUserInfo();
}, [token, router]);
+ // 清理滑块事件监听器
+ useEffect(() => {
+ return () => {
+ document.removeEventListener('mousemove', handleSliderMouseMove);
+ document.removeEventListener('mouseup', handleSliderMouseUp);
+ };
+ }, []);
+
const handleLogout = () => {
clearLoginStatus();
message.success(t('logoutSuccess'));
@@ -321,6 +335,79 @@ export default function ProfilePage() {
localStorage.setItem('freeTrialShown', 'true');
};
+ // 积分相关处理函数
+ const handleGoToPublish = () => {
+ router.push('/accounts');
+ // 这里可以添加唤起发布窗口的逻辑
+ };
+
+ const handleGoToVip = () => {
+ router.push('/vip');
+ };
+
+ const handleRechargePoints = () => {
+ setPointsRechargeVisible(true);
+ };
+
+ const handleRechargeSubmit = async (values: any) => {
+ try {
+ const totalPrice = rechargeAmount * 15; // 每1000积分15美元
+ const response = await rechargePointsApi({
+ amount: rechargeAmount,
+ totalPrice: totalPrice
+ });
+
+ if (response?.code === 0) {
+ message.success('积分充值成功!');
+ setPointsRechargeVisible(false);
+ fetchUserInfo(); // 刷新用户信息
+ } else {
+ message.error(response?.message || '积分充值失败,请重试');
+ }
+ } catch (error) {
+ message.error('积分充值失败,请重试');
+ }
+ };
+
+ const handleRechargeCancel = () => {
+ setPointsRechargeVisible(false);
+ };
+
+ // 滑块拖动处理
+ const handleSliderMouseDown = (e: React.MouseEvent) => {
+ setIsDragging(true);
+ document.addEventListener('mousemove', handleSliderMouseMove);
+ document.addEventListener('mouseup', handleSliderMouseUp);
+ };
+
+ const handleSliderMouseMove = (e: MouseEvent) => {
+ if (!isDragging) return;
+
+ const sliderTrack = document.querySelector(`.${styles.sliderTrack}`) as HTMLElement;
+ if (!sliderTrack) return;
+
+ const rect = sliderTrack.getBoundingClientRect();
+ const x = e.clientX - rect.left;
+ const percentage = Math.max(0, Math.min(1, x / rect.width));
+ const newAmount = Math.round(percentage * 49) + 1; // 1-50
+ setRechargeAmount(newAmount);
+ };
+
+ const handleSliderMouseUp = () => {
+ setIsDragging(false);
+ document.removeEventListener('mousemove', handleSliderMouseMove);
+ document.removeEventListener('mouseup', handleSliderMouseUp);
+ };
+
+ const handleSliderClick = (e: React.MouseEvent) => {
+ const sliderTrack = e.currentTarget as HTMLElement;
+ const rect = sliderTrack.getBoundingClientRect();
+ const x = e.clientX - rect.left;
+ const percentage = Math.max(0, Math.min(1, x / rect.width));
+ const newAmount = Math.round(percentage * 49) + 1; // 1-50
+ setRechargeAmount(newAmount);
+ };
+
// 订单状态标签
const getOrderStatusTag = (status: OrderStatus) => {
const statusMap = {
@@ -547,7 +634,8 @@ 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>
@@ -580,25 +668,67 @@ export default function ProfilePage() {
</div>
</div>
- {/* 积分记录卡片 */}
- {/* <div className={styles.pointsCard}>
+
+ {/* 积分显示卡片 */}
+ <div className={styles.pointsCard}>
<div className={styles.pointsContent}>
<div className={styles.pointsHeader}>
- <div>
- <span style={{ marginRight: '8px' }}><GiftFilled /></span>
- <span className={styles.pointsTitle}>{t('points.myPoints')}</span>
+ <div className={styles.pointsTitleSection}>
+ <span className={styles.pointsIcon}><GiftFilled /></span>
+ <span className={styles.pointsTitle}>我的积分</span>
</div>
<span className={styles.pointsCount}>{userInfo?.score || 0}</span>
</div>
<p className={styles.pointsDescription}>
- {t('points.pointsDescription')}
+ 积分可用于AI服务消费,通过发布内容、开通会员或购买积分获得
</p>
+
+ <div className={styles.pointsMethods}>
+ <h4 className={styles.methodsTitle}>获取积分的方法:</h4>
+ <div className={styles.methodsGrid}>
+ <div className={styles.methodItem} onClick={handleGoToPublish}>
+ <div className={styles.methodIcon}>
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
+ </svg>
+ </div>
+ <div className={styles.methodContent}>
+ <h5>发布</h5>
+ <p>发布内容获得积分奖励</p>
+ </div>
+ </div>
+
+ <div className={styles.methodItem} onClick={handleGoToVip}>
+ <div className={styles.methodIcon}>
+ <CrownOutlined />
+ </div>
+ <div className={styles.methodContent}>
+ <h5>开通会员</h5>
+ <p>会员专享积分福利</p>
+ </div>
+ </div>
+
+ <div className={styles.methodItem} onClick={handleRechargePoints}>
+ <div className={styles.methodIcon}>
+ <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 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
+ </svg>
+ </div>
+ <div className={styles.methodContent}>
+ <h5>购买积分</h5>
+ <p>直接充值获得积分</p>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
- </div> */}
+ </div>
+
+
<Card
title={t('personalInfo')}
- className={styles.card}
+ className={`${styles.card} ${styles.personalInfoCard}`}
extra={
<div className={styles.actions}>
<Button type="primary" onClick={() => setIsModalOpen(true)}>
@@ -618,7 +748,6 @@ export default function ProfilePage() {
{userInfo?.status === 1 ? t('normal') : t('disabled')}
</Descriptions.Item>
<Descriptions.Item label='邀请码'>{userInfo?.popularizeCode}</Descriptions.Item>
- <Descriptions.Item label='我的积分'>{userInfo?.score}</Descriptions.Item>
{isVip && (
<>
<Descriptions.Item label={t('memberType')}>{vipCycleType}</Descriptions.Item>
@@ -968,6 +1097,72 @@ export default function ProfilePage() {
</p>
</div>
</Modal>
+
+ {/* 积分充值弹窗 */}
+ <Modal
+ title="购买积分"
+ open={pointsRechargeVisible}
+ onCancel={handleRechargeCancel}
+ footer={null}
+ width={500}
+ centered
+ >
+ <div className={styles.rechargeContent}>
+ <div className={styles.currentPoints}>
+ <span className={styles.pointsLabel}>账户积分</span>
+ <span className={styles.pointsValue}>{userInfo?.score || 0}</span>
+ </div>
+
+ <div className={styles.rechargeSection}>
+ <h4>购买积分</h4>
+ <p className={styles.rechargeDescription}>每1000积分售价15美元,以此类推</p>
+
+ <div className={styles.sliderContainer}>
+ <div
+ className={styles.sliderTrack}
+ onClick={handleSliderClick}
+ >
+ <div
+ className={styles.sliderHandle}
+ style={{ left: `${(rechargeAmount / 50) * 100}%` }}
+ onMouseDown={handleSliderMouseDown}
+ />
+ </div>
+ <div className={styles.sliderLabels}>
+ <span>1K</span>
+ <span>50K</span>
+ </div>
+ </div>
+
+ <div className={styles.amountInput}>
+ <Input
+ type="number"
+ value={rechargeAmount}
+ onChange={(e) => setRechargeAmount(Number(e.target.value))}
+ min={1}
+ max={50}
+ style={{ width: '80px', marginRight: '8px' }}
+ />
+ <span>*1000积分</span>
+ </div>
+
+ <div className={styles.totalPrice}>
+ <span>总价:</span>
+ <span className={styles.priceValue}>${(rechargeAmount * 15).toFixed(2)}</span>
+ </div>
+ </div>
+
+ <Button
+ type="primary"
+ size="large"
+ block
+ onClick={() => handleRechargeSubmit({ amount: rechargeAmount })}
+ className={styles.rechargeButton}
+ >
+ 立即购买
+ </Button>
+ </div>
+ </Modal>
</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 ff6e23d2..ad5aa7a6 100644
--- a/src/app/[lng]/profile/profile.module.css
+++ b/src/app/[lng]/profile/profile.module.css
@@ -3,27 +3,120 @@
}
.card {
- margin-bottom: 16px;
- border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+ margin-bottom: 20px;
+ border-radius: 12px;
+ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.1);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
+ overflow: hidden;
+ position: relative;
+}
+
+.card::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 3px;
+ background: linear-gradient(135deg, #fce2a9 0%, #ffd700 100%);
}
.actions {
display: flex;
- gap: 8px;
+ gap: 12px;
+}
+
+/* 个人信息卡片特殊样式 */
+.personalInfoCard {
+ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);
+ color: #fff;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);
+}
+
+.personalInfoCard::before {
+ background: linear-gradient(135deg, #fce2a9 0%, #ffd700 100%);
+}
+
+.personalInfoCard .ant-card-head {
+ background: rgba(255, 255, 255, 0.08);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+ backdrop-filter: blur(8px);
+}
+
+.personalInfoCard .ant-card-head-title {
+ color: #fce2a9;
+ font-size: 18px;
+ font-weight: 600;
+ background: linear-gradient(135deg, #fce2a9, #ffd700);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.personalInfoCard .ant-card-body {
+ background: rgba(255, 255, 255, 0.05);
+ backdrop-filter: blur(8px);
+}
+
+.personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-label {
+ background: rgba(252, 226, 169, 0.1);
+ color: #fce2a9;
+ font-weight: 600;
+ border-color: rgba(255, 255, 255, 0.1);
+}
+
+.personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-content {
+ background: rgba(255, 255, 255, 0.08);
+ color: rgba(255, 255, 255, 0.9);
+ border-color: rgba(255, 255, 255, 0.1);
+}
+
+.personalInfoCard .ant-btn {
+ border-radius: 8px;
+ font-weight: 600;
+ transition: all 0.3s ease;
+ position: relative;
+ overflow: hidden;
+}
+
+.personalInfoCard .ant-btn-primary {
+ background: linear-gradient(135deg, #6a5acd 0%, #a64dd8 100%);
+ border: none;
+ box-shadow: 0 2px 8px rgba(106, 90, 205, 0.3);
+}
+
+.personalInfoCard .ant-btn-primary:hover {
+ background: linear-gradient(135deg, #7b68ee 0%, #b76dd9 100%);
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(106, 90, 205, 0.4);
+}
+
+.personalInfoCard .ant-btn-dangerous {
+ background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
+ border: none;
+ box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
+}
+
+.personalInfoCard .ant-btn-dangerous:hover {
+ background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}
/* 会员卡片样式 */
.vipCard {
background: url('/assets/images/vipcard.png') no-repeat center center;
background-size: cover;
- border-radius: 8px;
- padding: 16px;
- margin-bottom: 16px;
+ border-radius: 12px;
+ padding: 20px;
+ margin-bottom: 20px;
color: #fff;
position: relative;
overflow: hidden;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);
+ border: 1px solid rgba(255, 255, 255, 0.1);
}
.vipCard::before {
@@ -33,9 +126,9 @@
left: 0;
right: 0;
bottom: 0;
- background: linear-gradient(to right, #2B2F36, #4E4C4D);
+ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);
z-index: 0;
- border-radius: 8px;
+ border-radius: 12px;
}
.vipContent {
@@ -53,27 +146,33 @@
}
.vipIcon {
- width: 24px;
- height: 24px;
- margin-right: 6px;
- background-color: rgba(255, 255, 255, 0.2);
+ width: 32px;
+ height: 32px;
+ margin-right: 8px;
+ background-color: rgba(252, 226, 169, 0.15);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
- font-size: 16px;
+ font-size: 18px;
+ color: #fce2a9;
}
.vipTitle {
- font-size: 18px;
- font-weight: bold;
- color: #fce2a9; /* 金色 */
+ font-size: 20px;
+ font-weight: 600;
+ color: #fce2a9;
+ background: linear-gradient(135deg, #fce2a9, #ffd700);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
}
.vipDescription {
- font-size: 12px;
+ font-size: 13px;
color: rgba(255, 255, 255, 0.8);
- margin-bottom: 16px;
+ margin-bottom: 18px;
+ line-height: 1.4;
}
.benefitsGrid {
@@ -81,45 +180,112 @@
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-bottom: 20px;
+ background: rgba(255, 255, 255, 0.08);
+ border-radius: 10px;
+ padding: 16px;
+ backdrop-filter: blur(8px);
+ border: 1px solid rgba(255, 255, 255, 0.1);
}
.benefitItem {
text-align: center;
+ transition: all 0.3s ease;
+}
+
+.benefitItem:hover {
+ transform: translateY(-2px);
}
.benefitIcon {
width: 36px;
height: 36px;
- background-color: rgba(255, 255, 255, 0.15);
- border-radius: 6px;
- margin: 0 auto 6px auto;
+ background-color: rgba(252, 226, 169, 0.15);
+ border-radius: 8px;
+ margin: 0 auto 8px auto;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
+ color: #fce2a9;
+ transition: all 0.3s ease;
+}
+
+.benefitItem:hover .benefitIcon {
+ background-color: rgba(252, 226, 169, 0.25);
+ transform: scale(1.1);
}
.benefitName {
font-size: 11px;
- color: rgba(255, 255, 255, 0.9);
+ color: #fce2a9;
+ font-weight: 500;
+ line-height: 1.3;
}
.activateButton {
- background: linear-gradient(to right, #6a5acd, #a64dd8); /* 紫色渐变 */
- border: none;
- color: white;
- padding: 8px 16px;
- border-radius: 6px;
- font-size: 14px;
- font-weight: bold;
+ background: linear-gradient(135deg, #fce2a9 0%, #ffd700 100%);
+ border: 2px solid rgba(252, 226, 169, 0.3);
+ color: #2B2F36;
+ padding: 14px 24px;
+ border-radius: 12px;
+ font-size: 15px;
+ font-weight: 700;
cursor: pointer;
width: 100%;
- transition: all 0.3s ease;
+ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
+ position: relative;
+ overflow: hidden;
+ box-shadow: 0 4px 16px rgba(252, 226, 169, 0.3);
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+}
- &:hover {
- opacity: 0.9;
- transform: translateY(-1px);
- }
+.activateButton::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: -100%;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
+ transition: left 0.6s ease;
+}
+
+.activateButton::after {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
+ opacity: 0;
+ transition: opacity 0.3s ease;
+}
+
+.activateButton:hover::before {
+ left: 100%;
+}
+
+.activateButton:hover::after {
+ opacity: 1;
+}
+
+.activateButton:hover {
+ background: linear-gradient(135deg, #ffd700 0%, #fce2a9 100%);
+ transform: translateY(-3px) scale(1.02);
+ box-shadow: 0 8px 25px rgba(252, 226, 169, 0.5);
+ border-color: rgba(252, 226, 169, 0.6);
+}
+
+.activateButton:active {
+ transform: translateY(-1px) scale(0.98);
+ box-shadow: 0 4px 12px rgba(252, 226, 169, 0.4);
+}
+
+.activateButton:focus {
+ outline: none;
+ box-shadow: 0 0 0 3px rgba(252, 226, 169, 0.3), 0 4px 16px rgba(252, 226, 169, 0.3);
}
.normalUserCallToAction {
@@ -136,16 +302,17 @@
margin-bottom: 12px;
}
-/* 积分记录卡片样式 */
+/* 积分卡片样式 */
.pointsCard {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- border-radius: 8px;
- padding: 16px;
- margin-bottom: 16px;
+ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);
+ border-radius: 12px;
+ padding: 20px;
+ margin-bottom: 20px;
color: #fff;
+ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);
position: relative;
overflow: hidden;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ border: 1px solid rgba(255, 255, 255, 0.1);
}
.pointsCard::before {
@@ -155,9 +322,13 @@
left: 0;
right: 0;
bottom: 0;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- z-index: 0;
- border-radius: 8px;
+ background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
+ animation: shimmer 3s ease-in-out infinite;
+}
+
+@keyframes shimmer {
+ 0%, 100% { transform: translateX(-100%); }
+ 50% { transform: translateX(100%); }
}
.pointsContent {
@@ -167,27 +338,140 @@
.pointsHeader {
display: flex;
- align-items: center;
justify-content: space-between;
+ align-items: center;
margin-bottom: 12px;
}
+.pointsTitleSection {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+
+.pointsIcon {
+ font-size: 20px;
+ color: #fce2a9;
+ background: rgba(252, 226, 169, 0.1);
+ border-radius: 50%;
+ width: 32px;
+ height: 32px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
.pointsTitle {
- font-size: 16px;
- font-weight: bold;
- color: #fff;
+ font-size: 18px;
+ font-weight: 600;
+ color: #fce2a9;
}
.pointsCount {
- font-size: 20px;
+ font-size: 28px;
font-weight: bold;
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;
+ background-clip: text;
}
.pointsDescription {
- font-size: 12px;
+ font-size: 13px;
color: rgba(255, 255, 255, 0.8);
+ margin-bottom: 18px;
+ line-height: 1.4;
+}
+
+.pointsMethods {
+ background: rgba(255, 255, 255, 0.08);
+ border-radius: 10px;
+ padding: 16px;
+ backdrop-filter: blur(8px);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.methodsTitle {
+ font-size: 14px;
+ font-weight: 600;
+ color: #fce2a9;
margin-bottom: 12px;
+ margin-top: 0;
+}
+
+.methodsGrid {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 12px;
+}
+
+.methodItem {
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 10px;
+ padding: 12px;
+ text-align: center;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ border: 1px solid rgba(255, 255, 255, 0.15);
+ position: relative;
+ overflow: hidden;
+}
+
+.methodItem::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: -100%;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
+ transition: left 0.5s;
+}
+
+.methodItem:hover::before {
+ left: 100%;
+}
+
+.methodItem:hover {
+ background: rgba(255, 255, 255, 0.15);
+ transform: translateY(-1px);
+ box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
+ border-color: rgba(252, 226, 169, 0.3);
+}
+
+.methodIcon {
+ width: 32px;
+ height: 32px;
+ background: rgba(252, 226, 169, 0.15);
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin: 0 auto 8px auto;
+ font-size: 16px;
+ color: #fce2a9;
+ transition: all 0.3s ease;
+}
+
+.methodItem:hover .methodIcon {
+ background: rgba(252, 226, 169, 0.25);
+ transform: scale(1.1);
+}
+
+.methodContent h5 {
+ font-size: 13px;
+ font-weight: 600;
+ color: #fce2a9;
+ margin: 0 0 3px 0;
+}
+
+.methodContent p {
+ font-size: 11px;
+ color: rgba(255, 255, 255, 0.7);
+ margin: 0;
+ line-height: 1.3;
}
/* 订单管理样式 */
@@ -345,15 +629,220 @@
padding: 12px;
}
+ .personalInfoCard .ant-card-head-title {
+ font-size: 16px;
+ }
+
+ .personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-label,
+ .personalInfoCard .ant-descriptions-bordered .ant-descriptions-item-content {
+ font-size: 12px;
+ padding: 8px 12px;
+ }
+
+ .personalInfoCard .ant-btn {
+ font-size: 12px;
+ padding: 4px 12px;
+ height: 32px;
+ }
+
.vipTitle {
+ font-size: 18px;
+ }
+
+ .vipIcon {
+ width: 28px;
+ height: 28px;
font-size: 16px;
}
- .pointsTitle {
+ .benefitsGrid {
+ padding: 12px;
+ gap: 8px;
+ }
+
+ .benefitIcon {
+ width: 32px;
+ height: 32px;
+ font-size: 16px;
+ }
+
+ .benefitName {
+ font-size: 10px;
+ }
+
+ .activateButton {
+ padding: 12px 20px;
font-size: 14px;
+ border-radius: 10px;
+ }
+
+ .pointsTitle {
+ font-size: 16px;
}
.pointsCount {
- font-size: 18px;
+ font-size: 22px;
+ }
+
+ .pointsIcon {
+ width: 28px;
+ height: 28px;
+ font-size: 16px;
+ }
+
+ .methodsGrid {
+ grid-template-columns: 1fr;
+ gap: 10px;
+ }
+
+ .methodItem {
+ padding: 10px;
+ }
+
+ .methodIcon {
+ width: 28px;
+ height: 28px;
+ font-size: 14px;
+ }
+
+ .methodContent h5 {
+ font-size: 12px;
}
+
+ .methodContent p {
+ font-size: 10px;
+ }
+}
+
+/* 积分充值弹窗样式 */
+.rechargeContent {
+ padding: 20px 0;
+}
+
+.currentPoints {
+ background: linear-gradient(135deg, #2B2F36 0%, #4E4C4D 100%);
+ border-radius: 12px;
+ padding: 20px;
+ text-align: center;
+ margin-bottom: 24px;
+ color: #fff;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ box-shadow: 0 4px 16px rgba(43, 47, 54, 0.2);
+}
+
+.pointsLabel {
+ display: block;
+ font-size: 14px;
+ color: rgba(255, 255, 255, 0.8);
+ margin-bottom: 8px;
+}
+
+.pointsValue {
+ display: block;
+ font-size: 28px;
+ font-weight: bold;
+ color: #fce2a9;
+ background: linear-gradient(135deg, #fce2a9, #ffd700);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.rechargeSection {
+ margin-bottom: 24px;
+}
+
+.rechargeSection h4 {
+ font-size: 18px;
+ font-weight: 600;
+ margin-bottom: 8px;
+ color: #333;
+}
+
+.rechargeDescription {
+ font-size: 14px;
+ color: #666;
+ margin-bottom: 20px;
+}
+
+.sliderContainer {
+ margin-bottom: 20px;
+}
+
+.sliderTrack {
+ position: relative;
+ height: 6px;
+ background: #e0e0e0;
+ border-radius: 3px;
+ margin-bottom: 8px;
+}
+
+.sliderHandle {
+ position: absolute;
+ top: -7px;
+ width: 20px;
+ height: 20px;
+ background: linear-gradient(135deg, #6a5acd 0%, #a64dd8 100%);
+ border-radius: 50%;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ box-shadow: 0 2px 8px rgba(106, 90, 205, 0.3);
+ border: 2px solid #fff;
+}
+
+.sliderHandle:hover {
+ transform: scale(1.1);
+ background: linear-gradient(135deg, #7b68ee 0%, #b76dd9 100%);
+}
+
+.sliderLabels {
+ display: flex;
+ justify-content: space-between;
+ font-size: 12px;
+ color: #666;
+}
+
+.amountInput {
+ display: flex;
+ align-items: center;
+ margin-bottom: 16px;
+}
+
+.amountInput span {
+ font-size: 14px;
+ color: #666;
+}
+
+.totalPrice {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 16px;
+ background: #f8f9fa;
+ border-radius: 8px;
+ font-size: 16px;
+ font-weight: 600;
+}
+
+.priceValue {
+ color: #6a5acd;
+ font-size: 20px;
+ font-weight: bold;
+}
+
+.rechargeButton {
+ background: linear-gradient(135deg, #6a5acd 0%, #a64dd8 100%);
+ border: none;
+ height: 48px;
+ font-size: 16px;
+ font-weight: 600;
+ border-radius: 8px;
+ transition: all 0.3s ease;
+ color: #fff;
+}
+
+.rechargeButton:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
+ background: linear-gradient(135deg, #7b68ee 0%, #b76dd9 100%);
}
\ No newline at end of file