5.10航天ui交易所pc端,代码jiem-pc
f11250cff3b6412db8360aae0b3336a8b80b12ae..da36f82f34096b61d72f3241e34135ec0e4729bc
2025-06-30 lxf
计算金额
da36f8 diff | tree
2025-06-30 lxf
图片地址
2d33d7 diff | tree
5 files modified
31 ■■■■ 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/utils/index.js 2 ●●● patch | view | raw | blame | history
src/views/wallet/recharge.vue 3 ●●●● 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",
src/utils/index.js
@@ -27,7 +27,7 @@
  ) {
    url = "/symbol/" + newName + ".png"; //不用过滤
  } else if (newName === "usdc") {
    url = "/wap/symbol/" + filterUSDName + ".png";
    url = "/wap/symbol/" + newName + ".png";
  } else {
    const regex = /(\/){0,1}usd(t){0,1}(\/){0,1}/i;
    const filterUSDName = newName.replace(regex, "");
src/views/wallet/recharge.vue
@@ -567,7 +567,6 @@
        coin: this.coin,
      }).then((res) => {
        const elarr = res.data.page.elements;
        this.blockchain = elarr;
        this.listOpData1 = [];
        for (var i in elarr) {
          if (
@@ -577,9 +576,11 @@
            this.listOpData1.push({
              icon: elarr[i].coin,
              name: elarr[i].blockchain_name,
              ...elarr[i],
            });
          }
        }
        this.blockchain = this.listOpData1;
        this.blockchainIndex = 0;
        this.address = this.blockchain[0].address;
        this.imgURl = this.mounted(this.blockchain[0].address); //TODO 接口返回的地址有问题