From 8399c6d4250306b27474157012be241f4c86c8a0 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Tue, 15 Jul 2025 16:29:53 +0800
Subject: [PATCH] 外汇交易

---
 src/i18n/Deutsch.js  |    1 +
 src/i18n/korean.js   |    1 +
 src/i18n/th.js       |    1 +
 src/i18n/fa.js       |    1 +
 src/i18n/Italy.js    |    1 +
 .env                 |    3 ++-
 src/i18n/Japanese.js |    1 +
 src/i18n/vi.js       |    1 +
 src/service/http.js  |    8 ++++----
 src/i18n/cn.js       |    1 +
 src/i18n/en.js       |    1 +
 src/i18n/zhcn.js     |    1 +
 src/config/index.js  |    6 +++---
 13 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/.env b/.env
index 003b1bc..79daec7 100644
--- a/.env
+++ b/.env
@@ -1,2 +1,3 @@
 VITE_APP__TITLE = "Starex"
-VUE_APP_THEME = "dark"
\ No newline at end of file
+VUE_APP_THEME = "dark"
+VITE_API_DOMAIN = "starexapi.agtls.com"
\ No newline at end of file
diff --git a/src/config/index.js b/src/config/index.js
index 7e0481d..5deddf3 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -35,7 +35,7 @@
 
 // const ENV_DEV = 'zhapi.coinbtcs.com' // dev
 // const ENV_DEV = 'openapi.yanshiz.com' // dev
-const ENV_DEV = 'starex.agtls.com' // dev
+const ENV_DEV = import.meta.env.VITE_API_DOMAIN || 'starexapi.agtls.com' // devss
 // const ENV_DEV = '192.168.10.24:8086' // dev
 // const ENV_DEV = 'aa.yanshiz.com' // dev
 
@@ -43,7 +43,7 @@
 // const ENV_PRO = 'qheufhj.site' //  app域名
 // const ENV_PRO = window.location.hostname // 接口域名跟随 H5zhapi.coinbtcs.com
 // const ENV_PRO = 'openapi.yanshiz.com' // 接口域名跟随 H5zhapi.coinbtcs.com
-const ENV_PRO = 'starex.agtls.com' // 接口域名跟随 H5zhapi.coinbtcs.com
+const ENV_PRO = import.meta.env.VITE_API_DOMAIN || 'starexapi.agtls.com' // 接口域名跟随
 
 let base_url = ''
 let ws_url = ''
@@ -61,7 +61,7 @@
 export const WS_URL = ws_url
 export const IMG_PATH = host_url
 // export const HOST_URL = host_url
