From b35e9e4aebcec3b36ccc7cab4639ff2ad74aea97 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sat, 23 Mar 2024 18:10:25 +0800
Subject: [PATCH] 1
---
src/router/index.js | 484 +++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 409 insertions(+), 75 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index d2136b3..7975927 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,12 +1,13 @@
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 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' // 指数查询
@@ -15,9 +16,13 @@
import ListDetail2 from '@/page/list/detail2'
import MyList from '@/page/list/my-list'
import Inquiry from '@/page/home/inquiry'
-import User from '@/page/user/user'
-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'
@@ -35,6 +40,7 @@
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'
@@ -49,45 +55,104 @@
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 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({
routes: [
{
path: '/',
redirect: '/home'
- }, {
+ },
+ {
path: '/home',
name: 'home',
meta: {
- title: '首页',
+ title: i18n.t('hj224'),
requireAuth: true,
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: '购买',
+ title: i18n.t('hj237'),
requireAuth: true,
hasHeader: true,
index: 1
},
component: Buy
- }, {
+ },
+ {
path: '/newPage',
name: 'newPage',
meta: {
- title: '详情',
- hasHeader: true,
- is_Show: true,
+ // title: '详情',
+ title: i18n.t('hj238'),
+ hasHeader: false,
+ // hasHeader: true,
+ // is_Show: true,
+ is_Show: false,
index: 2
},
component: NewPage
@@ -96,7 +161,7 @@
path: '/newGg',
name: 'newGg',
meta: {
- title: '公告详情',
+ title: i18n.t('hj239'),
hasHeader: true,
is_Show: true,
index: 49
@@ -111,16 +176,16 @@
// index: 3
// },
// component: Register
- // },
+ // },
{
path: '/forget',
name: 'forget',
meta: {
- title: '忘记密码',
+ title: i18n.t('hj240'),
index: 4
},
component: Forget
- },
+ },
// {
// path: '/login',
// name: 'login',
@@ -131,27 +196,27 @@
// },
// component: Login
// },
- {
+ {
path: '/openaccount',
name: 'openaccount',
meta: {
- title: '开户',
+ title: i18n.t('hj241'),
hasHeader: true,
index: 6
},
component: OpenAccount
- },
+ },
{
path: '/trading-list',
name: 'TradingList',
meta: {
- title: '行情',
+ title: i18n.t('hj242'),
requireAuth: false,
hasHeader: false,
index: 7
},
component: TradingList
- }
+ },
// {
// path: '/list',
// name: 'list',
@@ -163,7 +228,7 @@
// },
// component: List
// }
- , {
+ {
path: '/indexsearchlist',
name: '指数查询',
meta: {
@@ -171,7 +236,18 @@
index: 8
},
component: IndexSearchlist
- }, {
+ },
+ {
+ path: '/setting',
+ name: 'setting',
+ meta: {
+ title: '设置',
+ requireAuth: false,
+ index: 91
+ },
+ component: setting
+ },
+ {
path: '/indexlist',
name: 'indexlist',
meta: {
@@ -180,7 +256,8 @@
index: 9
},
component: IndexList
- }, {
+ },
+ {
path: '/searchlist',
name: '个股查询',
meta: {
@@ -188,7 +265,8 @@
index: 10
},
component: Searchlist
- }, {
+ },
+ {
path: '/searchmylist',
name: 'searchmylist',
meta: {
@@ -197,7 +275,8 @@
index: 11
},
component: SearchMylist
- }, {
+ },
+ {
path: '/mylist',
name: 'mylist',
meta: {
@@ -205,24 +284,25 @@
requireAuth: true,
hasHeader: true,
index: 12
-
},
component: MyList
- }, {
+ },
+ {
path: '/listdetail',
name: 'listdetail',
meta: {
- title: '详情',
+ title: i18n.t('hj238'),
requireAuth: false,
hasHeader: false,
index: 13
},
component: ListDetail
- }, {
+ },
+ {
path: '/listdetail2',
name: 'listdetail2',
meta: {
- title: '详情',
+ title: i18n.t('hj238'),
requireAuth: false,
hasHeader: true,
index: 14
@@ -264,7 +344,8 @@
index: 17
},
component: SubWarehouseBuy
- }, {
+ },
+ {
path: '/futuresBuy',
name: 'futuresBuy',
meta: {
@@ -274,7 +355,8 @@
index: 18
},
component: futuresBuy
- }, {
+ },
+ {
path: '/inquiry',
name: 'inquiry',
meta: {
@@ -283,17 +365,27 @@
index: 19
},
component: Inquiry
- }, {
- path: '/user',
- name: 'user',
+ },{
+ path: '/tixian',
+ name: 'tixian',
meta: {
- title: '我的',
- requireAuth: false,
- hasHeader: true,
- index: 20
+ title: '提现',
+ requireAuth: true,
+ index: 19
},
- component: User
+ component: tixian
},
+ // {
+ // path: '/user',
+ // name: 'user',
+ // meta: {
+ // title: '我的',
+ // requireAuth: false,
+ // hasHeader: true,
+ // index: 20
+ // },
+ // component: User
+ // },
{
path: '/transfer',
name: 'transfer',
@@ -303,7 +395,48 @@
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',
@@ -315,11 +448,11 @@
// },
// component: OrderList
// },
- {
+ {
path: '/warehouse',
name: 'Warehouse',
meta: {
- title: '持仓',
+ title: i18n.t('hj2'),
requireAuth: false,
hasHeader: false,
index: 22
@@ -336,7 +469,8 @@
index: 23
},
component: holdOrderList
- }, {
+ },
+ {
path: '/holdorderlist2',
name: 'holdorderlist2',
meta: {
@@ -346,7 +480,8 @@
index: 24
},
component: holdOrderList2
- }, {
+ },
+ {
path: '/sellorderlist',
name: 'sellorderlist',
meta: {
@@ -356,7 +491,8 @@
index: 25
},
component: sellOrderList
- }, {
+ },
+ {
path: '/sellorderlist2',
name: 'sellorderlist2',
meta: {
@@ -366,7 +502,8 @@
index: 26
},
component: sellOrderList2
- }, {
+ },
+ {
path: '/detail',
name: 'detail',
meta: {
@@ -376,7 +513,8 @@
index: 27
},
component: Detail
- }, {
+ },
+ {
path: '/card',
name: 'card',
meta: {
@@ -386,7 +524,8 @@
index: 28
},
component: Card
- }, {
+ },
+ {
path: '/authentication',
name: 'authentication',
meta: {
@@ -396,7 +535,8 @@
index: 29
},
component: Authentication
- }, {
+ },
+ {
path: '/aggre',
name: 'aggre',
meta: {
@@ -405,7 +545,8 @@
index: 30
},
component: Aggre
- }, {
+ },
+ {
path: '/recharge',
name: 'recharge',
meta: {
@@ -413,10 +554,10 @@
requireAuth: true,
hasHeader: true,
index: 31
-
},
component: Recharge
- }, {
+ },
+ {
path: '/rechargeSure',
name: 'rechargeSure',
meta: {
@@ -424,10 +565,10 @@
requireAuth: true,
hasHeader: true,
index: 32
-
},
component: RechargeSure
- }, {
+ },
+ {
path: '/rechargelist',
name: 'rechargelist',
meta: {
@@ -437,7 +578,8 @@
index: 33
},
component: RechargeList
- }, {
+ },
+ {
path: '/cash',
name: 'cash',
meta: {
@@ -447,7 +589,8 @@
index: 34
},
component: Cash
- }, {
+ },
+ {
path: '/addCard',
name: 'addCard',
meta: {
@@ -455,10 +598,10 @@
requireAuth: true,
hasHeader: true,
index: 35
-
},
component: AddCard
- }, {
+ },
+ {
path: '/cashlist',
name: 'cashlist',
meta: {
@@ -466,10 +609,10 @@
requireAuth: true,
hasHeader: true,
index: 36
-
},
component: Cashlist
- }, {
+ },
+ {
path: '/setting',
name: 'setting',
meta: {
@@ -478,7 +621,8 @@
index: 37
},
component: Setting
- }, {
+ },
+ {
path: '/agree',
name: 'agree',
meta: {
@@ -487,7 +631,8 @@
index: 38
},
component: Agree
- }, {
+ },
+ {
path: '/trade',
name: 'trade',
meta: {
@@ -564,14 +709,15 @@
index: 45
},
component: () => import('../page/user/notify')
- }, {
+ },
+ {
path: '/fundslist',
name: 'fundslist',
meta: {
title: '分仓配资',
requireAuth: false,
hasHeader: true,
- index: 46,
+ index: 46
},
component: FundsList
},
@@ -579,9 +725,9 @@
path: '/login',
name: 'newLogin',
meta: {
- title: '用户登录',
+ title: i18n.t('hj248'),
requireAuth: false,
- hasHeader: true,
+ hasHeader: false,
index: 47,
show: true
},
@@ -591,7 +737,7 @@
path: '/register',
name: 'newRegister',
meta: {
- title: '用户注册',
+ title: i18n.t('hj249'),
requireAuth: false,
hasHeader: false,
index: 48,
@@ -603,7 +749,7 @@
path: '/kline',
name: 'kline',
meta: {
- title: '图标',
+ title: i18n.t('hj238'),
requireAuth: false,
hasHeader: false,
index: 49,
@@ -615,7 +761,7 @@
path: '/TradingBuy',
name: 'TradingBuy',
meta: {
- title: '图标',
+ title: i18n.t('hj237'),
requireAuth: false,
hasHeader: false,
index: 50,
@@ -624,6 +770,194 @@
component: TradingBuy
},
{
+ path: '/User',
+ name: 'NewUser',
+ meta: {
+ title: i18n.t('hj243'),
+ requireAuth: false,
+ 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: '/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
+ },
+ 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'
--
Gitblit v1.9.3