5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-06-30 da36f82f34096b61d72f3241e34135ec0e4729bc
计算金额
3 files modified
26 ■■■■ changed files
src/components/constract/PerpetualContract/createOrder.vue 18 ●●●●● patch | view | raw | blame | history
src/components/constract/PerpetualContract/orderCom/amountSlider.vue 2 ●●● patch | view | raw | blame | history
src/i18n/de/home.js 6 ●●●● patch | view | raw | blame | history
src/components/constract/PerpetualContract/createOrder.vue
@@ -319,16 +319,18 @@
    },
    // 获取合约金额
    getContractAmount: function () {
      console.log("获取合约金额", this.initOpen.amount, this.inputAmount);
      const amount = this.inputAmount;
      let data = "0.00";
      if (amount != undefined && this.lever_rate != undefined) {
        if (this.lever_rate?.length > 0) {
          data = amount * this.initOpen.amount;
        } else if (this.lever_rate.length == 0) {
          data = this.sessionObj?.amount * amount * 1;
        }
      }
      return bigDecimal.round(data, 2);
      // if (amount != undefined && this.lever_rate != undefined) {
      //   if (this.lever_rate?.length > 0) {
      data = amount * this.initOpen.amount;
      //   }
      //   else if (this.lever_rate.length == 0) {
      //     data = this.sessionObj?.amount * amount * 1;
      //   }
      // }
      return data;
    },
    // 获取保证金,开仓才需要
    getMargin: function () {
src/components/constract/PerpetualContract/orderCom/amountSlider.vue
@@ -191,7 +191,7 @@
      console.log(maxAmount * rate);
      // data = maxAmount * rate - fl;
      data = maxAmount / this.initOpen.amount;
      data = Math.floor(maxAmount / this.initOpen.amount);
      // this.maxAmount = maxAmount;
      // if (this.lever_rate) {
      //   data = math.format((this.maxAmount * rate), 2);
src/i18n/de/home.js
@@ -50,7 +50,7 @@
  "mingcheng": "Name",
  "zuixinjia": "Der aktuelle Preis",
  "zuixinjia1": "Der aktuelle Preis",
  "24hzhangdie": "24H涨跌",
  "24hzhangdie": "24H Veränderung",
  "24hjiaoyiliang": "24-Stunden-Handelsvolumen",
  "caozuo": "Operation",
  "goumai": "Erwerben",
@@ -127,7 +127,7 @@
  "home1": "Markttrends",
  "home2": "Name",
  "home3": "Der aktuelle Preis",
  "home4": "24H涨跌",
  "home4": "24H Veränderung",
  "home5": "24-Stunden-Handelsvolumen",
  "home6": "Gehen Sie in den Handel",
  "home7": "Mehr anzeigen",
@@ -372,7 +372,7 @@
  "zuishaotou": "Mindeststimmenzahl",
  "zuidatou": "Maximale Wurfweite",
  "pingcangchengong": "Die Stelle wurde erfolgreich abgeschlossen",
  "24xiaoshizhangdie": "24h涨跌",
  "24xiaoshizhangdie": "24H Veränderung",
  "chengjiaoe": "Umsatz",
  "chaxun": "Sich erkundigen",
  "jiaoyidui": "Handelspaare",