| | |
| | | Vue.use(Router) |
| | | |
| | | const routerPush = Router.prototype.push |
| | | Router.prototype.push = function push (location) { |
| | | Router.prototype.push = function push(location) { |
| | | return routerPush.call(this, location).catch(error => error) |
| | | } |
| | | |
| | |
| | | name: 'home', |
| | | meta: { |
| | | title: '首页', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 0 |
| | | }, |
| | | component: Home |
| | | }, { |
| | |
| | | meta: { |
| | | title: '购买', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 1 |
| | | }, |
| | | component: Buy |
| | | }, { |
| | |
| | | meta: { |
| | | title: 'new', |
| | | requireAuth: false, |
| | | hasHeader: false |
| | | hasHeader: false, |
| | | index: 2 |
| | | }, |
| | | component: NewPage |
| | | }, |
| | |
| | | path: '/register', |
| | | name: 'register', |
| | | meta: { |
| | | title: '注册' |
| | | title: '注册', |
| | | index: 3 |
| | | }, |
| | | component: Register |
| | | }, { |
| | | path: '/forget', |
| | | name: 'forget', |
| | | meta: { |
| | | title: '忘记密码' |
| | | title: '忘记密码', |
| | | index: 4 |
| | | }, |
| | | component: Forget |
| | | }, { |
| | |
| | | name: 'login', |
| | | meta: { |
| | | title: '账户登录', |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 5 |
| | | }, |
| | | component: Login |
| | | }, { |
| | |
| | | name: 'openaccount', |
| | | meta: { |
| | | title: '开户', |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 6 |
| | | }, |
| | | component: OpenAccount |
| | | }, { |
| | |
| | | meta: { |
| | | title: '行情', |
| | | requireAuth: false, |
| | | hasHeader: false |
| | | hasHeader: false, |
| | | index: 7 |
| | | }, |
| | | component: List |
| | | }, { |
| | | path: '/indexsearchlist', |
| | | name: '指数查询', |
| | | meta: { |
| | | title: '指数查询' |
| | | title: '指数查询', |
| | | index: 8 |
| | | }, |
| | | component: IndexSearchlist |
| | | }, { |
| | |
| | | name: 'indexlist', |
| | | meta: { |
| | | title: '指数列表', |
| | | requireAuth: false |
| | | requireAuth: false, |
| | | index: 9 |
| | | }, |
| | | component: IndexList |
| | | }, { |
| | | path: '/searchlist', |
| | | name: '个股查询', |
| | | meta: { |
| | | title: '个股查询' |
| | | title: '个股查询', |
| | | index: 10 |
| | | }, |
| | | component: Searchlist |
| | | }, { |
| | |
| | | name: 'searchmylist', |
| | | meta: { |
| | | title: '自选查询', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 11 |
| | | }, |
| | | component: SearchMylist |
| | | }, { |
| | |
| | | meta: { |
| | | title: '自选列表', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 12 |
| | | |
| | | }, |
| | | component: MyList |
| | |
| | | meta: { |
| | | title: '详情', |
| | | requireAuth: false, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 13 |
| | | }, |
| | | component: ListDetail |
| | | }, { |
| | |
| | | meta: { |
| | | title: '详情', |
| | | requireAuth: false, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 14 |
| | | }, |
| | | component: ListDetail2 |
| | | }, |
| | |
| | | title: '指数购买', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | iconRight:'search' |
| | | iconRight: 'search', |
| | | index: 15 |
| | | }, |
| | | component: indexBuy |
| | | }, |
| | |
| | | title: '两融交易', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | iconRight:'search' |
| | | iconRight: 'search', |
| | | index: 16 |
| | | }, |
| | | component: TwoBuy |
| | | }, |
| | |
| | | title: '分仓交易', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | iconRight:'search' |
| | | iconRight: 'search', |
| | | index: 17 |
| | | }, |
| | | component: SubWarehouseBuy |
| | | }, { |
| | |
| | | title: '期货购买', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | index: 18 |
| | | }, |
| | | component: futuresBuy |
| | | }, { |
| | |
| | | name: 'inquiry', |
| | | meta: { |
| | | title: '询价', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 19 |
| | | }, |
| | | component: Inquiry |
| | | }, { |
| | |
| | | meta: { |
| | | title: '我的', |
| | | requireAuth: false, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 20 |
| | | }, |
| | | component: User |
| | | }, |
| | | { |
| | | { |
| | | path: '/transfer', |
| | | name: 'transfer', |
| | | meta: { |
| | | title: '资金互转', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 21 |
| | | }, |
| | | component: Transfer |
| | | }, { |
| | |
| | | title: '持仓', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | index: 22 |
| | | }, |
| | | component: OrderList |
| | | }, |
| | |
| | | meta: { |
| | | title: '查询持仓', |
| | | requireAuth: true, |
| | | hasHeader:true |
| | | hasHeader: true, |
| | | index: 23 |
| | | }, |
| | | component: holdOrderList |
| | | }, { |
| | |
| | | meta: { |
| | | title: '查询持仓', |
| | | requireAuth: true, |
| | | hasHeader:true |
| | | hasHeader: true, |
| | | index: 24 |
| | | }, |
| | | component: holdOrderList2 |
| | | }, { |
| | |
| | | meta: { |
| | | title: '查询平仓', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 25 |
| | | }, |
| | | component: sellOrderList |
| | | }, { |
| | |
| | | meta: { |
| | | title: '查询平仓', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 26 |
| | | }, |
| | | component: sellOrderList2 |
| | | }, { |
| | |
| | | meta: { |
| | | title: '资金明细', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 27 |
| | | }, |
| | | component: Detail |
| | | }, { |
| | |
| | | meta: { |
| | | title: '银行卡', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 28 |
| | | }, |
| | | component: Card |
| | | }, { |
| | |
| | | meta: { |
| | | title: '认证', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 29 |
| | | }, |
| | | component: Authentication |
| | | }, { |
| | |
| | | name: 'aggre', |
| | | meta: { |
| | | title: '合作协议', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 30 |
| | | }, |
| | | component: Aggre |
| | | }, { |
| | |
| | | meta: { |
| | | title: '充值', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 31 |
| | | |
| | | }, |
| | | component: Recharge |
| | |
| | | meta: { |
| | | title: '确认充值', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 32 |
| | | |
| | | }, |
| | | component: RechargeSure |
| | |
| | | meta: { |
| | | title: '充值记录', |
| | | requireAuth: true, |
| | | hasHeader: true |
| | | hasHeader: true, |
| | | index: 33 |
| | | }, |
| | | component: RechargeList |
| | | }, { |
| | |
| | | meta: { |
| | | title: '提现', |
| | | requireAuth: true, |
| | | hasHeader:true |
| | | hasHeader: true, |
| | | index: 34 |
| | | }, |
| | | component: Cash |
| | | }, { |
| | |
| | | meta: { |
| | | title: '添加银行卡', |
| | | requireAuth: true, |
| | | hasHeader:true |
| | | hasHeader: true, |
| | | index: 35 |
| | | |
| | | }, |
| | | component: AddCard |
| | |
| | | meta: { |
| | | title: '提现记录', |
| | | requireAuth: true, |
| | | hasHeader:true |
| | | hasHeader: true, |
| | | index: 36 |
| | | |
| | | }, |
| | | component: Cashlist |
| | |
| | | name: 'setting', |
| | | meta: { |
| | | title: '设置', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 37 |
| | | }, |
| | | component: Setting |
| | | }, { |
| | |
| | | name: 'agree', |
| | | meta: { |
| | | title: '注册协议', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 38 |
| | | }, |
| | | component: Agree |
| | | }, { |
| | |
| | | name: 'trade', |
| | | meta: { |
| | | title: '交易⻛险揭示书', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 39 |
| | | }, |
| | | component: Trage |
| | | }, |
| | |
| | | name: 'alertdetail', |
| | | meta: { |
| | | title: '公告详情', |
| | | requireAuth: true |
| | | requireAuth: true, |
| | | index: 40 |
| | | }, |
| | | component: Alertdetail |
| | | }, |
| | | { |
| | | path: '/funds', |
| | | name:'funds', |
| | | name: 'funds', |
| | | meta: { |
| | | title: '配资主页', |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | iconRight: 'setting' |
| | | iconRight: 'setting', |
| | | index: 41 |
| | | }, |
| | | component: () => import('../page/funds/index') |
| | | }, |
| | | { |
| | | path: '/days', |
| | | name:'days', |
| | | name: 'days', |
| | | meta: { |
| | | title: '按天配资', |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | iconRight: 'setting' |
| | | iconRight: 'setting', |
| | | index: 42 |
| | | }, |
| | | component: () => import('../page/funds/days') |
| | | }, |
| | | { |
| | | path: '/xingu', |
| | | name:'xingu', |
| | | name: 'xingu', |
| | | meta: { |
| | | title: '新股申购', |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | iconRight: 'setting' |
| | | iconRight: 'setting', |
| | | index: 43 |
| | | }, |
| | | component: () => import('../page/funds/xingu') |
| | | }, |
| | |
| | | title: '查询股票', |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 44 |
| | | }, |
| | | component: () => import('../page/list/search') |
| | | }, |
| | |
| | | title: '消息记录', |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 45 |
| | | }, |
| | | component: () => import('../page/user/notify') |
| | | }, { |
| | |
| | | title: '分仓配资', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | index: 46, |
| | | }, |
| | | component: FundsList |
| | | }, |
| | | { |
| | | { |
| | | path: '/newLogin', |
| | | name: 'newLogin', |
| | | meta: { |
| | | title: '新登录', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | index: 47 |
| | | }, |
| | | component: newLogin |
| | | }, |
| | | { |
| | | path: '/newRegister', |
| | | name: 'newRegister', |
| | | meta: { |
| | | title: '新注册', |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | }, |
| | | component: newRegister |
| | | }, |
| | | path: '/newRegister', |
| | | name: 'newRegister', |
| | | meta: { |
| | | title: '新注册', |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 48 |
| | | }, |
| | | component: newRegister |
| | | }, |
| | | { |
| | | // 会匹配所有路径 |
| | | path: '*', |