From 0c291f287091a51909f2927bbc0631ee967e9df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Tue, 30 Jun 2026 13:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=AC=BE=E8=AE=A1=E7=AE=97=E9=87=91?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.pro | 17 + .env.test | 2 +- package.json | 3 +- .../withdraw/components/WithdrawDialog.vue | 657 +++--------------- src/views/capital/withdrawCheck/options.ts | 10 +- .../components/marketMaker/index.vue | 8 +- src/views/mould/handleFee/index.vue | 2 +- src/views/order/withdraw/options.ts | 12 +- src/views/profile/business/options.ts | 12 +- 9 files changed, 136 insertions(+), 587 deletions(-) create mode 100644 .env.pro diff --git a/.env.pro b/.env.pro new file mode 100644 index 0000000..4497a3e --- /dev/null +++ b/.env.pro @@ -0,0 +1,17 @@ +# 生产环境标识(Vite 内置变量,无需修改) +NODE_ENV = production + +# 生产环境接口基础地址 +VITE_API_BASE_URL = https://adminapi.apimcapital.top/api + +# 请求超时时间(毫秒) +VITE_REQUEST_TIMEOUT = 10000 + +# 可选:生产环境其他配置(如关闭调试) +VITE_DEBUG = false + +# 交易mqtt +VITE_MQTT_TRANSACTION_HOST=wss://adminapi.apimcapital.top/mqtt + +# exe 下载基础地址 +VITE_EXE_DOWNLOAD_BASE_URL = https://adminh5.apimcapital.top \ No newline at end of file diff --git a/.env.test b/.env.test index d692d45..8cd4893 100644 --- a/.env.test +++ b/.env.test @@ -14,4 +14,4 @@ VITE_DEBUG = true VITE_MQTT_TRANSACTION_HOST = wss://adminapi.duxiang.wiki/mqtt # exe 下载基础地址 -VITE_EXE_DOWNLOAD_BASE_URL = https://adminh5.duxiang.wiki +VITE_EXE_DOWNLOAD_BASE_URL = https://adminh5.duxiang.wiki \ No newline at end of file diff --git a/package.json b/package.json index 59c64d0..e87016c 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "scripts": { "dev": "vite", "dev:test": "vite --mode test", + "dev:pro": "vite --mode pro", "build": "run-p type-check \"build-only {@}\" --", - "build:prod": "vite build --mode production", + "build:prod": "vite build --mode pro", "build:test": "vite build --mode test", "preview": "vite preview", "build-only": "vite build", diff --git a/src/views/capital/withdraw/components/WithdrawDialog.vue b/src/views/capital/withdraw/components/WithdrawDialog.vue index c028739..e69b254 100644 --- a/src/views/capital/withdraw/components/WithdrawDialog.vue +++ b/src/views/capital/withdraw/components/WithdrawDialog.vue @@ -1,65 +1,25 @@