diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 68658b7..34377fd 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -232,7 +232,8 @@ const local: App.I18n.Schema = { product: 'Product', user: ' User', news: 'News', - withdraw: 'Withdraw' + withdraw: 'Withdraw', + wallet: 'Wallet' }, page: { login: { diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 4472a26..28e2cc5 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -228,7 +228,8 @@ const local: App.I18n.Schema = { product: '产品管理', user: '用户管理', news: '新闻管理', - withdraw: '提现管理' + withdraw: '提现管理', + wallet: '钱包管理' }, page: { login: { diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index fb19d70..4aeeb97 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -24,5 +24,6 @@ export const views: Record Promise import("@/views/news/index.vue"), product: () => import("@/views/product/index.vue"), user: () => import("@/views/user/index.vue"), + wallet: () => import("@/views/wallet/index.vue"), withdraw: () => import("@/views/withdraw/index.vue"), }; diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index f1fec75..af12d72 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -100,6 +100,15 @@ export const generatedRoutes: GeneratedRoute[] = [ i18nKey: 'route.user' } }, + { + name: 'wallet', + path: '/wallet', + component: 'layout.base$view.wallet', + meta: { + title: 'wallet', + i18nKey: 'route.wallet' + } + }, { name: 'withdraw', path: '/withdraw', diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index f7a6c25..a8e67d1 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -172,6 +172,7 @@ const routeMap: RouteMap = { "news": "/news", "product": "/product", "user": "/user", + "wallet": "/wallet", "withdraw": "/withdraw" }; diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index e6044bc..5116e16 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -51,8 +51,6 @@ declare module 'vue' { NColorPicker: typeof import('naive-ui')['NColorPicker'] NDataTable: typeof import('naive-ui')['NDataTable'] NDatePicker: typeof import('naive-ui')['NDatePicker'] - NDescriptions: typeof import('naive-ui')['NDescriptions'] - NDescriptionsItem: typeof import('naive-ui')['NDescriptionsItem'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDivider: typeof import('naive-ui')['NDivider'] NDrawer: typeof import('naive-ui')['NDrawer'] @@ -100,6 +98,7 @@ declare module 'vue' { TableHeaderOperation: typeof import('./../components/advanced/table-header-operation.vue')['default'] ThemeSchemaSwitch: typeof import('./../components/common/theme-schema-switch.vue')['default'] Upload: typeof import('./../components/upload/index.vue')['default'] + UserSelect: typeof import('./../components/common/user-select.vue')['default'] WaveBg: typeof import('./../components/custom/wave-bg.vue')['default'] } } @@ -145,8 +144,6 @@ declare global { const NColorPicker: typeof import('naive-ui')['NColorPicker'] const NDataTable: typeof import('naive-ui')['NDataTable'] const NDatePicker: typeof import('naive-ui')['NDatePicker'] - const NDescriptions: typeof import('naive-ui')['NDescriptions'] - const NDescriptionsItem: typeof import('naive-ui')['NDescriptionsItem'] const NDialogProvider: typeof import('naive-ui')['NDialogProvider'] const NDivider: typeof import('naive-ui')['NDivider'] const NDrawer: typeof import('naive-ui')['NDrawer'] @@ -194,5 +191,6 @@ declare global { const TableHeaderOperation: typeof import('./../components/advanced/table-header-operation.vue')['default'] const ThemeSchemaSwitch: typeof import('./../components/common/theme-schema-switch.vue')['default'] const Upload: typeof import('./../components/upload/index.vue')['default'] + const UserSelect: typeof import('./../components/common/user-select.vue')['default'] const WaveBg: typeof import('./../components/custom/wave-bg.vue')['default'] } \ No newline at end of file diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index daed5f1..24d9e73 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"; + "wallet": "/wallet"; "withdraw": "/withdraw"; }; @@ -67,6 +68,7 @@ declare module "@elegant-router/types" { | "news" | "product" | "user" + | "wallet" | "withdraw" >; @@ -93,6 +95,7 @@ declare module "@elegant-router/types" { | "news" | "product" | "user" + | "wallet" | "withdraw" >; diff --git a/src/views/wallet/components/edit.vue b/src/views/wallet/components/edit.vue new file mode 100644 index 0000000..18aa5e6 --- /dev/null +++ b/src/views/wallet/components/edit.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/src/views/wallet/index.vue b/src/views/wallet/index.vue new file mode 100644 index 0000000..a1d132d --- /dev/null +++ b/src/views/wallet/index.vue @@ -0,0 +1,209 @@ + + + + +