feat(mobile): 新增解忧商行移动端首页、详情与个人中心
This commit is contained in:
@@ -11,6 +11,27 @@ const ListingListPage = lazy(() =>
|
||||
const LoginPage = lazy(() =>
|
||||
import('@/features/auth/LoginPage').then(module => ({ default: module.LoginPage }))
|
||||
)
|
||||
const MobileLayout = lazy(() =>
|
||||
import('@/layouts/MobileLayout').then(module => ({ default: module.MobileLayout }))
|
||||
)
|
||||
const MobileHomePage = lazy(() =>
|
||||
import('@/features/mobile/MobileHomePage').then(module => ({ default: module.MobileHomePage }))
|
||||
)
|
||||
const MobileListingDetailPage = lazy(() =>
|
||||
import('@/features/mobile/MobileListingDetailPage').then(module => ({
|
||||
default: module.MobileListingDetailPage,
|
||||
}))
|
||||
)
|
||||
const MobileProfilePage = lazy(() =>
|
||||
import('@/features/mobile/MobileProfilePage').then(module => ({
|
||||
default: module.MobileProfilePage,
|
||||
}))
|
||||
)
|
||||
const MobilePlaceholderPage = lazy(() =>
|
||||
import('@/features/mobile/MobilePlaceholderPage').then(module => ({
|
||||
default: module.MobilePlaceholderPage,
|
||||
}))
|
||||
)
|
||||
const AdminLoginPage = lazy(() =>
|
||||
import('@/features/admin/AdminLoginPage').then(module => ({ default: module.AdminLoginPage }))
|
||||
)
|
||||
@@ -60,6 +81,32 @@ export function AppRouter() {
|
||||
</Route>
|
||||
|
||||
<Route path="/login" element={<LoginPage />} />
|
||||
<Route path="/m/login" element={<LoginPage />} />
|
||||
|
||||
<Route path="/m" element={<MobileLayout />}>
|
||||
<Route index element={<MobileHomePage />} />
|
||||
<Route path="listings" element={<MobileHomePage />} />
|
||||
<Route path="listings/:id" element={<MobileListingDetailPage />} />
|
||||
<Route
|
||||
path="orders"
|
||||
element={
|
||||
<MobilePlaceholderPage
|
||||
title="订单中心"
|
||||
description="订单列表、交接、归还和结账会在下一批迁移到这里。"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="messages"
|
||||
element={
|
||||
<MobilePlaceholderPage
|
||||
title="消息中心"
|
||||
description="订单群聊、客服会话和系统通知会在下一批迁移到这里。"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Route path="profile" element={<MobileProfilePage />} />
|
||||
</Route>
|
||||
|
||||
<Route path={`${adminBase}/login`} element={<AdminLoginPage />} />
|
||||
<Route path={adminBase} element={<AdminGuard />}>
|
||||
|
||||
Reference in New Issue
Block a user