fix: expose referral code operations in admin
This commit is contained in:
1 parent
01378cfa8b
commit
9d4ce5d036
2 files changed
+16
-1
No files matched your search
@@ -63,6 +63,18 @@ export const usersSection = {
|
|||||||
canonicalDomain: 'users',
|
canonicalDomain: 'users',
|
||||||
section: 'credits',
|
section: 'credits',
|
||||||
}),
|
}),
|
||||||
|
customPage({
|
||||||
|
key: 'users-referral-codes',
|
||||||
|
name: 'UsersReferralCodes',
|
||||||
|
label: '推广码运营',
|
||||||
|
route: '/users/referral-codes',
|
||||||
|
component: 'NativeOpsRedirect',
|
||||||
|
status: 'redirect',
|
||||||
|
title: '推广码运营',
|
||||||
|
desc: '按用户管理统一 Ref 推广码,查看绑定统计,并执行生成、禁用或重新生成。',
|
||||||
|
nativeAdminPath: 'users.php?page=aksrt_referral_codes',
|
||||||
|
secondaryEntry: true,
|
||||||
|
}),
|
||||||
customPage({
|
customPage({
|
||||||
key: 'users-verify',
|
key: 'users-verify',
|
||||||
name: 'UsersVerify',
|
name: 'UsersVerify',
|
||||||
|
|||||||
@@ -36,6 +36,10 @@ function createRouteMeta(page) {
|
|||||||
meta.canonicalDomain = page.canonicalDomain
|
meta.canonicalDomain = page.canonicalDomain
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (page.nativeAdminPath) {
|
||||||
|
meta.nativeAdminPath = page.nativeAdminPath
|
||||||
|
}
|
||||||
|
|
||||||
if (page.section) {
|
if (page.section) {
|
||||||
meta.section = page.section
|
meta.section = page.section
|
||||||
}
|
}
|
||||||
@@ -80,7 +84,6 @@ const NATIVE_OPS_REDIRECTS = [
|
|||||||
{ path: '/payment/income', title: '创作分成运营', nativeAdminPath: 'admin.php?page=aksrt_income' },
|
{ path: '/payment/income', title: '创作分成运营', nativeAdminPath: 'admin.php?page=aksrt_income' },
|
||||||
{ path: '/payment/rebate', title: '返佣管理', nativeAdminPath: 'admin.php?page=aksrt_rebate' },
|
{ path: '/payment/rebate', title: '返佣管理', nativeAdminPath: 'admin.php?page=aksrt_rebate' },
|
||||||
{ path: '/users/messages', title: '消息中心', nativeAdminPath: 'users.php?page=aksrt_messages' },
|
{ path: '/users/messages', title: '消息中心', nativeAdminPath: 'users.php?page=aksrt_messages' },
|
||||||
{ path: '/users/referral-codes', title: '推广码运营', nativeAdminPath: 'users.php?page=aksrt_referral_codes' },
|
|
||||||
{ path: '/users/ban', title: '禁封管理', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=restrictions' },
|
{ path: '/users/ban', title: '禁封管理', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=restrictions' },
|
||||||
{ path: '/users/report', title: '禁封/举报', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=reports' },
|
{ path: '/users/report', title: '禁封/举报', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=reports' },
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user