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) }}
+
+
+ + + +
+