瀏覽代碼

feature: 1

ljc 5 月之前
父節點
當前提交
d8cb99afd5

+ 3 - 3
src/config/index.ts

@@ -19,7 +19,7 @@ switch (c) {
   case 'test':
     Host00 = ht + '//secure.' + ho + '.com'
     // Host85 = ht + '//ad.' + ho + '.com'
-    Host85 = 'http://103.158.191.66:8501' // 测试
+    Host85 = 'http://103.158.191.66:8888' // 测试
     Host05 = ht + '//file.' + ho + '.com'
     Host80 = ht + '//secure.' + ho + '.com'
     // Host05 = "http://103.171.34.61:8705"
@@ -40,8 +40,8 @@ switch (c) {
     Host05 = 'http://103.171.34.61:8705'
     Host80 = 'http://192.168.0.30:8000'
     // Host85 = 'http://192.168.0.18:8500' // 高超本地
-    Host85 = 'http://192.168.0.38:8501' // 孔向阳本地
-    Host85 = 'http://103.158.191.66:8501' // 测试
+    Host85 = 'http://192.168.0.38:8888' // 孔向阳本地
+    // Host85 = 'http://103.158.191.66:8501' // 测试
     // Host85="http://192.168.0.30:8500"
     break
 }

+ 1 - 9
src/routers/index.ts

@@ -37,13 +37,11 @@ export const constantRoutes: Array<RouteRecordRaw & extendRoute> = [
     path: '/404',
     name: '404',
     component: () => import('@/views/errorPages/404.vue'),
-    hidden: true,
   },
   {
     path: '/403',
     name: '403',
     component: () => import('@/views/errorPages/403.vue'),
-    hidden: true,
   },
   {
     path: '/login',
@@ -56,13 +54,11 @@ export const constantRoutes: Array<RouteRecordRaw & extendRoute> = [
         name: 'SignIn',
         meta: { title: 'login', icon: 'House' },
         component: () => import('@/views/login/index.vue'),
-        hidden: true,
       },
       {
         path: '/forget',
         name: 'Forget',
         component: () => import('@/views/login/Forget.vue'),
-        hidden: true,
       },
     ],
   },
