/**
* 全局配置信息， 包含网站标题，  动态组件定义
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/5/8 07:18
*/

/** 应用配置项 **/
export default {
  APP_TITLE: '商福通商户系统', // 设置浏览器title
  ACCESS_TOKEN_NAME: 'iToken' // 设置请求token的名字， 用于请求header 和 localstorage中存在名称
}

let App

export function getGlobalApp() {
  return App
}

export function setGlobalApp(app) {
  App = app
}

/**
 * 与后端开发人员的路由名称及配置项
 * 组件名称 ：{ 默认跳转路径（如果后端配置则已动态配置为准）， 组件渲染 }
 * */
export const asyncRouteDefine = {
  'NoticeInfoPage': { defaultPath: '/notices', component: () => import('@/views/current/postList.vue') }, // 公告列表
  'CurrentUserInfo': { defaultPath: '/currentUserinfo', component: () => import('@/views/current/UserinfoPage.vue') }, // 用户设置
  'AdvertInfoPage': { defaultPath: '/advert', component: () => import('@/views/sys/advert/Advert.vue') }, // 广告配置



  'MainPage': { defaultPath: '/main', component: () => import('@/views/dashboard/Analysis.vue') },
  'SysUserPage': { defaultPath: '/users', component: () => import('@/views/sysuser/SysUserPage.vue') },
  'RolePage': { defaultPath: '/roles', component: () => import('@/views/role/RolePage.vue') },
  'MchInfoPage': { defaultPath: '/info', component: () => import('@/views/info/MchInfoPage.vue') },  // 商户信息
  'MchAppPage': { defaultPath: '/apps', component: () => import('@/views/mchApp/List.vue') }, // 商户应用列表
  'MchQrCodePage': { defaultPath: '/mchQrCodes', component: () => import('@/views/qrcode/List.vue') }, // 商户应用列表
  'PayTestPage': { defaultPath: '/paytest', component: () => import('@/views/payTest/PayTest.vue') }, // 支付测试
  'CashierUrlPage': { defaultPath: '/cashierUrl', component: () => import('@/views/cashierUrl/CashierUrl.vue') }, // 收银台地址
  'MchTransferPage': { defaultPath: '/doTransfer', component: () => import('@/views/transfer/MchTransferPage.vue') }, // 转账

  'PayOrderListPage': { defaultPath: '/payOrder', component: () => import('@/views/order/pay/PayOrderList.vue') }, // 支付订单列表
  'RefundOrderListPage': { defaultPath: '/refundOrder', component: () => import('@/views/order/refund/RefundOrderList.vue') }, // 退款订单列表
  'TransferOrderListPage': { defaultPath: '/transferOrder', component: () => import('@/views/order/transfer/TransferOrderList.vue') }, // 转账订单

  'DivisionReceiverGroupPage': { defaultPath: '/divisionReceiverGroup', component: () => import('@/views/division/group/DivisionReceiverGroupPage.vue') }, // 分账账号组管理
  'DivisionReceiverPage': { defaultPath: '/divisionReceiver', component: () => import('@/views/division/receiver/DivisionReceiverPage.vue') }, // 分账账号管理
  'DivisionRecordPage': { defaultPath: '/divisionRecord', component: () => import('@/views/division/record/DivisionRecordPage.vue') }, // 分账记录
  'DivisionRefundRecordPage': { defaultPath: '/divisionRecord', component: () => import('@/views/division/refund/DivisionRefundRecordPage.vue') }, // 分账回退记录
  'StorePage': { defaultPath: '/store', component: () => import('@/views/store/StorePage.vue') }, // 商户门店管理
  'NoticePage': { defaultPath: '/notice', component: () => import('@/views/notice/NoticePage.vue') }, // 通知配置
  'MchConfigPage': { defaultPath: '/config', component: () => import('@/views/mchconfig/MchConfig.vue') }, // 系统配置

  'SpeakerPage': { defaultPath: '/speaker', component: () => import('@/views/device/speaker/List.vue') }, // 云喇叭管理
  'PrinterPage': { defaultPath: '/printer', component: () => import('@/views/device/printer/List.vue') }, // 云打印管理
  'PosPage': { defaultPath: '/pos', component: () => import('@/views/device/pos/List.vue') }, // 扫码POS
  'PluginCdKeyPage': { defaultPath: '/pluginCdkey', component: () => import('@/views/device/plugin/CdKeyList.vue') }, // 收银插件激活码管理
  'AutoPosPage': { defaultPath: '/auto/pos', component: () => import('@/views/device/autopos/AutoPosList.vue') }, // 智能POS
  'FaceAppPage': { defaultPath: '/face', component: () => import('@/views/device/faceapp/FaceAppList.vue') }, // 刷脸APP管理
  'RuyiPage': { defaultPath: '/ruyi', component: () => import('@/views/device/ruyi/RuyiList.vue') }, // 如意Lite管理

  'MchApplymentListPage': { defaultPath: '/applyments', component: () => import('@/views/applyment/MchApplymentList.vue') }, // 进件

  'StatisticStorePage': { defaultPath: '/statisticStore', component: () => import('@/views/statistic/store/List.vue') }, // 门店
  'StatisticWayPage': { defaultPath: '/statisticWay', component: () => import('@/views/statistic/way/List.vue') }, // 支付方式
  'StatisticTypePage': { defaultPath: '/statisticType', component: () => import('@/views/statistic/type/List.vue') }, // 支付类型
  'TransactionPage': { defaultPath: '/statisticTransaction', component: () => import('@/views/statistic/transaction/List.vue') }, // 交易报表
  'TerminalPage': { defaultPath: '/cashouts', component: () => import('@/views/terminal/TerminalPage.vue') }, // 终端管理

  'DeviceCountPage': { defaultPath: '/statisticDevice', component: () => import('@/views/statistic/device/List.vue') }, // 设备统计

  'MemberConfigPage': { defaultPath: '/memberConfig', component: () => import('@/views/member/config/MemberConfigPage.vue') }, // 会员配置
  'MemberPage': { defaultPath: '/memberInfo', component: () => import('@/views/member/memberInfo/MemberPage.vue') }, // 会员管理
  'RechargeRulePage': { defaultPath: '/memberRechargeRule', component: () => import('@/views/member/rechargeRule/RechargeRulePage.vue') }, // 会员充值规则
  'MemberAccountPage': { defaultPath: '/memberAccount', component: () => import('@/views/member/account/MemberAccountPage.vue') }, // 会员账户流水
  'MemberRechargePage': { defaultPath: '/memberRecharge', component: () => import('@/views/member/recharge/MemberRechargePage.vue') }, // 会员充值记录


  'ProductListPage': { defaultPath: '/productCenter', component: () => import('@/views/product/productList.vue') }, // 产品中心  
  'ProductDeatilPage': { defaultPath: '/productDetail', component: () => import('@/views/product/productDeatil.vue') }, // 产品详情
  'productSignPage': { defaultPath: '/productSign', component: () => import('@/views/product/productSign.vue') }, // 产品开通


  'MchBusinessListPage': { defaultPath: '/business', component: () => import('@/views/applyment/MchBusinessList.vue') }, // 商户


  'MchApplymentListOnePage': { defaultPath: '/applymentsOne', component: () => import('@/views/applyment/MchApplymentListOne.vue') }, // 申请单



  'OrderSettleListPage': { defaultPath: '/settleLog', component: () => import('@/views/order/settle/settleList.vue') }, // 结算数据



  'MchTransferOverviewPage': { defaultPath: '/overview', component: () => import('@/views/transfer/MchOverview.vue') }, // 资金总览
  'MchFundRechargePage': { defaultPath: '/fundRecharge', component: () => import('@/views/transfer/MchFundRecharge.vue') }, // 充值
  'MchFundWithdrawalPage': { defaultPath: '/fundWithdrawal', component: () => import('@/views/transfer/MchFundWithdrawal.vue') }, // 提现
  'MchTransferLogPage': { defaultPath: '/fundLog', component: () => import('@/views/transfer/history/HistoryPanel.vue') }, // 资金明细

  'MchTransferFundListPage': { defaultPath: '/fundList', component: () => import('@/views/transfer/history/FundList.vue') }, // 资金管理


  'StatisticDiscussPage': { defaultPath: '/statisticDiscuss', component: () => import('@/views/statistic/discuss/List.vue') }, // 商户统计


  'MarketListPage': { defaultPath: '/markets', component: () => import('@/views/product/markets/MarketsList.vue') }, // 方案大全
  'ProductLogListPage': { defaultPath: '/productLog', component: () => import('@/views/product/log/List.vue') }, // 开通记录



  'FundPage': { defaultPath: '/mainFund', component: () => import('@/views/dashboard/Analysis.vue') },
  'OrderPage': { defaultPath: '/mainOrder', component: () => import('@/views/dashboard/Analysis.vue') },
  'MchPage': { defaultPath: '/mainMch', component: () => import('@/views/dashboard/Analysis.vue') },
  'ProductPage': { defaultPath: '/mainProduct', component: () => import('@/views/dashboard/Analysis.vue') },
  'MembersPage': { defaultPath: '/mainMembers', component: () => import('@/views/dashboard/Analysis.vue') },
  'StatisticPage': { defaultPath: '/mainStatistic', component: () => import('@/views/dashboard/Analysis.vue') },
  'UsersPage': { defaultPath: '/mainUsers', component: () => import('@/views/dashboard/Analysis.vue') },



  'CustomerPageList': { defaultPath: '/redCustomerList', component: () => import('@/views/red/customer/CustomerList.vue') },
  'CustomerPageRed': { defaultPath: '/redCustomerRed', component: () => import('@/views/red/customer/CustomerRed.vue') },
  'RedPageList': { defaultPath: '/redRedList', component: () => import('@/views/red/redList.vue') },
  'RedPageRule': { defaultPath: '/redRedRule', component: () => import('@/views/red/redRule.vue') },
  'UserOut': { defaultPath: '/out', component: () => import('@/views/out/index.vue') },

  'DividePage': { defaultPath: '/divideAccounts', component: () => import('@/views/divide/List.vue') },



  //代付
  'DfTaskPage': { defaultPath: '/dfList', component: () => import('@/views/paydf/task/List.vue') }, // 任务
  'AqfListPage': { defaultPath: '/aqfList', component: () => import('@/views/paydf/aqf/List.vue') }, // 付款账号
  'AqfUserListPage': { defaultPath: '/aqfUserList', component: () => import('@/views/paydf/aqf/userList.vue') }, // 收款账号
  'TaskSettleListPage': { defaultPath: '/taskSettleList', component: () => import('@/views/paydf/settle/List.vue') }, // 结算
  'SettleStatisticsDataPage': { defaultPath: '/settleStatisticsList', component: () => import('@/views/paydf/aqf/settleStatistics.vue') }, // 基础信息

    //交易路由
    'ProductTradeRouteListPage': { defaultPath: '/tradeRouteList', component: () => import('@/views/product/trade/routes/List.vue') }, // 支付路由管理
    'ProductTradeRouteInfoPage': { defaultPath: '/tradeRouteInfo', component: () => import('@/views/product/trade/routes/Info.vue') }, // 基础信息
    'ProductTradeRouteRotationPage': { defaultPath: '/tradeRouteRotation', component: () => import('@/views/product/trade/routes/Rotation.vue') }, // 支付路由数据
    'ProductTradeRouteStrategyPage': { defaultPath: '/tradeRouteStrategy', component: () => import('@/views/product/trade/routes/Strategy.vue') }, //支付路由策略
    'OrderLxLargeScreenPage': { defaultPath: '/orderLxLargeScreen', component: () => import('@/views/dashboard/OrderLxLargeScreen.vue') }, // 数据大屏
    'ProductTradeRouteStrategyLogPage': { defaultPath: '/tradeRouteStrategyLog', component: () => import('@/views/product/trade/routes/StrategyLog.vue') }, // 策略运行记录


    //交易分账
//交易分账
  'TradeDivideAccountsListPage': { defaultPath: '/tradeDivideAccountsList', component: () => import('@/views/product/trade/divideAccounts/TaskList.vue') }, // 分账任务管理
  'TradeDivideAccountsInfoPage': { defaultPath: '/tradeDivideAccountsInfo', component: () => import('@/views/product/trade/divideAccounts/Info.vue') }, // 基础信息
  'TradeDivideAccountsDividerPage': { defaultPath: '/tradeDivideAccountsDivider', component: () => import('@/views/product/trade/divideAccounts/Divider.vue') }, // 分账分出方
  'TradeDivideAccountsReceiverPage': { defaultPath: '/tradeDivideAccountsReceiver', component: () => import('@/views/product/trade/divideAccounts/Receiver.vue') }, // 分账接收方
  'TradeDivideAccountsDivideLogPage': { defaultPath: '/tradeDivideAccountsDivideLog', component: () => import('@/views/product/trade/divideAccounts/DivideLog.vue') }, //分账记录
  'OrderZnFzLargeScreenPage': { defaultPath: '/orderZnFzLargeScreen', component: () => import('@/views/dashboard/OrderZnFzLargeScreen.vue') }, // 智能分账数据大屏
  'TradeDivideAccountsDivideBackLog': { defaultPath: '/tradeDivideAccountsDivideBackLog', component: () => import('@/views/product/trade/divideAccounts/DivideBackLog.vue') }, // 分账回退记录


}