-export const HOST_URL = 'https://forex.yanshiz.com'; // 静态资源地址
+export const HOST_URL = 'https://starex.agtls.com'; // 静态资源地址
 
 export default {
     sliderOptions: {
diff --git a/src/i18n/Deutsch.js b/src/i18n/Deutsch.js
index 64e8c68..ee96379 100644
--- a/src/i18n/Deutsch.js
+++ b/src/i18n/Deutsch.js
@@ -2784,6 +2784,7 @@
     '外汇交割': 'Devisenlieferung',
     '外汇合约': 'Devisenvertrag“',
     '外汇交易': 'Devisen',
+    "货币兑换": "Währungsumrechnung",
     'ETF交割': 'ETF-Lieferung',
     'ETF合约': 'ETF-Vertrag',
     'ETF交易': 'ETF-Transaktion',
diff --git a/src/i18n/Italy.js b/src/i18n/Italy.js
index f4293c7..9bfb637 100644
--- a/src/i18n/Italy.js
+++ b/src/i18n/Italy.js
@@ -2874,6 +2874,7 @@
     '外汇交割': 'Consegna in valuta estera',
     '外汇合约': 'Contratto di cambio',
     '外汇交易': 'Foreign Exchange',
+    "货币兑换": "Conversione di valuta",
     'ETF交割': 'Consegna ETF',
     'ETF合约': 'Contratto ETF',
     'ETF交易': 'Transazione ET',
diff --git a/src/i18n/Japanese.js b/src/i18n/Japanese.js
index 856e9f2..9da28e3 100644
--- a/src/i18n/Japanese.js
+++ b/src/i18n/Japanese.js
@@ -2642,6 +2642,7 @@
     '外汇交割': '外国為替配送',
     '外汇合约': '外国為替契約',
     '外汇交易': '外国為替',
+    "货币兑换": "通貨交換",
     'ETF交割': 'ETF配信',
     'ETF合约': 'ETF契約',
     'ETF交易': 'ETF トランザクション',
diff --git a/src/i18n/cn.js b/src/i18n/cn.js
index 494437a..4bffaa9 100644
--- a/src/i18n/cn.js
+++ b/src/i18n/cn.js
@@ -2763,6 +2763,7 @@
     '外汇交割': '外匯交割',
     '外汇合约': '外匯合約',
     '外汇交易': '外匯交易',
+    "货币兑换": "貨幣兌換",
     'ETF交割': 'ETF交割',
     'ETF合约': 'ETF合約',
     'ETF交易': 'ETF交易',
diff --git a/src/i18n/en.js b/src/i18n/en.js
index 861f830..0d47725 100644
--- a/src/i18n/en.js
+++ b/src/i18n/en.js
@@ -2739,6 +2739,7 @@
     '外汇交割': 'Foreign Delivery',
     '外汇合约': 'Foreign Contract',
     '外汇交易': 'Foreign Exchange',
+    "货币兑换": "Currency Exchange",
     'ETF交割': 'ETF Delivery',
     'ETF合约': 'ETF Contract',
     'ETF交易': 'ETF Exchange',
diff --git a/src/i18n/fa.js b/src/i18n/fa.js
index 9351e84..18164d7 100644
--- a/src/i18n/fa.js
+++ b/src/i18n/fa.js
@@ -2681,6 +2681,7 @@
     '外汇交割': 'Livraison en devises',
     '外汇合约': 'Contrat de change',
     '外汇交易': 'Foreign Exchange',
+    "货币兑换": "Échange de devise",
     'ETF交割': 'Livraison ETF',
     'ETF合约': 'Contrat ETF',
     'ETF交易': 'Opération ETF',
diff --git a/src/i18n/korean.js b/src/i18n/korean.js
index c735336..14002ba 100644
--- a/src/i18n/korean.js
+++ b/src/i18n/korean.js
@@ -2778,6 +2778,7 @@
     '外汇交割': '외국환배송',
     '外汇合约': '외국환계약',
     '外汇交易': '외환',
+    "货币兑换": "통화 교환",
     'ETF交割': 'ETF 인도',
     'ETF合约': 'ETF 계약',
     'ETF交易': 'ETF 거래',
diff --git a/src/i18n/th.js b/src/i18n/th.js
index 76dedfd..ad8cb8a 100644
--- a/src/i18n/th.js
+++ b/src/i18n/th.js
@@ -2750,6 +2750,7 @@
     '外汇交割': 'การส่งมอบเงินตราต่างประเทศ',
     '外汇合约': 'สัญญาแลกเปลี่ยนเงินตราต่างประเทศ',
     '外汇交易': 'การแลกเปลี่ยนเงินตราต่างประเทศ',
+    "货币兑换": "การแลกเปลี่ยนเงิน",
     'ETF交割': 'การนำส่ง ETF',
     'ETF合约': 'สัญญา ETF',
     'ETF交易': 'ธุรกรรม ETF',
diff --git a/src/i18n/vi.js b/src/i18n/vi.js
index 3a998ac..f284c53 100644
--- a/src/i18n/vi.js
+++ b/src/i18n/vi.js
@@ -2728,6 +2728,7 @@
     '外汇交割': 'Giao hàng Ngoại hối',
     '外汇合约': 'Hợp đồng ngoại hối',
     '外汇交易': 'Ngoại hối',
+    "货币兑换": "Chuyển đổi tiền tệ",
     'ETF交割': 'Giao ETF',
     'ETF合约': 'Hợp đồng ETF',
     'ETF交易': 'Giao dịch ETF',
diff --git a/src/i18n/zhcn.js b/src/i18n/zhcn.js
index c17ab27..867a629 100644
--- a/src/i18n/zhcn.js
+++ b/src/i18n/zhcn.js
@@ -2744,6 +2744,7 @@
     '外汇交割': '外汇交割',
     '外汇合约': '外汇合约',
     '外汇交易': '外汇交易',
+    "货币兑换": "货币兑换",
     'ETF交割': 'ETF交割',
     'ETF合约': 'ETF合约',
     'ETF交易': 'ETF交易',
diff --git a/src/service/http.js b/src/service/http.js
index 4d795d4..622698e 100644
--- a/src/service/http.js
+++ b/src/service/http.js
@@ -6,12 +6,12 @@
 
 import AxiosReques from "./axios";
 import qs from "qs";
-import {BASE_URL} from "@/config";
+import { BASE_URL } from "@/config";
 import { getStorage } from '@/utils'
 
 let baseUrl = BASE_URL
 if (getStorage('tzlj')) {
-    baseUrl = getStorage('tzlj');
+    // baseUrl = getStorage('tzlj');
 }
 /**
  * @description Create axios.
@@ -82,7 +82,7 @@
         // }
         return axios.request({
             url,
-            params: params ? params: {},
+            params: params ? params : {},
             method
         });
     } else {
@@ -124,5 +124,5 @@
  * @param {Object} param Request params.
  */
 export const httpMultipart = ({ url, method, isLoading }, params) => {
-    return createAxios(axiosMultipart, {url, method, isLoading}, params);
+    return createAxios(axiosMultipart, { url, method, isLoading }, params);
 }

--
Gitblit v1.9.3