From 66247690326ce2789900fc9110c08b3502cea655 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 29 May 2026 00:56:30 +0800 Subject: [PATCH] =?UTF-8?q?perf(trade):=20=E4=BC=98=E5=8C=96=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=B4=AD=E4=B9=B0=E9=A1=B5=E9=9D=A2=E7=9A=84=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E5=B1=95=E7=A4=BA=E5=92=8C=E6=8A=98=E6=89=A3=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=EF=BC=8C=E6=94=AF=E6=8C=81=E8=AE=A2=E5=8D=95=E5=8F=96?= =?UTF-8?q?=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/router/source/modules/certd.ts | 30 ++-- .../src/views/certd/invite/crud-invitees.tsx | 31 ++-- .../src/views/certd/invite/crud-logs.tsx | 10 +- .../src/views/certd/invite/index.vue | 158 +++++++++++++++++- .../src/views/certd/suite/order-modal.vue | 79 +++++++-- .../src/views/certd/suite/product-info.vue | 87 +++++++++- .../certd-client/src/views/certd/trade/api.ts | 14 +- .../src/views/certd/trade/crud.tsx | 72 ++++---- .../src/views/certd/trade/index.vue | 30 +--- .../src/views/certd/wallet/crud-logs.tsx | 20 ++- .../src/views/sys/suite/invite/crud-level.tsx | 3 +- .../sys/suite/invite/crud-user-level.tsx | 29 ++-- .../src/views/sys/suite/invite/level.vue | 7 +- .../src/views/sys/suite/trade/api.ts | 14 +- .../src/views/sys/suite/trade/crud.tsx | 78 +++++---- .../src/views/sys/suite/trade/index.vue | 30 +--- 16 files changed, 452 insertions(+), 240 deletions(-) diff --git a/packages/ui/certd-client/src/router/source/modules/certd.ts b/packages/ui/certd-client/src/router/source/modules/certd.ts index 622d78be0..9b01955d6 100644 --- a/packages/ui/certd-client/src/router/source/modules/certd.ts +++ b/packages/ui/certd-client/src/router/source/modules/certd.ts @@ -370,21 +370,6 @@ export const certdResources = [ keepAlive: true, }, }, - { - title: "certd.myWallet", - name: "MyWallet", - path: "/certd/wallet", - component: "/certd/wallet/index.vue", - meta: { - show: () => { - const settingStore = useSettingStore(); - return settingStore.isComm; - }, - icon: "ion:wallet-outline", - auth: true, - keepAlive: true, - }, - }, { title: "certd.inviteCommission", name: "InviteCommission", @@ -400,6 +385,21 @@ export const certdResources = [ keepAlive: true, }, }, + { + title: "certd.myWallet", + name: "MyWallet", + path: "/certd/wallet", + component: "/certd/wallet/index.vue", + meta: { + show: () => { + const settingStore = useSettingStore(); + return settingStore.isComm; + }, + icon: "ion:wallet-outline", + auth: true, + keepAlive: true, + }, + }, { title: "certd.paymentReturn", name: "PaymentReturn", diff --git a/packages/ui/certd-client/src/views/certd/invite/crud-invitees.tsx b/packages/ui/certd-client/src/views/certd/invite/crud-invitees.tsx index 55425747f..6a6f37e9e 100644 --- a/packages/ui/certd-client/src/views/certd/invite/crud-invitees.tsx +++ b/packages/ui/certd-client/src/views/certd/invite/crud-invitees.tsx @@ -14,21 +14,30 @@ export default function (): CreateCrudOptionsRet { toolbar: { show: false }, rowHandle: { show: false }, columns: { - inviteeUserId: { - title: "被推广用户ID", - type: "number", - column: { width: 140 }, - }, - inviteCode: { - title: "推广码", - type: "text", - column: { width: 160 }, - }, createTime: { - title: "推广时间", + title: "邀请时间", type: "datetime", column: { width: 180 }, }, + simpleUser: { + title: "被邀请用户名", + type: "text", + column: { + minWidth: 180, + cellRender({ row }) { + const simpleUser = row.simpleUser; + if (!simpleUser) { + return row.inviteeUserId ? `用户${row.inviteeUserId} (${row.inviteeUserId})` : "-"; + } + return simpleUser.displayName || `${simpleUser.username || "-"} (${simpleUser.id})`; + }, + }, + }, + inviteCode: { + title: "邀请码", + type: "text", + column: { width: 160 }, + }, }, }, }; diff --git a/packages/ui/certd-client/src/views/certd/invite/crud-logs.tsx b/packages/ui/certd-client/src/views/certd/invite/crud-logs.tsx index 8b702a981..0637f05b5 100644 --- a/packages/ui/certd-client/src/views/certd/invite/crud-logs.tsx +++ b/packages/ui/certd-client/src/views/certd/invite/crud-logs.tsx @@ -15,6 +15,11 @@ export default function (): CreateCrudOptionsRet { toolbar: { show: false }, rowHandle: { show: false }, columns: { + createTime: { + title: "时间", + type: "datetime", + column: { width: 180 }, + }, amount: { title: "收益金额", type: "number", @@ -56,11 +61,6 @@ export default function (): CreateCrudOptionsRet { type: "text", column: { minWidth: 220 }, }, - createTime: { - title: "时间", - type: "datetime", - column: { width: 180 }, - }, }, }, }; diff --git a/packages/ui/certd-client/src/views/certd/invite/index.vue b/packages/ui/certd-client/src/views/certd/invite/index.vue index 6896228c0..9ee1ca178 100644 --- a/packages/ui/certd-client/src/views/certd/invite/index.vue +++ b/packages/ui/certd-client/src/views/certd/invite/index.vue @@ -13,8 +13,14 @@
-
{{ item.title }}
-
{{ item.value }}
+
+
{{ item.title }}
+
{{ item.value }}
+
+
+
可提现 {{ moneyText(inviteInfo.wallet?.availableAmount) }}
+ 提现 +
@@ -47,14 +53,18 @@ 我的等级
{{ inviteInfo.currentLevel?.name || "未设置" }} - {{ inviteInfo.currentLevel.commissionRate }}% + + 返佣比例 + {{ inviteInfo.currentLevel.commissionRate }}% + + 好友付费后按此比例计算佣金
- + @@ -72,6 +82,17 @@
推广越多,等级越高,返佣比例越高
+
+
+
当前累计推广金额
+
¥ {{ amountToYuan(inviteInfo.summary.promotionAmount) }}
+
+
+ + + +
+