@@ -96,11 +92,7 @@ const router = createRouter({
 
 function loggedIn() {
   // return true
-  if (sessionStorage.getItem('user')) {
-    return true
-  } else {
-    return false
-  }
+  return !!sessionStorage.getItem('user')
 }
 
 router.beforeEach((to, from, next) => {

+ 13 - 25
src/routers/modules/uCard.ts

@@ -5,7 +5,7 @@ const uCardRoute = {
   },
   path: 'card',
   name: 'R-Card',
-  component: () => import(/* webpackChunkName: "cardpage" */ '@/views/page/Page.vue'),
+  component: () => import('@/views/page/Page.vue'),
   children: [
     {
       meta: {
@@ -13,8 +13,7 @@ const uCardRoute = {
       },
       path: 'order',
       name: 'R-CardOrder',
-      component: () =>
-        import(/* webpackChunkName: "CardOrder" */ '@/views/card/CardOrder/index.vue'),
+      component: () => import('@/views/card/CardOrder/index.vue'),
     },
     {
       meta: {
@@ -38,8 +37,7 @@ const uCardRoute = {
       },
       path: 'operate',
       name: 'R-CardOperate',
-      component: () =>
-        import(/* webpackChunkName: "CardOperate" */ '@/views/card/CardOperate/index.vue'),
+      component: () => import('@/views/card/CardOperate/index.vue'),
     },
     {
       meta: {
@@ -47,8 +45,7 @@ const uCardRoute = {
       },
       path: 'userOrder',
       name: 'R-UserOrder',
-      component: () =>
-        import(/* webpackChunkName: "UserOrder" */ '@/views/card/CardUserOrder/index.vue'),
+      component: () => import('@/views/card/CardUserOrder/index.vue'),
     },
     {
       meta: {
@@ -56,8 +53,7 @@ const uCardRoute = {
       },
       path: 'userRights',
       name: 'R-UserRights',
-      component: () =>
-        import(/* webpackChunkName: "UserRights" */ '@/views/card/CardUserRights/index.vue'),
+      component: () => import('@/views/card/CardUserRights/index.vue'),
     },
     {
       meta: {
@@ -65,8 +61,7 @@ const uCardRoute = {
       },
       path: 'config',
       name: 'R-CardConfig',
-      component: () =>
-        import(/* webpackChunkName: "CardConfig" */ '@/views/card/CardConfig/index.vue'),
+      component: () => import('@/views/card/CardConfig/index.vue'),
     },
     {
       meta: {
@@ -74,8 +69,7 @@ const uCardRoute = {
       },
       path: 'idTypeConfig',
       name: 'R-IdTypeConfig',
-      component: () =>
-        import(/* webpackChunkName: "IdTypeConfig" */ '@/views/card/CardIdTypeConfig/index.vue'),
+      component: () => import('@/views/card/CardIdTypeConfig/index.vue'),
     },
     {
       meta: {
@@ -99,8 +93,7 @@ const uCardRoute = {
       },
       path: 'transactions',
       name: 'R-Transactions',
-      component: () =>
-        import(/* webpackChunkName: "Transactions" */ '@/views/card/CardTransactions/index.vue'),
+      component: () => import('@/views/card/CardTransactions/index.vue'),
     },
     {
       meta: {
@@ -116,19 +109,16 @@ const uCardRoute = {
       },
       path: 'global/currency',
       name: 'R-GlobalCurrency',
-      component: () =>
-        import(
-          /* webpackChunkName: "CardGlobalCurrency" */ '@/views/card/CardGlobalCurrency/index.vue'
-        ),
+      component: () => import('@/views/card/CardGlobalCurrency/index.vue'),
     },
+    // cwg速汇
     {
       meta: {
         OnBreadCrumb: true,
       },
       path: 'global/order',
       name: 'R-GlobalOrder',
-      component: () =>
-        import(/* webpackChunkName: "GlobalOrder" */ '@/views/card/CardGlobalOrder/index.vue'),
+      component: () => import('@/views/card/CardGlobalOrder/index.vue'),
     },
     // 区块链
     {
@@ -190,8 +180,7 @@ const uCardRoute = {
       },
       path: 'recharge',
       name: 'R-Recharge',
-      component: () =>
-        import(/* webpackChunkName: "Recharge" */ '@/views/card/CardRecharge/index.vue'),
+      component: () => import('@/views/card/CardRecharge/index.vue'),
     },
     {
       meta: {
@@ -199,8 +188,7 @@ const uCardRoute = {
       },
       path: 'detail/:cardNumber',
       name: 'R-CardDetail',
-      component: () =>
-        import(/* webpackChunkName: "CardDetail" */ '@/views/card/CardDetail/index.vue'),
+      component: () => import('@/views/card/CardDetail/index.vue'),
     },
   ],
 }

+ 2 - 3
src/routers/modules/user.ts

@@ -13,7 +13,7 @@ const userRoute = {
       },
       path: 'list',
       name: 'R-UserList',
-      component: () => import(/* webpackChunkName: "list" */ '@/views/user/userList/index.vue'),
+      component: () => import('@/views/user/userList/index.vue'),
     },
     {
       meta: {
@@ -21,8 +21,7 @@ const userRoute = {
       },
       path: 'role',
       name: 'R-Role',
-      component: () =>
-        import(/* webpackChunkName: "CardOrder" */ '@/views/user/userRole/index.vue'),
+      component: () => import('@/views/user/userRole/index.vue'),
     },
   ],
 }

+ 0 - 1
src/views/card/CardRecharge/index.vue

@@ -433,7 +433,6 @@
   const pigeon = inject('pigeon')
 
   // 异步加载组件
-  const TradingInfoAdd = defineAsyncComponent(() => import('@/views/global/VirtualCard.vue'))
   const DetailedInfoCid = defineAsyncComponent(() =>
     import('@/views/components/DetailedInfoCid/index.vue')
   )

+ 1 - 1
src/views/components/ViewCardSingle/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="InfoBox" id="TradingDetailedInfoAdd" :class="{ active: dialogInfoTradingSingle }">
+  <div id="TradingDetailedInfoAdd" class="InfoBox" :class="{ active: dialogInfoTradingSingle }">
     <div class="header">
       <div>
         <span class="title">{{ $t('R-Popup-Single') }}</span>