From 58b0f1e9bd03a472321acf1dfc4e89fc4ce9df7a Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Mon, 29 Sep 2025 01:14:10 +0800
Subject: [PATCH] 9.28更换api

---
 src/page/markets/aiTrading.vue |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/page/markets/aiTrading.vue b/src/page/markets/aiTrading.vue
index 91bbe52..fa72367 100644
--- a/src/page/markets/aiTrading.vue
+++ b/src/page/markets/aiTrading.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="ai_trading">
-    <page-head :title="`AI ${$t('量化交易')}`">
+    <page-head :title="`${$t('量化交易')}`">
       <template slot="right">
         <div class="head_right" @click="$router.push('/aiTradingOrder')">
           {{ $t("订单") }}
@@ -55,7 +55,7 @@
     <van-popup v-model="buyShow" round>
       <van-form class="buy_popup" @submit="popupSubmit">
         <div class="popup_title flex-center">
-          <span>{{ `AI ${$t("量化交易")}` }}</span>
+          <span>{{ `${$t("量化交易")}` }}</span>
         </div>
 
         <div class="division"></div>
@@ -91,9 +91,9 @@
 
         <div
           class="popup_item popup_name flex-end"
-          v-if="popupPrice && popupData.stockType != 'MEX'"
+          v-if="popupPrice && popupData.stockType != 'US'"
         >
-          <span>≈ MX$ {{ (utm * popupPrice).toFixed(2) }}</span>
+          <span>≈ $ {{ (rate * popupPrice).toFixed(2) }}</span>
         </div>
 
         <div class="division"></div>
@@ -136,6 +136,16 @@
       popupPrice: "" // 购买金额
     };
   },
+  computed: {
+    // 计算当前汇率
+    rate() {
+      let rate = 1;
+      if (this.popupData.stockType == "HK") rate = this.htu;
+      else if (this.popupData.stockType == "IN") rate = this.itu;
+      else if (this.popupData.stockType == "TW") rate = this.ttu;
+      return rate;
+    }
+  },
   created() {
     this.getStockAiList();
   },

--
Gitblit v1.9.3