From f2f311fdab0b241d54673e4f89ff6c3feea816cf Mon Sep 17 00:00:00 2001 From: Seven Date: Wed, 24 Dec 2025 20:42:39 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E5=AF=B9=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=8C=85?= =?UTF-8?q?=E6=8B=AC=E6=B7=BB=E5=8A=A0=E4=BA=A4=E6=98=93=E5=AF=B9=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=92=8C=E8=A7=86=E5=9B=BE=EF=BC=9B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=B8=E5=85=B3=E8=B7=AF=E7=94=B1=E5=92=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 12 +- src/router/elegant/imports.ts | 1 + src/router/elegant/routes.ts | 14 +- src/router/elegant/transform.ts | 1 + src/typings/components.d.ts | 2 + src/typings/elegant-router.d.ts | 3 + src/views/tradingPairs/components/add.vue | 177 +++++++++++++++++++ src/views/tradingPairs/index.vue | 206 ++++++++++++++++++++++ 9 files changed, 409 insertions(+), 9 deletions(-) create mode 100644 src/views/tradingPairs/components/add.vue create mode 100644 src/views/tradingPairs/index.vue diff --git a/package.json b/package.json index c6d2faa..cdc33b7 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@better-scroll/core": "2.5.1", "@elysiajs/eden": "^1.4.5", "@iconify/vue": "5.0.0", - "@riwa/api-types": "http://192.168.1.27:9527/api/riwa-api-types-0.0.64.tgz", + "@riwa/api-types": "http://192.168.1.27:9527/api/riwa-api-types-0.0.66.tgz", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb16d0d..77c1618 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: 5.0.0 version: 5.0.0(vue@3.5.25(typescript@5.9.3)) '@riwa/api-types': - specifier: http://192.168.1.27:9527/api/riwa-api-types-0.0.64.tgz - version: http://192.168.1.27:9527/api/riwa-api-types-0.0.64.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))) + specifier: http://192.168.1.27:9527/api/riwa-api-types-0.0.66.tgz + version: http://192.168.1.27:9527/api/riwa-api-types-0.0.66.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))) '@sa/axios': specifier: workspace:* version: link:packages/axios @@ -1068,9 +1068,9 @@ packages: '@quansync/fs@0.1.6': resolution: {integrity: sha512-zoA8SqQO11qH9H8FCBR7NIbowYARIPmBz3nKjgAaOUDi/xPAAu1uAgebtV7KXHTc6CDZJVRZ1u4wIGvY5CWYaw==} - '@riwa/api-types@http://192.168.1.27:9527/api/riwa-api-types-0.0.64.tgz': - resolution: {tarball: http://192.168.1.27:9527/api/riwa-api-types-0.0.64.tgz} - version: 0.0.64 + '@riwa/api-types@http://192.168.1.27:9527/api/riwa-api-types-0.0.66.tgz': + resolution: {tarball: http://192.168.1.27:9527/api/riwa-api-types-0.0.66.tgz} + version: 0.0.66 peerDependencies: '@elysiajs/eden': ^1.4.5 @@ -5057,7 +5057,7 @@ snapshots: dependencies: quansync: 0.3.0 - '@riwa/api-types@http://192.168.1.27:9527/api/riwa-api-types-0.0.64.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': + '@riwa/api-types@http://192.168.1.27:9527/api/riwa-api-types-0.0.66.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': dependencies: '@elysiajs/eden': 1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)) diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index b7e5979..9cf0814 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -25,6 +25,7 @@ export const views: Record Promise import("@/views/rwa/product/index.vue"), rwa_producttype: () => import("@/views/rwa/productType/index.vue"), rwa_subscribe: () => import("@/views/rwa/subscribe/index.vue"), + tradingpairs: () => import("@/views/tradingPairs/index.vue"), transfer: () => import("@/views/transfer/index.vue"), user_bank: () => import("@/views/user/bank/index.vue"), user_bankcard: () => import("@/views/user/bankcard/index.vue"), diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 0793c22..d4059c7 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -215,14 +215,24 @@ export const generatedRoutes: GeneratedRoute[] = [ } ] }, - { + { name: 'transfer', path: '/transfer', component: 'layout.base$view.transfer', meta: { title: 'transfer', i18nKey: 'route.transfer', - order: 4 + order: 5 + } + }, + { + name: 'tradingpairs', + path: '/tradingpairs', + component: 'layout.base$view.tradingpairs', + meta: { + title: 'tradingpairs', + i18nKey: 'route.tradingpairs', + order: 6 } }, ]; diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index 1c4decd..9e16938 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -175,6 +175,7 @@ const routeMap: RouteMap = { "rwa_product": "/rwa/product", "rwa_producttype": "/rwa/producttype", "rwa_subscribe": "/rwa/subscribe", + "tradingpairs": "/tradingpairs", "transfer": "/transfer", "user": "/user", "user_bank": "/user/bank", diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index e57b793..092613b 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -59,6 +59,7 @@ declare module 'vue' { NEmpty: typeof import('naive-ui')['NEmpty'] NForm: typeof import('naive-ui')['NForm'] NFormItem: typeof import('naive-ui')['NFormItem'] + NFormItemGi: typeof import('naive-ui')['NFormItemGi'] NGi: typeof import('naive-ui')['NGi'] NGrid: typeof import('naive-ui')['NGrid'] NInput: typeof import('naive-ui')['NInput'] @@ -148,6 +149,7 @@ declare global { const NEmpty: typeof import('naive-ui')['NEmpty'] const NForm: typeof import('naive-ui')['NForm'] const NFormItem: typeof import('naive-ui')['NFormItem'] + const NFormItemGi: typeof import('naive-ui')['NFormItemGi'] const NGi: typeof import('naive-ui')['NGi'] const NGrid: typeof import('naive-ui')['NGrid'] const NInput: typeof import('naive-ui')['NInput'] diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index 826cfcc..8238faf 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -29,6 +29,7 @@ declare module "@elegant-router/types" { "rwa_product": "/rwa/product"; "rwa_producttype": "/rwa/producttype"; "rwa_subscribe": "/rwa/subscribe"; + "tradingpairs": "/tradingpairs"; "transfer": "/transfer"; "user": "/user"; "user_bank": "/user/bank"; @@ -77,6 +78,7 @@ declare module "@elegant-router/types" { | "iframe-page" | "login" | "rwa" + | "tradingpairs" | "transfer" | "user" | "withdraw" @@ -106,6 +108,7 @@ declare module "@elegant-router/types" { | "rwa_product" | "rwa_producttype" | "rwa_subscribe" + | "tradingpairs" | "transfer" | "user_bank" | "user_bankcard" diff --git a/src/views/tradingPairs/components/add.vue b/src/views/tradingPairs/components/add.vue new file mode 100644 index 0000000..99ee94e --- /dev/null +++ b/src/views/tradingPairs/components/add.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/src/views/tradingPairs/index.vue b/src/views/tradingPairs/index.vue new file mode 100644 index 0000000..18af84f --- /dev/null +++ b/src/views/tradingPairs/index.vue @@ -0,0 +1,206 @@ + + + + +