index.js 565 Bytes
export const routeNames = {
  BUY_ORDER_DETAIL: 'buyOrderDetail',
  SELL_ORDER_DETAIL: 'sellOrderDetail',
};

const routers = [
  // 购买订单详情
  // code: 订单编码
  {
    name: routeNames.BUY_ORDER_DETAIL,
    path: '/xianyu/:owner/order/detail/:code/:type?',
    component: () => import('./buyer-order-detail'),
  },

  // 出售订单详情
  // code: 订单编码
  {
    name: routeNames.SELL_ORDER_DETAIL,
    path: '/xianyu/:owner/trade/detail/:code/:type?',
    component: () => import('./seller-order-detail'),
  },
];

export default routers;