export default [
  {
    path: "/shop/info",
    component: () => import("pages/shop/ShopInfoPage.vue"),
    meta: {
      title: "店铺详情",
      Authorization: true
    }
  },
  {
    path: "/shop/share",
    component: () => import("pages/shop/ShopSharePage.vue"),
    meta: {
      title: "店铺二维码",
      Authorization: true
    }
  },
  {
    path: "/shop/wallet",
    component: () => import("pages/shop/WalletPage.vue"),
    meta: {
      title: "店铺余额",
      Authorization: true
    }
  },
  {
    path: "/shop/customer/balance",
    component: () => import("pages/shop/EscrowFundPage.vue"),
    meta: {
      title: "托管余额",
      Authorization: true,
      KeepAlive: true
    }
  },
  {
    path: "/shop/notice/edit",
    component: () => import("pages/shop/NoticeEditPage.vue"),
    meta: {
      title: "设置公告",
      Authorization: true
    }
  },
  {
    path: "/shop/payment/setting",
    component: () => import("pages/shop/PaymentSettingPage.vue"),
    meta: {
      title: "收款管理",
      Authorization: true
    }
  },
  {
    path: "/shop/payment/:payType(alipay)/:payChannel",
    component: () => import("pages/shop/PaymentEditPage.vue"),
    meta: {
      title: "收款方式详情",
      Authorization: true
    }
  },
  {
    path: "/shop/lottery/setting",
    component: () => import("pages/shop/LotterySettingPage.vue"),
    meta: {
      title: "彩种管理",
      Authorization: true
    }
  },
  {
    path: "/shop/lottery/config",
    component: () => import("pages/shop/LotteryItemConfig.vue"),
    meta: {
      Authorization: true
    }
  },
  {
    path: "/shop/worker",
    component: () => import("pages/shop/WorkerManage.vue"),
    meta: {
      title: "员工管理",
      Authorization: true
    }
  },
  {
    path: "/shop/worker/add",
    component: () => import("pages/shop/WorkerAddPage.vue"),
    meta: {
      title: "创建员工账号",
      Authorization: true
    }
  },
  {
    path: "/shop/worker/:workerId/edit",
    component: () => import("pages/shop/WorkerAddPage.vue"),
    meta: {
      title: "编辑员工信息",
      Authorization: true
    }
  },
  // 店铺认证
  {
    path: "/shop/auth",
    component: () => import("pages/shop/ShopAuthManage.vue"),
    meta: {
      title: "店铺认证",
      Authorization: true
    }
  },
  // {
  //   path: "/shop/worker/:workerId",
  //   component: () => import("pages/shop/WorkerInfoPage.vue"),
  //   meta: {
  //     title: "创建员工账号",
  //     Authorization: true,
  //   }
  // },
  // 合作店铺
  {
    path: "/cooperate/manage",
    component: () => import("pages/cooperate/CooperateManage.vue"),
    meta: {
      title: "合作店铺",
      Authorization: true,
      KeepAlive: true
    }
  },
  {
    path: "/cooperate/add",
    component: () => import("pages/cooperate/CooperateAddPage.vue"),
    meta: {
      title: "添加合作店铺",
      Authorization: true,
      KeepAlive: false
    }
  },
  // 申请记录
  {
    path: "/cooperate/apply/history",
    component: () => import("pages/cooperate/CooperateApplyHistory.vue"),
    meta: {
      title: "申请记录",
      Authorization: true,
      KeepAlive: false
    }
  },
  // 待处理合作申请
  {
    path: "/cooperate/pending",
    component: () => import("pages/cooperate/CooperateApplyAudit.vue"),
    // props:{
    //   auditState: 3
    // },
    meta: {
      title: "合作店铺申请",
      Authorization: true,
      KeepAlive: false
    }
  },
  // 合作店铺详情
  {
    path: "/cooperate/:cooperateType(entrust\|entrusted)/:shopCooperateId",
    component: () => import("pages/cooperate/CooperateShopDetail.vue"),
    meta: {
      title: "合作店铺详情",
      Authorization: true,
      KeepAlive: false
    }
  },
  //  添加合作彩种
  {
    path: "/cooperate/:cooperateType(entrust\|entrusted)/:shopCooperateId/lottery/add",
    component: () => import("pages/cooperate/CooperateAddLottery.vue"),
    meta: {
      title: "添加合作彩种",
      Authorization: true,
      KeepAlive: false
    }
  },
  {
    path: "/cooperate/wallet/:shopCooperateId",
    component: () => import("pages/cooperate/CooperateWallet.vue"),
    meta: {
      title: "合作余额明细",
      Authorization: true,
      KeepAlive: false
    }
  },
  // 合作历史订单
  {
    path: "/cooperate/:shopCooperateId/order",
    component: () => import("pages/order/OrderSearchPage.vue"),
    props:{
      type: "cooperate"
    },
    meta: {
      title: "合作历史订单",
      Authorization: true,
      KeepAlive: false
    }
  },
  {
    path: '/agent/shops',
    component: () => import("pages/my/AgentShops.vue"),
    meta: {
      title: '代理店铺',
      Authorization: true,
      KeepAlive: false
    }
  }
];
