| | |
| | | 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 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 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 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); |
| | | |
| | |
| | | routes: [ |
| | | { |
| | | path: "/", |
| | | redirect: "/home" |
| | | 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", |
| | |
| | | // hasHeader: true, |
| | | // is_Show: true, |
| | | is_Show: false, |
| | | show: true, |
| | | index: 2 |
| | | }, |
| | | component: NewPage |
| | |
| | | path: "/subDK", |
| | | name: "subDK", |
| | | meta: { |
| | | title: "申请贷款", |
| | | title: i18n.t("贷款"), |
| | | requireAuth: true, |
| | | index: 998 |
| | | }, |
| | |
| | | title: i18n.t("订单详情"), |
| | | requireAuth: true, |
| | | hasHeader: false, |
| | | show: true, |
| | | index: 22 |
| | | }, |
| | | component: Stockdetail |
| | |
| | | }, |
| | | component: Recharge |
| | | }, |
| | | |
| | | { |
| | | path: "/recharges", |
| | | name: "recharges", |
| | | meta: { |
| | | requireAuth: true, |
| | | show: true |
| | | // title: "充值" |
| | | // requireAuth: true, |
| | | // hasHeader: true, |
| | | // index: 31 |
| | | }, |
| | | component: recharges |
| | | }, |
| | | { |
| | | path: "/transferIndex", |
| | | name: "transferIndex", |
| | |
| | | path: "/rechargeSure", |
| | | name: "rechargeSure", |
| | | meta: { |
| | | title: "RechargeSure", |
| | | requireAuth: true, |
| | | show: true |
| | | }, |
| | |
| | | path: "/cashlist", |
| | | name: "cashlist", |
| | | meta: { |
| | | title: "Withdraw", |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 56, |
| | |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | index: 47, |
| | | show: true |
| | | show: true, |
| | | title: i18n.t("hj24") |
| | | }, |
| | | component: newLogin |
| | | }, |
| | |
| | | title: i18n.t("hj244"), |
| | | requireAuth: false, |
| | | hasHeader: false, |
| | | show: true, |
| | | index: 52 |
| | | }, |
| | | component: Wallet |
| | |
| | | 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", |
| | |
| | | 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: { |
| | |
| | | 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 |
| | | ] |
| | | }); |