This commit is contained in:
张成
2025-10-09 18:00:37 +08:00
parent 4823e1d152
commit 366c18bcea
96 changed files with 16623 additions and 12 deletions

View File

@@ -0,0 +1,108 @@
// 组件映射表 - 将后端返回的组件路径映射到实际的 Vue 组件
// 后端返回的 component 字段需要与这里的 key 对应
// ========== AI 模块 ==========
import AiMessages from '../views/ai/ai_messages.vue'
// ========== 球场模块 ==========
import GameComments from '../views/ball/game_comments.vue'
import GameParticipants from '../views/ball/game_participants.vue'
import Games from '../views/ball/games.vue'
import Venues from '../views/ball/venues.vue'
import WchUsers from '../views/ball/wch_users.vue'
// ========== 业务模块 ==========
import HotCityQr from '../views/business/hot_city_qr.vue'
// ========== 消息模块 ==========
import MsgNotifications from '../views/message/msg_notifications.vue'
// ========== NTRP 模块 ==========
import NtrQuestions from '../views/ntrp/ntr_questions.vue'
import NtrRecords from '../views/ntrp/ntr_records.vue'
// ========== 订单模块 ==========
import FrozenFunds from '../views/order/frozen_funds.vue'
import PayOrders from '../views/order/pay_orders.vue'
import TransferDetails from '../views/order/transfer_details.vue'
import WalletTransactions from '../views/order/wallet_transactions.vue'
import WchWallets from '../views/order/wch_wallets.vue'
// ========== 统计模块 ==========
import Resources from '../views/statistics/resources.vue'
// ========== 用户模块 ==========
import RecommendBlocks from '../views/users/recommend_blocks.vue'
import UserFollows from '../views/users/user_follows.vue'
import UserTracking from '../views/users/user_tracking.vue'
// ========== 自定义组件 ==========
import CustomPage from '../components/CustomPage.vue'
/**
* 组件映射对象
* key: 后端返回的组件路径(去掉 .vue 后缀或保留都可以)
* value: 实际的 Vue 组件
*/
const componentMap = {
// ===== AI 模块 =====
'ai/ai_messages': AiMessages,
'ai/ai_messages.vue': AiMessages,
// ===== 球场模块 =====
'ball/game_comments': GameComments,
'ball/game_comments.vue': GameComments,
'ball/game_participants': GameParticipants,
'ball/game_participants.vue': GameParticipants,
'ball/games': Games,
'ball/games.vue': Games,
'ball/venues': Venues,
'ball/venues.vue': Venues,
'ball/wch_users': WchUsers,
'ball/wch_users.vue': WchUsers,
// ===== 业务模块 =====
'business/hot_city_qr': HotCityQr,
'business/hot_city_qr.vue': HotCityQr,
// ===== 消息模块 =====
'message/msg_notifications': MsgNotifications,
'message/msg_notifications.vue': MsgNotifications,
// ===== NTRP 模块 =====
'ntrp/ntr_questions': NtrQuestions,
'ntrp/ntr_questions.vue': NtrQuestions,
'ntrp/ntr_records': NtrRecords,
'ntrp/ntr_records.vue': NtrRecords,
// ===== 订单模块 =====
'order/frozen_funds': FrozenFunds,
'order/frozen_funds.vue': FrozenFunds,
'order/pay_orders': PayOrders,
'order/pay_orders.vue': PayOrders,
'order/transfer_details': TransferDetails,
'order/transfer_details.vue': TransferDetails,
'order/wallet_transactions': WalletTransactions,
'order/wallet_transactions.vue': WalletTransactions,
'order/wch_wallets': WchWallets,
'order/wch_wallets.vue': WchWallets,
// ===== 统计模块 =====
'statistics/resources': Resources,
'statistics/resources.vue': Resources,
// ===== 用户模块 =====
'users/recommend_blocks': RecommendBlocks,
'users/recommend_blocks.vue': RecommendBlocks,
'users/user_follows': UserFollows,
'users/user_follows.vue': UserFollows,
'users/user_tracking': UserTracking,
'users/user_tracking.vue': UserTracking,
// ===== 自定义组件 =====
'custom/page': CustomPage,
'custom/page.vue': CustomPage
}
export default componentMap