From 4a145cd38198415073ba10050ae8a85350518351 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sun, 10 Aug 2025 10:32:42 +0800
Subject: [PATCH] 1
---
src/page/markets/aiTrading.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/page/markets/aiTrading.vue b/src/page/markets/aiTrading.vue
index 6d1bfc5..fa72367 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>
@@ -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