import Vue from "vue"; import Router from "vue-router"; import i18n from "@/locales/index.js"; 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 Forget from "@/page/forget"; // 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 SearchMylist from "@/page/list/my-list-search"; import ListDetail from "@/page/list/listDetail"; 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 Warehouse from "@/page/user/Warehouse.vue"; import Stockdetail from "@/page/user/Warehouse/Stockdetail.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 sellOrderList2 from "@/page/user/search-order/sell-stockSpell"; import Detail from "@/page/user/detail"; import Card from "@/page/user/card"; import Authentication from "@/page/user/authentication"; import Aggre from "@/page/user/agreement"; import Recharge from "@/page/user/recharge"; import recharges from "@/page/user/recharges"; import RransferIndex from "@/page/user/ransferIndex"; import transferindexList from "@/page/user//compontents/transferindex-list"; import RechargeSure from "@/page/user/recharge-sure"; import RechargeList from "@/page/user/rechargelist"; import Cash from "@/page/user/cash"; import Cashlist from "@/page/user/cashlist"; import AddCard from "@/page/user/addCard"; 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 Record from "@/page/home/Record"; import TwoBuy from "@/page/home/two-buy"; import SubWarehouseBuy from "@/page/home/sub-warehouse-buy"; import futuresBuy from "@/page/home/futures-buy"; import Agree from "@/page/registerAgree"; import Trage from "@/page/tradeAgree"; import OpenAccount from "@/page/openaccount"; import FundsList from "@/page/funds/funds-list"; import newLogin from "@/page/login/login.vue"; import newRegister from "@/page/login/register.vue"; import NewPage from "@/page/home/newPage"; import NewGg from "@/page/home/newGg"; import KLine from "@/page/kline/index.vue"; import TradingBuy from "@/page/trading/buy.vue"; import NewUser from "@/page/newUser/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 banklist from "@/page/bankCard/banklist.vue"; import updatabank from "@/page/bankCard/updatabank.vue"; import BankCard1 from "@/page/bankCard1/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/list/favorites.vue"; import favoritesList from "@/page/list/favoritesList.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 help_fwxy from "@/page/home/help_fwxy.vue"; import new_service from "@/page/home/new_service.vue"; Vue.use(Router); const routerPush = Router.prototype.push; Router.prototype.push = function push(location) { return routerPush.call(this, location).catch(error => error); }; export default new Router({ routes: [ { path: "/", redirect: "/home_index" }, // #region 7.2 新增路由------------------------------------- // 新首页 { path: "/home_index", name: "home_index", meta: { title: i18n.t("hj224"), requireAuth: false, index: 0 }, component: () => import("@/page/home/homeIndex.vue") }, // 市场 { path: "/markets", name: "markets", meta: { title: i18n.t("hj62"), requireAuth: true, index: 0 }, component: () => import("@/page/markets/markets.vue") }, { path: "/transferNew", name: "transferNew", meta: { title: i18n.t("划转"), requireAuth: true, index: 1 }, component: () => import("@/page/user/transferNew.vue") }, // AI量化交易 { path: "/aiTrading", name: "aiTrading", meta: { title: i18n.t("量化交易"), requireAuth: true, show: true, index: 1 }, component: () => import("@/page/markets/aiTrading.vue") }, // AI交易订单 { path: "/aiTradingOrder", name: "aiTradingOrder", meta: { title: i18n.t("AI交易订单"), requireAuth: true, show: true, index: 2 }, component: () => import("@/page/markets/aiTradingOrder.vue") }, // 大宗交易 { path: "/blockTrading", name: "blockTrading", meta: { title: i18n.t("hj621"), requireAuth: true, show: true, index: 1 }, component: () => import("@/page/markets/blockTrading.vue") }, // 大宗交易订单 { path: "/blockTradingOrder", name: "blockTradingOrder", meta: { title: i18n.t("大宗交易订单"), requireAuth: true, show: true, index: 2 }, component: () => import("@/page/markets/blockTradingOrder.vue") }, // IPO { path: "/ipo", name: "ipo", meta: { title: "IPO", requireAuth: true, show: true, index: 1 }, component: () => import("@/page/markets/ipo.vue") }, // IPO订单 { path: "/ipoOrder", name: "ipoOrder", meta: { title: "IPO" + i18n.t("订单"), requireAuth: true, show: true, index: 2 }, component: () => import("@/page/markets/ipoOrder.vue") }, // 理财基金 { path: "/fund", name: "fund", meta: { title: i18n.t("理财基金"), requireAuth: true, show: true, index: 1 }, component: () => import("@/page/markets/fund.vue") }, // 理财基金订单 { path: "/fundOrder", name: "fundOrder", meta: { title: i18n.t("基金订单"), requireAuth: true, show: true, index: 2 }, component: () => import("@/page/markets/fundOrder.vue") }, // 自选 { path: "/watchlists", name: "watchlists", meta: { title: i18n.t("hj61"), requireAuth: true, index: 0 }, component: () => import("@/page/watchlists/watchlists.vue") }, // 新交易页面 { path: "/tradeNew", name: "tradeNew", meta: { title: i18n.t("hj225"), requireAuth: true, index: 0 }, component: () => import("@/page/trading/TradeNew.vue") }, // 平仓记录页面 { path: "/stockRecord", name: "stockRecord", meta: { title: i18n.t("jl"), requireAuth: true, show: true, index: 1 }, component: () => import("@/page/trading/stockRecord.vue") }, // 账户 { path: "/account", name: "account", meta: { title: i18n.t("Account"), requireAuth: true, index: 0 }, component: () => import("@/page/user/account.vue") }, // 我的贷款 { path: "/loan", name: "loan", meta: { title: i18n.t("我的贷款"), requireAuth: true, show: true, index: 1 }, component: () => import("@/page/user/loan.vue") }, // 我的贷款记录 { path: "/loanRecord", name: "loanRecord", meta: { title: i18n.t("dkjl"), requireAuth: true, show: true, index: 2 }, component: () => import("@/page/user/loanRecord.vue") }, // 新闻列表页面 { path: "/new-list", name: "new-list", meta: { title: i18n.t("hj6"), requireAuth: false, show: true, index: 1 }, component: () => import("@/page/home/newList.vue") }, // 指数图 { path: "/kLineIndex", name: "kLineIndex", meta: { title: i18n.t("hj238"), requireAuth: true, show: true, index: 1 }, component: () => import("@/page/kline/kIndex.vue") }, //#endregion //#region 旧路由--------------------------------------------- { path: "/home", name: "home", meta: { title: i18n.t("hj224"), requireAuth: false, 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: { title: i18n.t("hj237"), requireAuth: true, hasHeader: true, index: 1 }, component: Buy }, { path: "/newPage", name: "newPage", meta: { // title: '详情', title: i18n.t("hj238"), hasHeader: false, // hasHeader: true, // is_Show: true, is_Show: false, show: true, index: 2 }, component: NewPage }, { path: "/newGg", name: "newGg", meta: { title: i18n.t("hj239"), hasHeader: true, is_Show: true, index: 49 }, component: NewGg }, // { // path: '/register', // name: 'register', // meta: { // title: '注册', // index: 3 // }, // component: Register // }, { path: "/forget", name: "forget", meta: { title: i18n.t("hj240"), index: 4 }, component: Forget }, // { // path: '/login', // name: 'login', // meta: { // title: '账户登录', // hasHeader: true, // index: 5 // }, // component: Login // }, { path: "/openaccount", name: "openaccount", meta: { title: i18n.t("hj241"), hasHeader: true, index: 6 }, component: OpenAccount }, { path: "/trading-list", name: "TradingList", meta: { title: i18n.t("hj242"), requireAuth: false, hasHeader: false, index: 7 }, component: TradingList }, // { // path: '/list', // name: 'list', // meta: { // title: '行情', // requireAuth: false, // hasHeader: false, // index: 7 // }, // component: List // } { path: "/indexsearchlist", name: "指数查询", meta: { title: "指数查询", index: 8 }, component: IndexSearchlist }, { path: "/setting", name: "setting", meta: { title: "Setting", requireAuth: true, index: 91 }, component: setting }, { path: "/indexlist", name: "indexlist", meta: { title: "指数列表", requireAuth: false, index: 9 }, component: IndexList }, { path: "/searchlist", name: "个股查询", meta: { title: "个股查询", index: 10 }, component: Searchlist }, { path: "/searchmylist", name: "searchmylist", meta: { title: "自选查询", requireAuth: true, index: 11 }, component: SearchMylist }, { path: "/mylist", name: "mylist", meta: { title: "自选列表", requireAuth: true, hasHeader: true, index: 12 }, component: MyList }, { path: "/listdetail", name: "listdetail", meta: { title: i18n.t("hj238"), requireAuth: false, hasHeader: false, index: 13 }, component: ListDetail }, { path: "/listdetail2", name: "listdetail2", meta: { title: i18n.t("hj238"), requireAuth: false, hasHeader: true, index: 14 }, component: ListDetail2 }, { path: "/indexBuy", name: "indexBuy", meta: { title: "指数购买", requireAuth: false, hasHeader: true, iconRight: "search", index: 15 }, component: indexBuy }, { path: "/twoBuy", name: "TwoBuy", meta: { title: "两融交易", requireAuth: false, hasHeader: true, iconRight: "search", index: 16 }, component: TwoBuy }, { path: "/subWarehouseBuy", name: "SubWarehouseBuy", meta: { title: "分仓交易", requireAuth: false, hasHeader: true, iconRight: "search", index: 17 }, component: SubWarehouseBuy }, { path: "/futuresBuy", name: "futuresBuy", meta: { title: "期货购买", requireAuth: false, hasHeader: true, index: 18 }, component: futuresBuy }, { path: "/inquiry", name: "inquiry", meta: { title: "询价", requireAuth: true, index: 19 }, component: Inquiry }, { path: "/tixian", name: "tixian", meta: { title: "提现", requireAuth: true, index: 19 }, component: tixian }, // { // path: '/user', // name: 'user', // meta: { // title: '我的', // requireAuth: false, // hasHeader: true, // index: 20 // }, // component: User // }, { path: "/transfer", name: "transfer", meta: { title: "资金互转", requireAuth: true, index: 21 }, component: Transfer }, { path: "/yeb", name: "yeb", meta: { title: "yeb", requireAuth: true, index: 999 }, component: yeb }, { path: "/subDK", name: "subDK", meta: { title: i18n.t("贷款"), requireAuth: true, index: 998 }, component: SubDK }, { path: "/transferindex-list", name: "transferindexList", meta: { title: "划转记录", requireAuth: true, index: 3020 }, component: transferindexList }, { path: "/yebs", name: "yebs", meta: { title: "yebs—history", requireAuth: true, index: 1000 }, component: yebs }, { path: "/yebs2", name: "yebs2", meta: { title: "贷款记录", requireAuth: true, index: 1002 }, component: yebs2 }, // { // path: '/orderlist', // name: 'orderlist', // meta: { // title: '持仓', // requireAuth: false, // hasHeader: true, // index: 22 // }, // component: OrderList // }, { path: "/warehouse", name: "Warehouse", meta: { title: i18n.t("hj2"), requireAuth: true, hasHeader: false, index: 22 }, component: Warehouse }, { path: "/Stockdetail", name: "Stockdetail", meta: { title: i18n.t("订单详情"), requireAuth: true, hasHeader: false, show: true, index: 22 }, component: Stockdetail }, { path: "/holdorderlist", name: "holdorderlist", meta: { title: "查询持仓", requireAuth: true, hasHeader: true, index: 23 }, component: holdOrderList }, { path: "/holdorderlist2", name: "holdorderlist2", meta: { title: "查询持仓", requireAuth: true, hasHeader: true, index: 24 }, component: holdOrderList2 }, { path: "/sellorderlist", name: "sellorderlist", meta: { title: "查询平仓", requireAuth: true, hasHeader: true, index: 25 }, component: sellOrderList }, { path: "/sellorderlist2", name: "sellorderlist2", meta: { title: "查询平仓", requireAuth: true, hasHeader: true, index: 26 }, component: sellOrderList2 }, { path: "/detail", name: "detail", meta: { title: "资金明细", requireAuth: true, hasHeader: true, index: 27 }, component: Detail }, { path: "/card", name: "card", meta: { title: "银行卡", requireAuth: true, hasHeader: true, index: 28 }, component: Card }, { path: "/authentication", name: "authentication", meta: { title: "认证", requireAuth: true, hasHeader: true, index: 29 }, component: Authentication }, { path: "/aggre", name: "aggre", meta: { title: "合作协议", requireAuth: true, index: 30 }, component: Aggre }, { path: "/recharge", name: "recharge", meta: { requireAuth: true, show: true // title: "充值" // requireAuth: true, // hasHeader: true, // index: 31 }, component: Recharge }, { path: "/recharges", name: "recharges", meta: { requireAuth: true, show: true // title: "充值" // requireAuth: true, // hasHeader: true, // index: 31 }, component: recharges }, { path: "/transferIndex", name: "transferIndex", meta: { // requireAuth: false, show: true, // title: "充值" requireAuth: true // hasHeader: true, // index: 31 }, component: RransferIndex }, { path: "/rechargeSure", name: "rechargeSure", meta: { title: "RechargeSure", requireAuth: true, show: true }, component: RechargeSure }, { path: "/rechargelist", name: "rechargelist", meta: { requireAuth: false, hasHeader: false, index: 56, show: true }, component: RechargeList }, { path: "/cash", name: "cash", meta: { title: "提现", requireAuth: true, hasHeader: true, index: 34 }, component: Cash }, { path: "/addCard", name: "addCard", meta: { title: "添加银行卡", requireAuth: true, hasHeader: true, index: 35 }, component: AddCard }, { path: "/cashlist", name: "cashlist", meta: { title: "Withdraw", requireAuth: false, hasHeader: false, index: 56, show: true }, component: Cashlist }, { path: "/setting", name: "setting", meta: { title: "设置", requireAuth: true, index: 37 }, component: Setting }, { path: "/agree", name: "agree", meta: { title: "注册协议", requireAuth: false, index: 38 }, component: Agree }, { path: "/trade", name: "trade", meta: { title: "交易⻛险揭示书", requireAuth: true, index: 39 }, component: Trage }, { path: "/alertdetail", name: "alertdetail", meta: { title: "Announcement details", requireAuth: true, hasHeader: true, index: 40 }, component: Alertdetail }, { path: "/funds", name: "funds", meta: { title: "配资主页", requireAuth: true, hasHeader: true, iconRight: "setting", index: 41 }, component: () => import("../page/funds/index") }, { path: "/days", name: "days", meta: { title: "按天配资", requireAuth: true, hasHeader: true, iconRight: "setting", index: 42 }, component: () => import("../page/funds/days") }, { path: "/xingu", name: "xingu", meta: { title: "新股申购", requireAuth: true, hasHeader: true, iconRight: "setting", index: 43 }, component: () => import("../page/funds/xingu") }, { path: "/searchStock", name: "searchStock", meta: { title: "查询股票", requireAuth: true, hasHeader: true, index: 44 }, component: () => import("../page/list/search") }, { path: "/notify", name: "notify", meta: { title: "消息记录", requireAuth: true, hasHeader: true, index: 45 }, component: () => import("../page/user/notify") }, { path: "/fundslist", name: "fundslist", meta: { title: "分仓配资", requireAuth: false, hasHeader: true, index: 46 }, component: FundsList }, { path: "/login", name: "newLogin", meta: { requireAuth: false, hasHeader: false, index: 47, show: true, title: i18n.t("hj24") }, component: newLogin }, { path: "/register", name: "newRegister", meta: { title: i18n.t("hj249"), requireAuth: false, hasHeader: false, index: 48, show: true }, component: newRegister }, { path: "/kline", name: "kline", meta: { title: i18n.t("hj238"), requireAuth: false, hasHeader: false, index: 49, show: true }, component: KLine }, { path: "/TradingBuy", name: "TradingBuy", meta: { title: i18n.t("hj237"), requireAuth: true, hasHeader: false, index: 50, show: true }, component: TradingBuy }, { path: "/User", name: "NewUser", meta: { title: i18n.t("hj243"), requireAuth: true, hasHeader: false, 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", name: "Wallet", meta: { title: i18n.t("hj244"), requireAuth: false, hasHeader: false, index: 52 }, component: Wallet }, { path: "/transferRecord", name: "transferRecord", meta: { title: i18n.t("hj168"), requireAuth: false, hasHeader: false, index: 53, show: true }, component: TransferRecord }, { path: "/cashWithdrawalRecord", name: "cashWithdrawalRecord", meta: { title: i18n.t("hj162"), requireAuth: false, hasHeader: false, index: 54, show: true }, component: CashWithdrawalRecord }, { path: "/transfers", name: "transfers", meta: { title: i18n.t("hj245"), requireAuth: false, hasHeader: false, index: 55, show: true }, component: Transfers }, { path: "/authentications", name: "authentications", meta: { title: i18n.t("hj246"), requireAuth: false, hasHeader: false, index: 56, show: true }, component: Authentications }, { path: "/bankCard", name: "bankCard", meta: { title: i18n.t("hj247"), requireAuth: false, hasHeader: false, index: 57, show: true }, component: BankCard }, { path: "/bankCard1", name: "bankCard1", meta: { title: i18n.t("关于我们"), requireAuth: false, hasHeader: false, index: 57, show: true }, component: BankCard1 }, { path: "/banklist", name: "banklist", meta: { title: i18n.t("hj247"), requireAuth: false, hasHeader: false, index: 57, show: true }, component: banklist }, { path: "/updatabank", name: "updatabank", meta: { title: i18n.t("hj247"), requireAuth: false, hasHeader: false, index: 57, show: true }, component: updatabank }, { path: "/service", name: "service", meta: { title: "客服", requireAuth: false, hasHeader: false, index: 57, show: true }, 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, show: true }, component: favorites }, { path: "/favoritesList", name: "favoritesList", meta: { title: i18n.t("hj2"), requireAuth: false, hasHeader: false, index: 58, show: true }, component: favoritesList }, { 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: "/help_fwxy", name: "help_fwxy", meta: { title: i18n.t("《用戶服務協議》"), requireAuth: false, hasHeader: false, index: 61, show: true }, component: help_fwxy }, { path: "/new_service", name: "new_service", meta: { title: i18n.t("hj2"), requireAuth: false, hasHeader: false, index: 62, show: true }, component: new_service }, { path: "/Record", name: "Record", meta: { title: i18n.t("hj2"), requireAuth: false, hasHeader: false, index: 62, show: true }, component: Record }, { // 会匹配所有路径 path: "*", redirect: "/home" } //#endregion ] });