diff --git a/pages.config.ts b/pages.config.ts index eb5476f..2177d27 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -7,12 +7,12 @@ export default defineUniPages({ { path: 'pages/privacy-consent', style: { navigationStyle: 'custom', navigationBarTitleText: '隐私政策授权' } }, { path: 'pages/agent', style: { navigationBarTitleText: '代理中心' } }, { path: 'pages/agent-manage-agreement', style: { navigationBarTitleText: '代理管理协议', navigationStyle: 'default' } }, - { path: 'pages/agent-promote-details', auth: true, style: { navigationBarTitleText: '直推收益明细' } }, - { path: 'pages/agent-rewards-details', auth: true, style: { navigationBarTitleText: '代理奖励收益明细' } }, + { path: 'pages/agent-promote-details', auth: true, style: { navigationBarTitleText: '收益明细' } }, + { path: 'pages/agent-rewards-details', auth: true, style: { navigationBarTitleText: '奖励明细' } }, { path: 'pages/agent-service-agreement', style: { navigationBarTitleText: '信息技术服务合同', navigationStyle: 'default' } }, { path: 'pages/agent-vip', auth: true, style: { navigationBarTitleText: '代理会员' } }, - { path: 'pages/agent-vip-apply', auth: true, style: { navigationBarTitleText: 'VIP申请' } }, - { path: 'pages/agent-vip-config', auth: true, style: { navigationBarTitleText: 'VIP配置' } }, + { path: 'pages/agent-vip-apply', auth: true, style: { navigationBarTitleText: 'VIP代理申请' } }, + { path: 'pages/agent-vip-config', auth: true, style: { navigationBarTitleText: '代理会员报告配置' } }, { path: 'pages/authorization', style: { navigationBarTitleText: '授权书', navigationStyle: 'default' } }, { path: 'pages/help', style: { navigationBarTitleText: '帮助中心' } }, { path: 'pages/help-detail', style: { navigationBarTitleText: '帮助详情' } }, @@ -27,11 +27,11 @@ export default defineUniPages({ { path: 'pages/not-found', style: { navigationBarTitleText: '页面不存在' } }, { path: 'pages/payment-result', auth: true, style: { navigationBarTitleText: '支付结果' } }, { path: 'pages/privacy-policy', style: { navigationBarTitleText: '隐私政策', navigationStyle: 'default' } }, - { path: 'pages/promote', auth: true, style: { navigationBarTitleText: '推广管理' } }, + { path: 'pages/promote', auth: true, style: { navigationBarTitleText: '推广' } }, { path: 'pages/report-example-webview', style: { navigationBarTitleText: '示例报告', navigationStyle: 'default' } }, { path: 'pages/report-result-webview', auth: true, style: { navigationBarTitleText: '报告结果', navigationStyle: 'default' } }, { path: 'pages/report-share', style: { navigationBarTitleText: '报告分享', navigationStyle: 'default' } }, - { path: 'pages/subordinate-detail', auth: true, style: { navigationBarTitleText: '下级详情' } }, + { path: 'pages/subordinate-detail', auth: true, style: { navigationBarTitleText: '下级贡献详情' } }, { path: 'pages/subordinate-list', auth: true, style: { navigationBarTitleText: '我的下级' } }, { path: 'pages/user-agreement', style: { navigationBarTitleText: '用户协议', navigationStyle: 'default' } }, { path: 'pages/withdraw', auth: true, style: { navigationBarTitleText: '提现' } }, diff --git a/src/components.d.ts b/src/components.d.ts index d997cae..dc5a1a1 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -10,6 +10,7 @@ declare module 'vue' { AccountCancelAgreement: typeof import('./components/AccountCancelAgreement.vue')['default'] AgentApplicationForm: typeof import('./components/AgentApplicationForm.vue')['default'] BindPhoneDialog: typeof import('./components/BindPhoneDialog.vue')['default'] + EmptyState: typeof import('./components/EmptyState.vue')['default'] ImageSaveGuide: typeof import('./components/ImageSaveGuide.vue')['default'] InquireForm: typeof import('./components/InquireForm.vue')['default'] LoginDialog: typeof import('./components/LoginDialog.vue')['default'] diff --git a/src/components/EmptyState.vue b/src/components/EmptyState.vue new file mode 100644 index 0000000..e783f70 --- /dev/null +++ b/src/components/EmptyState.vue @@ -0,0 +1,12 @@ + + + diff --git a/src/pages/agent-promote-details.vue b/src/pages/agent-promote-details.vue index 6c19c30..5439976 100644 --- a/src/pages/agent-promote-details.vue +++ b/src/pages/agent-promote-details.vue @@ -242,11 +242,9 @@ onReachBottom(() => { 加载中... - - 暂无记录 - + - + diff --git a/src/pages/agent-rewards-details.vue b/src/pages/agent-rewards-details.vue index 2e6aa15..f497691 100644 --- a/src/pages/agent-rewards-details.vue +++ b/src/pages/agent-rewards-details.vue @@ -138,11 +138,9 @@ onReachBottom(() => { 加载中... - - 暂无记录 - + - + diff --git a/src/pages/agent-vip-config.vue b/src/pages/agent-vip-config.vue index 4903db3..ec8e371 100644 --- a/src/pages/agent-vip-config.vue +++ b/src/pages/agent-vip-config.vue @@ -1,5 +1,135 @@ + + - - diff --git a/src/pages/history-query.vue b/src/pages/history-query.vue index 1d6d23d..1a6ab49 100644 --- a/src/pages/history-query.vue +++ b/src/pages/history-query.vue @@ -134,11 +134,9 @@ function statusClass(state) { 加载中... - - 暂无记录 - + - + diff --git a/src/pages/subordinate-detail.vue b/src/pages/subordinate-detail.vue index 2a54bb2..42074fd 100644 --- a/src/pages/subordinate-detail.vue +++ b/src/pages/subordinate-detail.vue @@ -45,16 +45,8 @@ function getAgentLevelLabel(value) { } // 获取收益列表 -function mergeUniqueById(oldList, newList) { - const map = new Map() - const resolveKey = (item, index) => String(item?.id ?? item?.order_id ?? `${item?.create_time || ''}_${item?.type || ''}_${index}`) - oldList.forEach((item, index) => { - map.set(resolveKey(item, index), item) - }) - newList.forEach((item, index) => { - map.set(resolveKey(item, oldList.length + index), item) - }) - return Array.from(map.values()) +function appendList(oldList, newList) { + return oldList.concat(newList) } async function fetchRewardDetails(reset = false) { @@ -177,7 +169,7 @@ async function fetchRewardDetails(reset = false) { total.value = data.value.data.total || 0 // 处理列表数据 const list = data.value.data.list || [] - rewardDetails.value = reset ? list : mergeUniqueById(rewardDetails.value, list) + rewardDetails.value = reset ? list : appendList(rewardDetails.value, list) const isLastPage = list.length < pageSize || rewardDetails.value.length >= total.value hasMore.value = !isLastPage loadMoreState.value = isLastPage ? 'finished' : 'loading' @@ -334,12 +326,8 @@ function formatNumber(num) { 贡献统计 - + @@ -359,20 +347,18 @@ function formatNumber(num) { - + 贡献记录 - - - 暂无贡献记录 - - + + + - + - + {{ getRewardTypeDescription(item.type) }} @@ -392,7 +378,7 @@ function formatNumber(num) { 加载中... - + diff --git a/src/pages/subordinate-list.vue b/src/pages/subordinate-list.vue index cf98b06..aea44a6 100644 --- a/src/pages/subordinate-list.vue +++ b/src/pages/subordinate-list.vue @@ -128,7 +128,7 @@ onReachBottom(() => { diff --git a/src/pages/withdraw-details.vue b/src/pages/withdraw-details.vue index f81ea08..c1310b4 100644 --- a/src/pages/withdraw-details.vue +++ b/src/pages/withdraw-details.vue @@ -198,11 +198,9 @@ onReachBottom(() => { 加载中... - - 暂无提现记录 - + - +