From 3bc690331548ef221c37d03637e0618e1d55352b Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 15 Aug 2025 18:07:45 +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