From eeb8f18b48989bac5eb5847a51359496956c5339 Mon Sep 17 00:00:00 2001
From: 李 <344137771@qq.com>
Date: Thu, 30 Apr 2026 18:32:45 +0800
Subject: [PATCH] 1

---
 src/page/markets/aiTrading.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/page/markets/aiTrading.vue b/src/page/markets/aiTrading.vue
index 6d1bfc5..8cdb016 100644
--- a/src/page/markets/aiTrading.vue
+++ b/src/page/markets/aiTrading.vue
@@ -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>≈ $ {{ (utm * popupPrice).toFixed(2) }}</span>
+          <span>≈ $ {{ (rate * popupPrice).toFixed(2) }}</span>
         </div>
 
         <div class="division"></div>
@@ -135,6 +135,16 @@
       popupData: {}, // 点击购买的数据
       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();
@@ -184,7 +194,7 @@
 </script>
 
 <style lang="less" scoped>
-@green: #c4d600;
+@green: #00f0ff;
 .ai_trading {
   font-size: 10vw;
   width: 100%;

--
Gitblit v1.9.3