From cba88a21b3585a685d14cb0a786f3cb6316da8be Mon Sep 17 00:00:00 2001 From: sp mac bookpro 2605 Date: Sat, 13 Jun 2026 11:22:43 +0800 Subject: [PATCH] chore: sync latest changes including K unit formatting --- src/components/Sidebar.tsx | 2 +- src/pages/PointsMallPage/PointsMallPageLogic.ts | 6 +++--- .../components/ConfirmExchangeModal.tsx | 6 +++--- .../components/PointsMallH5Products.tsx | 4 ++-- .../PointsMallPage/components/PointsMallH5Top.tsx | 6 +++--- .../components/PointsMallPageWeb.tsx | 14 +++++++------- src/pages/PointsMallPage/mocks.ts | 2 +- src/pages/StatsPage/components/StatsPageWeb.tsx | 1 - src/pages/StatsPage/components/StatsPointsCard.tsx | 12 ++++++------ 9 files changed, 26 insertions(+), 27 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 607b7bf..c5594e1 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -51,7 +51,7 @@ const NAV_GROUPS: Array<{ { label: '商城', items: [ - { to: '/points-mall', icon: , label: '积分商城' } + { to: '/points-mall', icon: , label: 'Token商城' } ] } ]; diff --git a/src/pages/PointsMallPage/PointsMallPageLogic.ts b/src/pages/PointsMallPage/PointsMallPageLogic.ts index 164a5e8..0803f1a 100644 --- a/src/pages/PointsMallPage/PointsMallPageLogic.ts +++ b/src/pages/PointsMallPage/PointsMallPageLogic.ts @@ -54,10 +54,10 @@ export function usePointsMallPageLogic() { setCategoryId(cats[0].id); } if (meRes.status === 'rejected') { - message.error('获取积分信息失败,请稍后重试'); + message.error('获取Token信息失败,请稍后重试'); } } catch { - message.error('获取积分信息失败,请稍后重试'); + message.error('获取Token信息失败,请稍后重试'); setOverview({ ...MOCK_OVERVIEW, me: { points: 0, level: 'Lv.0' } }); setCategories(MOCK_OVERVIEW.categories); } finally { @@ -148,7 +148,7 @@ export function usePointsMallPageLogic() { return { ...prev, me: { ...prev.me, points: remainingPoints } }; }); } - message.success('已冻结积分并预扣库存,请继续填写收件信息'); + message.success('已冻结Token并预扣库存,请继续填写收件信息'); } catch (e: any) { const msg = e?.response?.data?.message || e?.response?.data?.error || e?.message || '兑换失败,请稍后重试'; message.error(msg); diff --git a/src/pages/PointsMallPage/components/ConfirmExchangeModal.tsx b/src/pages/PointsMallPage/components/ConfirmExchangeModal.tsx index 3b1bc14..ad9c19b 100644 --- a/src/pages/PointsMallPage/components/ConfirmExchangeModal.tsx +++ b/src/pages/PointsMallPage/components/ConfirmExchangeModal.tsx @@ -22,7 +22,7 @@ export default function ConfirmExchangeModal(props: {
{product.name}
- 单价 {product.pointsPrice.toLocaleString()} 积分 + 单价 {product.pointsPrice.toLocaleString()} Token 当前余额 {userPoints.toLocaleString()} @@ -45,11 +45,11 @@ export default function ConfirmExchangeModal(props: {
- 确认后将发起兑换申请并冻结积分/预扣库存,成功后请继续填写收件信息完成兑换。 + 确认后将发起兑换申请并冻结Token/预扣库存,成功后请继续填写收件信息完成兑换。
)} diff --git a/src/pages/PointsMallPage/components/PointsMallH5Products.tsx b/src/pages/PointsMallPage/components/PointsMallH5Products.tsx index 091a00c..e89e7df 100644 --- a/src/pages/PointsMallPage/components/PointsMallH5Products.tsx +++ b/src/pages/PointsMallPage/components/PointsMallH5Products.tsx @@ -53,8 +53,8 @@ export default function PointsMallH5Products({ logic }: Props) { options={[ { value: 'popular', label: '热度优先' }, { value: 'newest', label: '最新上架' }, - { value: 'price_asc', label: '积分从低到高' }, - { value: 'price_desc', label: '积分从高到低' } + { value: 'price_asc', label: 'Token从低到高' }, + { value: 'price_desc', label: 'Token从高到低' } ]} />
{p.pointsPrice >= 1000 ? `${(p.pointsPrice / 1000).toFixed(1)} K` : Number(p.pointsPrice).toLocaleString()} - 积分 + Token
diff --git a/src/pages/PointsMallPage/mocks.ts b/src/pages/PointsMallPage/mocks.ts index c88552e..c3e28e1 100644 --- a/src/pages/PointsMallPage/mocks.ts +++ b/src/pages/PointsMallPage/mocks.ts @@ -13,7 +13,7 @@ export const MOCK_OVERVIEW: PointsMallOverview = { banners: [{ id: 'b1', title: '本期活动', subtitle: 'Up to 25% Off', imageUrl: '', linkUrl: '' }], promoEntries: [ { id: 'p1', title: '促销活动', subtitle: '本周精选', linkUrl: '' }, - { id: 'p2', title: '积分任务', subtitle: '快速涨积分', linkUrl: '' } + { id: 'p2', title: 'Token任务', subtitle: '快速涨Token', linkUrl: '' } ] }; diff --git a/src/pages/StatsPage/components/StatsPageWeb.tsx b/src/pages/StatsPage/components/StatsPageWeb.tsx index 2ecd0cc..aef9e30 100644 --- a/src/pages/StatsPage/components/StatsPageWeb.tsx +++ b/src/pages/StatsPage/components/StatsPageWeb.tsx @@ -23,7 +23,6 @@ export default function StatsPageWeb({ logic }: { logic: StatsPageLogic }) {

调用统计

不只是查看调用数量,而是帮助你感知哪些智能体正在被频繁使用、最近的消息趋势如何,以及整体会话是否健康增长。 - 每消费 1 美元可获得 1000 积分。

diff --git a/src/pages/StatsPage/components/StatsPointsCard.tsx b/src/pages/StatsPage/components/StatsPointsCard.tsx index 8d8efbe..5080548 100644 --- a/src/pages/StatsPage/components/StatsPointsCard.tsx +++ b/src/pages/StatsPage/components/StatsPointsCard.tsx @@ -6,9 +6,9 @@ export default function StatsPointsCard({ logic }: { logic: StatsPageLogic }) { return (
1 USD = 1000 积分} + extra={1 USD = 1000 Token} >
@@ -22,7 +22,7 @@ export default function StatsPointsCard({ logic }: { logic: StatsPageLogic }) {
- 累计积分 + 累计Token
{logic.formatPoints(logic.totalPoints)}
可用于兑换商城商品
@@ -30,10 +30,10 @@ export default function StatsPointsCard({ logic }: { logic: StatsPageLogic }) {
- 积分汇率 + Token汇率
-
1:1000
-
每消费 1 美元获得 1000 积分
+ {/*
1:1000
+
每消费 1 美元获得 1000 Token
*/}