From 350f310c0df5fc09d0fa00ce36ed4ce3eee2a6b7 Mon Sep 17 00:00:00 2001 From: zzy <1837289056@qq.com> Date: Fri, 12 May 2023 09:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87=E5=9C=B0=E5=9D=80=E6=A0=8F?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/router/routes.ts | 26 ++++++++++++++ src/views/IPO/index.vue | 2 +- src/views/login/components/Lang.vue | 6 +++- src/views/login/index.vue | 54 ++++++++++++++++++----------- 5 files changed, 67 insertions(+), 22 deletions(-) diff --git a/src/App.vue b/src/App.vue index 33bdf9c..fd03273 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,6 +10,7 @@ import { defineComponent, ref, onBeforeMount, onMounted, watch ,provide} from 'vue' import { ElConfigProvider } from 'element-plus' import { ipoStore } from "@/stores/ipo" +import router from './router' const showRouter=ref(true) const reflashRouter=()=>{ showRouter.value=false; diff --git a/src/router/routes.ts b/src/router/routes.ts index 5e58af4..12ba7f7 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -28,6 +28,32 @@ export const staticRoutes: Array = [ hidden: true, }, }, + + { + path: "/home/en", + name: "XLogin1", + component: () => import("@/views/login/index.vue"), + meta: { + hidden: true, + }, + }, + { + path: "/home/tc", + name: "XLogin2", + component: () => import("@/views/login/index.vue"), + meta: { + hidden: true, + }, + }, + { + path: "/home/sc", + name: "XLogin3", + component: () => import("@/views/login/index.vue"), + meta: { + hidden: true, + }, + }, + { path: "/dashboard", name: "Xdashboard", diff --git a/src/views/IPO/index.vue b/src/views/IPO/index.vue index d6e9b0b..ccdd61f 100644 --- a/src/views/IPO/index.vue +++ b/src/views/IPO/index.vue @@ -641,7 +641,7 @@ function setAdvisers(mockRes: any) { } function setTransaction(mockRes: any) { const { brokerage, sfcLevy, sehkTradingFee, afrcTransactionLevy } = mockRes; - console.log('@@11123', afrcTransactionLevy) + //console.log('@@11123', afrcTransactionLevy) const arr = [ { info: has_data(brokerage?.toFixed(5), "%"), info2: has_data(sfcLevy?.toFixed(5), "%") }, { info: has_data(sehkTradingFee?.toFixed(5), "%"), info2: has_data(afrcTransactionLevy?.toFixed(5), "%") }, diff --git a/src/views/login/components/Lang.vue b/src/views/login/components/Lang.vue index 8718941..05f39e3 100644 --- a/src/views/login/components/Lang.vue +++ b/src/views/login/components/Lang.vue @@ -18,6 +18,7 @@ import { ref, defineExpose ,inject} from 'vue'; import { getCurrentInstance } from 'vue' import { ipoStore } from "@/stores/ipo" import { useRouter } from "vue-router"; +import router from '@/router'; const store = ipoStore() const route=useRouter() const { proxy } = (getCurrentInstance() as any) @@ -30,6 +31,7 @@ const IpoReflash=()=>{ // } reflashRouter() } + const handleLang1 = () => { if (proxy.$i18n.locale = 'en') { proxy.$i18n.locale = 'en' @@ -37,7 +39,7 @@ const handleLang1 = () => { store.setLocale(1) IpoReflash() - + } const handleLang2 = () => { @@ -46,6 +48,7 @@ const handleLang2 = () => { } store.setLocale(2) IpoReflash() + } const handleLang3 = () => { if (proxy.$i18n.locale = 'zhCn') { @@ -53,6 +56,7 @@ const handleLang3 = () => { } store.setLocale(3) IpoReflash() + } defineExpose({ showLang diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 4773e43..b91830d 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -15,27 +15,21 @@
+ :enterkeyhint="'search'">
- - -
@@ -64,15 +58,11 @@ -
No event
-
@@ -84,7 +74,7 @@ export default { };