From 1bd03f5c2e7b9fa9cc80c4e673e18132da411333 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 12 Nov 2025 16:21:06 +0800
Subject: [PATCH] 1
---
src/router/index.js | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 159 insertions(+), 15 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 8c68275..38f7bd1 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -9,6 +9,7 @@
// 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";
@@ -21,6 +22,7 @@
import Stockdetail from "@/page/user/Warehouse/Stockdetail.vue";
import yeb from "@/page/user/yeb.vue";
import yebs from "@/page/user/yebs.vue";
+import webview from "@/page/user/webview.vue";
import yebs2 from "@/page/user/yebs2.vue";
import SubDK from "@/page/user/SubDK.vue";
import tixian from "@/page/tixian/tixian.vue";
@@ -94,21 +96,21 @@
routes: [
{
path: "/",
- redirect: "/home_index"
+ redirect: "/markets"
},
// #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: "/home_index",
+ // name: "home_index",
+ // meta: {
+ // title: i18n.t("hj224"),
+ // requireAuth: false,
+ // index: 0
+ // },
+ // component: () => import("@/page/home/homeIndex.vue")
+ // },
+ // 首页
{
path: "/markets",
name: "markets",
@@ -119,12 +121,33 @@
},
component: () => import("@/page/markets/markets.vue")
},
+ // 股票列表页
+ {
+ path: "/markets-list",
+ name: "markets-list",
+ meta: {
+ title: i18n.t("hj62"),
+ requireAuth: true,
+ index: 0
+ },
+ component: () => import("@/page/markets/marketsList.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: "AI" + i18n.t("量化交易"),
+ title: i18n.t("量化交易"),
requireAuth: true,
show: true,
index: 1
@@ -191,6 +214,30 @@
},
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",
@@ -213,7 +260,19 @@
},
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",
@@ -224,6 +283,41 @@
},
component: () => import("@/page/user/account.vue")
},
+ // 账户
+ {
+ path: "/webview",
+ name: "webview",
+ meta: {
+ title: "客服",
+ requireAuth: true,
+ index: 999
+ },
+ component: () => import("@/page/user/webview.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",
@@ -231,10 +325,59 @@
meta: {
title: i18n.t("hj6"),
requireAuth: false,
+ index: 0
+ },
+ component: () => import("@/page/home/newList.vue")
+ },
+ // 指数图
+ {
+ path: "/kLineIndex",
+ name: "kLineIndex",
+ meta: {
+ title: i18n.t("hj238"),
+ requireAuth: true,
show: true,
index: 1
},
- component: () => import("@/page/home/newList.vue")
+ component: () => import("@/page/kline/kIndex.vue")
+ },
+ //#endregion
+ // #region 8.11 新增路由-------------------------------------
+ // 理财余额页面
+ {
+ path: "/fund_index",
+ name: "fund_index",
+ meta: {
+ title: i18n.t("理财"),
+ requireAuth: false,
+ index: 0
+ },
+ component: () => import("@/page/home/fundIndex.vue")
+ },
+ // 理财规则
+ {
+ path: "/fund_rules",
+ name: "fund_rules",
+ meta: {
+ title: i18n.t("理财"),
+ requireAuth: false,
+ show: true,
+ index: 0
+ },
+ component: () => import("@/page/home/fundRules.vue")
+ },
+ // 我的订单,包括持仓和平仓
+ {
+ path: "/myorder",
+ name: "myorder",
+ meta: {
+ title: i18n.t("订单"),
+ requireAuth: false,
+ // hasHeader: true,
+ // show: true,
+ index: 1
+ },
+ component: () => import("@/page/user/myOrder.vue")
},
//#endregion
//#region 旧路由---------------------------------------------
@@ -630,6 +773,7 @@
title: i18n.t("订单详情"),
requireAuth: true,
hasHeader: false,
+ show: true,
index: 22
},
component: Stockdetail
--
Gitblit v1.9.3