1
PC-20250623MANY\Administrator
2025-08-10 335dfbdf38b9e37c1383da28232ee725bb92185e
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(