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 @@ + + + + +