From 657853c8b7a56022ef13bbfff7a2c5e5cf011323 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 19 Jan 2026 23:05:50 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=95=B4=E5=90=88?= =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=A1=B5=E9=9D=A2=E5=8F=8A=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=EF=BC=8C=E6=94=AF=E6=8C=81=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=9A=84=E5=AE=A1=E6=A0=B8=E4=B8=8E=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 3 +- src/locales/langs/zh-cn.ts | 3 +- src/router/elegant/imports.ts | 1 + src/router/elegant/routes.ts | 9 ++ src/router/elegant/transform.ts | 3 +- src/typings/elegant-router.d.ts | 3 + src/views/user/components/withdraw.vue | 143 +------------------ src/views/withdraw/index.vue | 186 +++++++++++++++++++++++++ 8 files changed, 208 insertions(+), 143 deletions(-) create mode 100644 src/views/withdraw/index.vue diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 1b63e95..68658b7 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -231,7 +231,8 @@ const local: App.I18n.Schema = { home: 'Home', product: 'Product', user: ' User', - news: 'News' + news: 'News', + withdraw: 'Withdraw' }, page: { login: { diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index b9a4232..4472a26 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -227,7 +227,8 @@ const local: App.I18n.Schema = { home: '首页', product: '产品管理', user: '用户管理', - news: '新闻管理' + news: '新闻管理', + withdraw: '提现管理' }, page: { login: { diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index 3454b50..fb19d70 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -24,4 +24,5 @@ export const views: Record Promise import("@/views/news/index.vue"), product: () => import("@/views/product/index.vue"), user: () => import("@/views/user/index.vue"), + withdraw: () => import("@/views/withdraw/index.vue"), }; diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 94a4b37..f1fec75 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -99,5 +99,14 @@ export const generatedRoutes: GeneratedRoute[] = [ title: 'user', i18nKey: 'route.user' } + }, + { + name: 'withdraw', + path: '/withdraw', + component: 'layout.base$view.withdraw', + meta: { + title: 'withdraw', + i18nKey: 'route.withdraw' + } } ]; diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index 97bb034..f7a6c25 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -171,7 +171,8 @@ const routeMap: RouteMap = { "login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?", "news": "/news", "product": "/product", - "user": "/user" + "user": "/user", + "withdraw": "/withdraw" }; /** diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index 4c2911d..daed5f1 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -26,6 +26,7 @@ declare module "@elegant-router/types" { "news": "/news"; "product": "/product"; "user": "/user"; + "withdraw": "/withdraw"; }; /** @@ -66,6 +67,7 @@ declare module "@elegant-router/types" { | "news" | "product" | "user" + | "withdraw" >; /** @@ -91,6 +93,7 @@ declare module "@elegant-router/types" { | "news" | "product" | "user" + | "withdraw" >; /** diff --git a/src/views/user/components/withdraw.vue b/src/views/user/components/withdraw.vue index 99859ad..0a790d5 100644 --- a/src/views/user/components/withdraw.vue +++ b/src/views/user/components/withdraw.vue @@ -1,154 +1,17 @@ diff --git a/src/views/withdraw/index.vue b/src/views/withdraw/index.vue new file mode 100644 index 0000000..cc4a05f --- /dev/null +++ b/src/views/withdraw/index.vue @@ -0,0 +1,186 @@ + + + + +