From a1fb6cd3c3b8a48da4f9393e09718da04f51a373 Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Tue, 15 Nov 2022 09:58:00 +0800
Subject: [PATCH] 11111

---
 src/router/index.js |  143 ++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 116 insertions(+), 27 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index d2136b3..8b02ebc 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,5 +1,6 @@
 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' // 公告详情
@@ -15,7 +16,6 @@
 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 Warehouse from '@/page/user/Warehouse.vue'
 import holdOrderList from '@/page/user/search-order/hold-stockCode'
@@ -49,6 +49,13 @@
 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 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'
 
 Vue.use(Router)
 
@@ -56,7 +63,6 @@
 Router.prototype.push = function push(location) {
   return routerPush.call(this, location).catch(error => error)
 }
-
 export default new Router({
   routes: [
     {
@@ -66,7 +72,7 @@
       path: '/home',
       name: 'home',
       meta: {
-        title: '首页',
+        title: i18n.t('hj224'),
         requireAuth: true,
         index: 0
       },
@@ -75,7 +81,7 @@
       path: '/buy',
       name: 'buy',
       meta: {
-        title: '购买',
+        title: i18n.t('hj237'),
         requireAuth: true,
         hasHeader: true,
         index: 1
@@ -85,7 +91,7 @@
       path: '/newPage',
       name: 'newPage',
       meta: {
-        title: '详情',
+        title: i18n.t('hj238'),
         hasHeader: true,
         is_Show: true,
         index: 2
@@ -96,7 +102,7 @@
       path: '/newGg',
       name: 'newGg',
       meta: {
-        title: '公告详情',
+        title: i18n.t('hj239'),
         hasHeader: true,
         is_Show: true,
         index: 49
@@ -116,7 +122,7 @@
       path: '/forget',
       name: 'forget',
       meta: {
-        title: '忘记密码',
+        title: i18n.t('hj240'),
         index: 4
       },
       component: Forget
@@ -135,7 +141,7 @@
       path: '/openaccount',
       name: 'openaccount',
       meta: {
-        title: '开户',
+        title: i18n.t('hj241'),
         hasHeader: true,
         index: 6
       },
@@ -145,7 +151,7 @@
       path: '/trading-list',
       name: 'TradingList',
       meta: {
-        title: '行情',
+        title: i18n.t('hj242'),
         requireAuth: false,
         hasHeader: false,
         index: 7
@@ -212,7 +218,7 @@
       path: '/listdetail',
       name: 'listdetail',
       meta: {
-        title: '详情',
+        title: i18n.t('hj238'),
         requireAuth: false,
         hasHeader: false,
         index: 13
@@ -222,7 +228,7 @@
       path: '/listdetail2',
       name: 'listdetail2',
       meta: {
-        title: '详情',
+        title: i18n.t('hj238'),
         requireAuth: false,
         hasHeader: true,
         index: 14
@@ -283,17 +289,18 @@
         index: 19
       },
       component: Inquiry
-    }, {
-      path: '/user',
-      name: 'user',
-      meta: {
-        title: '我的',
-        requireAuth: false,
-        hasHeader: true,
-        index: 20
-      },
-      component: User
-    },
+    }, 
+    // {
+    //   path: '/user',
+    //   name: 'user',
+    //   meta: {
+    //     title: '我的',
+    //     requireAuth: false,
+    //     hasHeader: true,
+    //     index: 20
+    //   },
+    //   component: User
+    // },
     {
       path: '/transfer',
       name: 'transfer',
@@ -319,7 +326,7 @@
       path: '/warehouse',
       name: 'Warehouse',
       meta: {
-        title: '持仓',
+        title: i18n.t('hj2'),
         requireAuth: false,
         hasHeader: false,
         index: 22
@@ -579,7 +586,7 @@
       path: '/login',
       name: 'newLogin',
       meta: {
-        title: '用户登录',
+        title: i18n.t('hj248'),
         requireAuth: false,
         hasHeader: true,
         index: 47,
@@ -591,7 +598,7 @@
       path: '/register',
       name: 'newRegister',
       meta: {
-        title: '用户注册',
+        title: i18n.t('hj249'),
         requireAuth: false,
         hasHeader: false,
         index: 48,
@@ -603,7 +610,7 @@
       path: '/kline',
       name: 'kline',
       meta: {
-        title: '图标',
+        title: i18n.t('hj238'),
         requireAuth: false,
         hasHeader: false,
         index: 49,
@@ -615,7 +622,7 @@
       path: '/TradingBuy',
       name: 'TradingBuy',
       meta: {
-        title: '图标',
+        title: i18n.t('hj237'),
         requireAuth: false,
         hasHeader: false,
         index: 50,
@@ -624,6 +631,88 @@
       component: TradingBuy
     },
     {
+      path: '/User',
+      name: 'NewUser',
+      meta: {
+        title: i18n.t('hj243'),
+        requireAuth: false,
+        hasHeader: false,
+        index: 51,
+      },
+      component: NewUser
+    },
+    {
+      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: '*',
       redirect: '/home'

--
Gitblit v1.9.3