| | |
| | | import Home from '@/page/home/home' |
| | | import Buy from '@/page/home/buy' |
| | | import Alertdetail from '@/page/home/components/alert' // 公告详情 |
| | | import Register from '@/page/register' |
| | | // import Register from '@/page/register' |
| | | import Forget from '@/page/forget' |
| | | import Login from '@/page/login' |
| | | import List from '@/page/list/list' |
| | | // import Login from '@/page/login' |
| | | // import List from '@/page/list/list' |
| | | import TradingList from '@/page/list/trading-list' |
| | | import Searchlist from '@/page/list/list-search' |
| | | import IndexSearchlist from '@/page/list/indexlist-search' // 指数查询 |
| | |
| | | import ListDetail2 from '@/page/list/detail2' |
| | | import MyList from '@/page/list/my-list' |
| | | import Inquiry from '@/page/home/inquiry' |
| | | import OrderList from '@/page/user/order-list' |
| | | // import OrderList from '@/page/user/order-list' |
| | | import Warehouse from '@/page/user/Warehouse.vue' |
| | | import yeb from '@/page/user/yeb.vue' |
| | | import yebs from '@/page/user/yebs.vue' |
| | | import yebs2 from '@/page/user/yebs2.vue' |
| | | import SubDK from '@/page/user/SubDK.vue' |
| | | import tixian from '@/page/tixian/tixian.vue' |
| | | import holdOrderList from '@/page/user/search-order/hold-stockCode' |
| | | import holdOrderList2 from '@/page/user/search-order/hold-stockSpell' |
| | | import sellOrderList from '@/page/user/search-order/sell-stockCode' |
| | |
| | | import Setting from '@/page/user/my' |
| | | import Transfer from '@/page/user/transfer' |
| | | import IndexList from '@/page/list/index-list' |
| | | import setting from '@/page/newUser/setting' |
| | | import indexBuy from '@/page/home/index-buy' |
| | | import TwoBuy from '@/page/home/two-buy' |
| | | import SubWarehouseBuy from '@/page/home/sub-warehouse-buy' |
| | |
| | | import KLine from '@/page/kline/index.vue' |
| | | import TradingBuy from '@/page/trading/buy.vue' |
| | | import NewUser from '@/page/newUser/index.vue' |
| | | import Wallet from '@/page/wallet/index.vue'; |
| | | import download from '@/page/download/download.vue' |
| | | import Wallet from '@/page/wallet/index.vue' |
| | | import TransferRecord from '@/page/transferRecord/index.vue' |
| | | import CashWithdrawalRecord from '@/page/cashWithdrawalRecord/index.vue' |
| | | import Transfers from '@/page/transfer/index.vue' |
| | | import Authentications from '@/page/authentication/index.vue' |
| | | import BankCard from '@/page/bankCard/index.vue' |
| | | import service from '@/page/service/service.vue' |
| | | import chongz from '@/page/service/chongz.vue' |
| | | import Subscription from '@/page/home/Subscription.vue' // VIP抢筹 和 大宗交易 |
| | | import sharerecordDz from '@/page/home/sharerecordDz.vue' // 大宗交易记录 |
| | | import vipdetail from '@/page/home/vipdetail.vue'// vip抢筹详情 |
| | | import favorites from '@/page/user/favorites.vue' |
| | | import help from '@/page/home/help.vue' |
| | | import help_html from '@/page/home/help_html.vue' |
| | | import help_fxkz from '@/page/home/help_fxkz.vue' |
| | | import help_wdfw from '@/page/home/help_wdfw.vue' |
| | | import new_service from '@/page/home/new_service.vue' |
| | | 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) |
| | | } |
| | | export default new Router({ |
| | |
| | | { |
| | | path: '/', |
| | | redirect: '/home' |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/home', |
| | | name: 'home', |
| | | meta: { |
| | |
| | | index: 0 |
| | | }, |
| | | component: Home |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/Subscription', |
| | | name: 'Subscription', |
| | | meta: { |
| | | title: 'A股', |
| | | requireAuth: true, |
| | | hasHeader: false, |
| | | show: true, |
| | | index: 58 |
| | | }, |
| | | component: Subscription |
| | | }, |
| | | { |
| | | path: '/sharerecordDz', |
| | | name: 'sharerecordDz', |
| | | meta: { |
| | | title: '大宗交易记录', |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 66, |
| | | show: true |
| | | }, |
| | | component: sharerecordDz |
| | | }, |
| | | { |
| | | path: '/vipdetail', |
| | | name: 'vipdetail', |
| | | meta: { |
| | | title: 'VIP抢筹', |
| | | requireAuth: true, |
| | | hasHeader: false, |
| | | show: true, |
| | | index: 1 |
| | | }, |
| | | component: vipdetail |
| | | }, |
| | | { |
| | | path: '/buy', |
| | | name: 'buy', |
| | | meta: { |
| | |
| | | index: 1 |
| | | }, |
| | | component: Buy |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/newPage', |
| | | name: 'newPage', |
| | | meta: { |
| | | // title: '详情', |
| | | title: i18n.t('hj238'), |
| | | hasHeader: true, |
| | | is_Show: true, |
| | | hasHeader: false, |
| | | // hasHeader: true, |
| | | // is_Show: true, |
| | | is_Show: false, |
| | | index: 2 |
| | | }, |
| | | component: NewPage |
| | |
| | | // index: 3 |
| | | // }, |
| | | // component: Register |
| | | // }, |
| | | // }, |
| | | { |
| | | path: '/forget', |
| | | name: 'forget', |
| | |
| | | index: 4 |
| | | }, |
| | | component: Forget |
| | | }, |
| | | }, |
| | | // { |
| | | // path: '/login', |
| | | // name: 'login', |
| | |
| | | // }, |
| | | // component: Login |
| | | // }, |
| | | { |
| | | { |
| | | path: '/openaccount', |
| | | name: 'openaccount', |
| | | meta: { |
| | |
| | | index: 6 |
| | | }, |
| | | component: OpenAccount |
| | | }, |
| | | }, |
| | | { |
| | | path: '/trading-list', |
| | | name: 'TradingList', |
| | |
| | | index: 7 |
| | | }, |
| | | component: TradingList |
| | | } |
| | | }, |
| | | // { |
| | | // path: '/list', |
| | | // name: 'list', |
| | |
| | | // }, |
| | | // component: List |
| | | // } |
| | | , { |
| | | { |
| | | path: '/indexsearchlist', |
| | | name: '指数查询', |
| | | meta: { |
| | |
| | | index: 8 |
| | | }, |
| | | component: IndexSearchlist |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/setting', |
| | | name: 'setting', |
| | | meta: { |
| | | title: '设置', |
| | | requireAuth: false, |
| | | index: 91 |
| | | }, |
| | | component: setting |
| | | }, |
| | | { |
| | | path: '/indexlist', |
| | | name: 'indexlist', |
| | | meta: { |
| | |
| | | index: 9 |
| | | }, |
| | | component: IndexList |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/searchlist', |
| | | name: '个股查询', |
| | | meta: { |
| | |
| | | index: 10 |
| | | }, |
| | | component: Searchlist |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/searchmylist', |
| | | name: 'searchmylist', |
| | | meta: { |
| | |
| | | index: 11 |
| | | }, |
| | | component: SearchMylist |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/mylist', |
| | | name: 'mylist', |
| | | meta: { |
| | |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 12 |
| | | |
| | | }, |
| | | component: MyList |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/listdetail', |
| | | name: 'listdetail', |
| | | meta: { |
| | |
| | | index: 13 |
| | | }, |
| | | component: ListDetail |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/listdetail2', |
| | | name: 'listdetail2', |
| | | meta: { |
| | |
| | | index: 17 |
| | | }, |
| | | component: SubWarehouseBuy |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/futuresBuy', |
| | | name: 'futuresBuy', |
| | | meta: { |
| | |
| | | index: 18 |
| | | }, |
| | | component: futuresBuy |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/inquiry', |
| | | name: 'inquiry', |
| | | meta: { |
| | |
| | | index: 19 |
| | | }, |
| | | component: Inquiry |
| | | }, |
| | | },{ |
| | | path: '/tixian', |
| | | name: 'tixian', |
| | | meta: { |
| | | title: '提现', |
| | | requireAuth: true, |
| | | index: 19 |
| | | }, |
| | | component: tixian |
| | | }, |
| | | // { |
| | | // path: '/user', |
| | | // name: 'user', |
| | |
| | | index: 21 |
| | | }, |
| | | component: Transfer |
| | | }, |
| | | }, |
| | | { |
| | | path: '/yeb', |
| | | name: 'yeb', |
| | | meta: { |
| | | title: '余额宝', |
| | | requireAuth: true, |
| | | index: 999 |
| | | }, |
| | | component: yeb |
| | | }, |
| | | { |
| | | path: '/subDK', |
| | | name: 'subDK', |
| | | meta: { |
| | | title: '申请贷款', |
| | | requireAuth: true, |
| | | index: 998 |
| | | }, |
| | | component: SubDK |
| | | }, |
| | | |
| | | { |
| | | path: '/yebs', |
| | | name: 'yebs', |
| | | meta: { |
| | | title: '余额宝记录', |
| | | requireAuth: true, |
| | | index: 1000 |
| | | }, |
| | | component: yebs |
| | | }, |
| | | { |
| | | path: '/yebs2', |
| | | name: 'yebs2', |
| | | meta: { |
| | | title: '贷款记录', |
| | | requireAuth: true, |
| | | index: 1002 |
| | | }, |
| | | component: yebs2 |
| | | }, |
| | | // { |
| | | // path: '/orderlist', |
| | | // name: 'orderlist', |
| | |
| | | // }, |
| | | // component: OrderList |
| | | // }, |
| | | { |
| | | { |
| | | path: '/warehouse', |
| | | name: 'Warehouse', |
| | | meta: { |
| | |
| | | index: 23 |
| | | }, |
| | | component: holdOrderList |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/holdorderlist2', |
| | | name: 'holdorderlist2', |
| | | meta: { |
| | |
| | | index: 24 |
| | | }, |
| | | component: holdOrderList2 |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/sellorderlist', |
| | | name: 'sellorderlist', |
| | | meta: { |
| | |
| | | index: 25 |
| | | }, |
| | | component: sellOrderList |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/sellorderlist2', |
| | | name: 'sellorderlist2', |
| | | meta: { |
| | |
| | | index: 26 |
| | | }, |
| | | component: sellOrderList2 |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/detail', |
| | | name: 'detail', |
| | | meta: { |
| | |
| | | index: 27 |
| | | }, |
| | | component: Detail |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/card', |
| | | name: 'card', |
| | | meta: { |
| | |
| | | index: 28 |
| | | }, |
| | | component: Card |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/authentication', |
| | | name: 'authentication', |
| | | meta: { |
| | |
| | | index: 29 |
| | | }, |
| | | component: Authentication |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/aggre', |
| | | name: 'aggre', |
| | | meta: { |
| | |
| | | index: 30 |
| | | }, |
| | | component: Aggre |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/recharge', |
| | | name: 'recharge', |
| | | meta: { |
| | |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 31 |
| | | |
| | | }, |
| | | component: Recharge |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/rechargeSure', |
| | | name: 'rechargeSure', |
| | | meta: { |
| | |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 32 |
| | | |
| | | }, |
| | | component: RechargeSure |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/rechargelist', |
| | | name: 'rechargelist', |
| | | meta: { |
| | |
| | | index: 33 |
| | | }, |
| | | component: RechargeList |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/cash', |
| | | name: 'cash', |
| | | meta: { |
| | |
| | | index: 34 |
| | | }, |
| | | component: Cash |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/addCard', |
| | | name: 'addCard', |
| | | meta: { |
| | |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 35 |
| | | |
| | | }, |
| | | component: AddCard |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/cashlist', |
| | | name: 'cashlist', |
| | | meta: { |
| | |
| | | requireAuth: true, |
| | | hasHeader: true, |
| | | index: 36 |
| | | |
| | | }, |
| | | component: Cashlist |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/setting', |
| | | name: 'setting', |
| | | meta: { |
| | |
| | | index: 37 |
| | | }, |
| | | component: Setting |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/agree', |
| | | name: 'agree', |
| | | meta: { |
| | |
| | | index: 38 |
| | | }, |
| | | component: Agree |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/trade', |
| | | name: 'trade', |
| | | meta: { |
| | |
| | | index: 45 |
| | | }, |
| | | component: () => import('../page/user/notify') |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/fundslist', |
| | | name: 'fundslist', |
| | | meta: { |
| | | title: '分仓配资', |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | index: 46, |
| | | index: 46 |
| | | }, |
| | | component: FundsList |
| | | }, |
| | |
| | | meta: { |
| | | title: i18n.t('hj248'), |
| | | requireAuth: false, |
| | | hasHeader: true, |
| | | hasHeader: false, |
| | | index: 47, |
| | | show: true |
| | | }, |
| | |
| | | title: i18n.t('hj243'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 51, |
| | | index: 51 |
| | | }, |
| | | component: NewUser |
| | | },{ |
| | | path: '/download', |
| | | name: 'download', |
| | | meta: { |
| | | title: i18n.t('hj243'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 57, |
| | | show: true |
| | | }, |
| | | component: download |
| | | }, |
| | | { |
| | | path: '/wallet', |
| | |
| | | title: i18n.t('hj244'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 52, |
| | | index: 52 |
| | | }, |
| | | component: Wallet |
| | | }, |
| | |
| | | component: service |
| | | }, |
| | | { |
| | | path: '/chongz', |
| | | name: 'chongz', |
| | | meta: { |
| | | title: '充值', |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 59, |
| | | show: true |
| | | }, |
| | | component: chongz |
| | | }, |
| | | { |
| | | path: '/favorites', |
| | | name: 'Favorites', |
| | | meta: { |
| | | title: i18n.t('hj2'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 58 |
| | | }, |
| | | component: favorites |
| | | }, |
| | | { |
| | | path: '/help', |
| | | name: 'help', |
| | | meta: { |
| | | title: i18n.t('hj2'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 59, |
| | | show: true |
| | | }, |
| | | component: help |
| | | }, |
| | | { |
| | | path: '/help_html', |
| | | name: 'help_html', |
| | | meta: { |
| | | title: i18n.t('hj2'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 60, |
| | | show: true |
| | | }, |
| | | component: help_html |
| | | }, |
| | | { |
| | | path: '/help_fxkz', |
| | | name: 'help_fxkz', |
| | | meta: { |
| | | title: i18n.t('hj2'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 61, |
| | | show: true |
| | | }, |
| | | component: help_fxkz |
| | | }, |
| | | { |
| | | path: '/help_wdfw', |
| | | name: 'help_wdfw', |
| | | meta: { |
| | | title: i18n.t('hj2'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 61, |
| | | show: true |
| | | }, |
| | | component: help_wdfw |
| | | }, |
| | | { |
| | | path: '/new_service', |
| | | name: 'new_service', |
| | | meta: { |
| | | title: i18n.t('hj2'), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 62, |
| | | show: true |
| | | }, |
| | | component: new_service |
| | | }, |
| | | { |
| | | // 会匹配所有路径 |
| | | path: '*', |
| | | redirect: '/home' |