1
jhzh
2024-08-12 f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff
src/components/constract/PerpetualContract/createOrder.vue
@@ -139,12 +139,13 @@
            <!-- 合约金额=保证金-->
            <div class="submit-info-item">
              <div>{{ $t("message.home.heyuejine") }}:</div>
              <div>{{ getMargin }} {{ unit }}</div>
              <div>{{ (getMargin * parseInt(current_lever_rate)).toFixed(2)  }} {{ unit }}</div>
            </div>
            <!-- 保证金 -->
            <div class="submit-info-item">
              <div>{{ $t("message.home.baozhengjin") }}:</div>
              <div>{{ getMargin }} {{ unit }}</div>
              <!-- <div>{{ (getMargin/parseInt(current_lever_rate)).toFixed(2) }} {{ unit }}</div> -->
            </div>
            <!-- 手续费 -->
            <div class="submit-info-item">
@@ -324,7 +325,7 @@
        this.sessionObj.amount
      ) {
        if (this.lever_rate.length > 0) {
          data = this.sessionObj.amount * amount * this.current_lever_rate_num;
          data = this.sessionObj.amount * amount * 1;
        } else if (this.lever_rate.length == 0) {
          data = this.sessionObj.amount * amount * 1;
        }
@@ -399,9 +400,10 @@
        return 0;
      } else {
        if (this.lever_rate.length > 0) {
          return parseInt(amount / this.current_lever_rate_num);
          // return parseInt(amount / this.current_lever_rate_num);
          return parseInt(amount * 1);
        } else if (this.lever_rate.length == 0) {
          return parseInt(amount / 1);
          return parseInt(amount * 1);
        }
      }
    },