From 335dfbdf38b9e37c1383da28232ee725bb92185e Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sun, 10 Aug 2025 18:12:24 +0800
Subject: [PATCH] 1
---
src/views/home/components/HomeRight.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/home/components/HomeRight.vue b/src/views/home/components/HomeRight.vue
index 74b1e4d..752fdce 100644
--- a/src/views/home/components/HomeRight.vue
+++ b/src/views/home/components/HomeRight.vue
@@ -45,8 +45,9 @@
<div class="value">
{{ obj.type | currencySymbol }}
{{ (obj.nowPrice * bform.num) | _toLocaleString }}
- <div v-if="obj.type == 'US'">
- ≈ MX$ {{ (obj.nowPrice * bform.num * utm) | _toLocaleString }}
+ <div v-if="obj.type != $mc">
+ ≈ $
+ {{ (obj.nowPrice * bform.num * rate(obj.type)) | _toLocaleString }}
</div>
</div>
</div>
@@ -103,8 +104,9 @@
<div class="value">
{{ obj.type | currencySymbol }}
{{ (obj.nowPrice * sform.num) | _toLocaleString }}
- <div v-if="obj.type == 'US'">
- ≈ MX$ {{ (obj.nowPrice * sform.num * utm) | _toLocaleString }}
+ <div v-if="obj.type != $mc">
+ ≈ $
+ {{ (obj.nowPrice * sform.num * rate(obj.type)) | _toLocaleString }}
</div>
</div>
</div>
@@ -167,10 +169,10 @@
},
// 通过进度条来计算数量
bVal(val) {
- if (this.obj.type == "US")
+ if (this.obj.type != this.$mc)
this.bform.num = Math.floor(
(this.moneyData.availableBalance * (val / 100)) /
- (this.obj.nowPrice * this.utm)
+ (this.obj.nowPrice * this.rate(this.obj.type))
);
else
this.bform.num = Math.floor(
--
Gitblit v1.9.3