index.js 1.9 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: 'SellPayOk',
    path: '/xianyu/order/sellpayok.html',
    component: () => import(/* webpackChunkName: "order" */ './sell-pay-ok'),
    props: route => ({
      orderCode: route.query.orderCode,
    })
  },
  {
    name: 'BuyPayOk',
    path: '/xianyu/order/buypayok.html',
    component: () => import(/* webpackChunkName: "order" */ './buy-pay-ok'),
    props: route => ({
      orderCode: route.query.orderCode,
    })
  },
  {
    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,
];