fix: expose referral code operations in admin
This commit is contained in:
@@ -63,6 +63,18 @@ export const usersSection = {
|
||||
canonicalDomain: 'users',
|
||||
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({
|
||||
key: 'users-verify',
|
||||
name: 'UsersVerify',
|
||||
|
||||
@@ -36,6 +36,10 @@ function createRouteMeta(page) {
|
||||
meta.canonicalDomain = page.canonicalDomain
|
||||
}
|
||||
|
||||
if (page.nativeAdminPath) {
|
||||
meta.nativeAdminPath = page.nativeAdminPath
|
||||
}
|
||||
|
||||
if (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/rebate', title: '返佣管理', nativeAdminPath: 'admin.php?page=aksrt_rebate' },
|
||||
{ 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/report', title: '禁封/举报', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=reports' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user