新增摸大红业务并修复后台链接按钮白字
支持分类筛选、搜索、下单支付建群与固定二维码;合并迁移种子数据;后台表格编辑/详情链接恢复主题色可见。
This commit is contained in:
@@ -72,6 +72,30 @@ export const adminRoutes: RouteRecordRaw[] = [
|
||||
component: () => import('@/features/admin/views/AdminListingReviewView.vue'),
|
||||
meta: adminMeta,
|
||||
},
|
||||
{
|
||||
path: adminPath('mohong/categories'),
|
||||
name: 'admin-mohong-categories',
|
||||
component: () => import('@/features/admin/views/AdminMohongCategoriesView.vue'),
|
||||
meta: adminMeta,
|
||||
},
|
||||
{
|
||||
path: adminPath('mohong/products'),
|
||||
name: 'admin-mohong-products',
|
||||
component: () => import('@/features/admin/views/AdminMohongProductsView.vue'),
|
||||
meta: adminMeta,
|
||||
},
|
||||
{
|
||||
path: adminPath('mohong/orders'),
|
||||
name: 'admin-mohong-orders',
|
||||
component: () => import('@/features/admin/views/AdminMohongOrdersView.vue'),
|
||||
meta: adminMeta,
|
||||
},
|
||||
{
|
||||
path: adminPath('mohong/config'),
|
||||
name: 'admin-mohong-config',
|
||||
component: () => import('@/features/admin/views/AdminMohongConfigView.vue'),
|
||||
meta: adminMeta,
|
||||
},
|
||||
{
|
||||
path: adminPath('disputes'),
|
||||
name: 'admin-disputes',
|
||||
|
||||
@@ -23,6 +23,9 @@ export function getMobilePath(path: string): string {
|
||||
if (path === '/listings' || path.startsWith('/listings/')) {
|
||||
return `/m${path}`
|
||||
}
|
||||
if (path === '/mohong' || path.startsWith('/mohong/')) {
|
||||
return `/m${path}`
|
||||
}
|
||||
if (path === '/orders' || path.startsWith('/orders/')) {
|
||||
return `/m${path}`
|
||||
}
|
||||
@@ -65,6 +68,9 @@ export function getPcPath(path: string): string {
|
||||
if (subPath === '/listings' || subPath.startsWith('/listings/')) {
|
||||
return subPath
|
||||
}
|
||||
if (subPath === '/mohong' || subPath.startsWith('/mohong/')) {
|
||||
return subPath
|
||||
}
|
||||
if (subPath === '/orders' || subPath.startsWith('/orders/')) {
|
||||
return subPath
|
||||
}
|
||||
|
||||
@@ -91,6 +91,30 @@ export const mobileRoutes: RouteRecordRaw[] = [
|
||||
component: () => import('@/features/wallet/views/MobileWithdrawalView.vue'),
|
||||
meta: { layout: 'blank', requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/m/mohong',
|
||||
name: 'mobile-mohong-list',
|
||||
component: () => import('@/features/mohong/views/MobileMohongListView.vue'),
|
||||
meta: { layout: 'blank' },
|
||||
},
|
||||
{
|
||||
path: '/m/mohong/orders',
|
||||
name: 'mobile-mohong-orders',
|
||||
component: () => import('@/features/mohong/views/MobileMohongOrdersView.vue'),
|
||||
meta: { layout: 'blank', requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/m/mohong/orders/:id',
|
||||
name: 'mobile-mohong-order-detail',
|
||||
component: () => import('@/features/mohong/views/MobileMohongOrderDetailView.vue'),
|
||||
meta: { layout: 'blank', requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/m/mohong/:id',
|
||||
name: 'mobile-mohong-detail',
|
||||
component: () => import('@/features/mohong/views/MobileMohongDetailView.vue'),
|
||||
meta: { layout: 'blank' },
|
||||
},
|
||||
{
|
||||
path: '/m/orders',
|
||||
name: 'mobile-orders',
|
||||
|
||||
@@ -16,4 +16,27 @@ export const publicRoutes: RouteRecordRaw[] = [
|
||||
name: 'listing-detail',
|
||||
component: () => import('@/features/listings/views/ListingDetailView.vue'),
|
||||
},
|
||||
// 摸大红 PC 端;移动端访问会被守卫重写到 /m/mohong*
|
||||
{
|
||||
path: '/mohong',
|
||||
name: 'mohong-list',
|
||||
component: () => import('@/features/mohong/views/MohongListView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/mohong/orders',
|
||||
name: 'mohong-orders',
|
||||
component: () => import('@/features/mohong/views/MohongOrdersView.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/mohong/orders/:id',
|
||||
name: 'mohong-order-detail',
|
||||
component: () => import('@/features/mohong/views/MohongOrderDetailView.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/mohong/:id',
|
||||
name: 'mohong-detail',
|
||||
component: () => import('@/features/mohong/views/MohongDetailView.vue'),
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user