index.js 1.6 KB
import PriceChange from './price-change';
import OrderList from './order-list';
import OrderDetail from './order-detail';

export default [
  {
    name: 'OrderSellConfirm',
    path: '/xianyu/order/sellconfirm.html',
    component: () => import(/* webpackChunkName: "order" */ './seller-confirm'),
    props: route => ({
      productId: route.query.productId,
      storageId: route.query.storageId
    })
  },
  {
    name: 'OrderPay',
    path: '/xianyu/order/pay.html',
    component: () => import(/* webpackChunkName: "order" */ './pay'),
    props: route => ({
      orderCode: route.query.orderCode,
      payParams: route.query.payParams,
    }),
  },
  {
    name: 'OrderBuyConfirm',
    path: '/xianyu/order/buyconfirm.html',
    component: () => import(/* webpackChunkName: "order" */ './buyer-confirm'),
    props: route => ({
      productId: route.query.productId,
      storageId: route.query.storageId
    })
  },
  {
    name: 'PayOk',
    path: '/xianyu/order/ok.html',
    component: () => import(/* webpackChunkName: "order" */ './pay-ok'),
  },
  {
    name: 'buyerAskOrder', // 买家求购确认
    path: '/xianyu/order/buyeraskorder.html',
    component: () => import('./buyer-ask-order'),
  },

  // 物流信息
  // code: 订单编码
  {
    name: 'orderLogisticsInfo',
    path: '/xianyu/:owner/order/logistics/:code',
    component: () => import('./order-logistics-info'),
  },
  {
    name: 'order.deliver',
    path: '/xianyu/order/deliver/:skup/:code',
    component: () =>
      import(/* webpackChunkName: "order.deliver" */ './deliver'),
  },
  ...PriceChange,
  ...OrderList,
  ...OrderDetail,
];