5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-06-04 a51ae716cb1eb8e21fc4a5c355d3cdbe02b27d7f
src/components/constract/PerpetualContract/createOrder.vue
@@ -39,8 +39,8 @@
      >
        <el-tab-pane :label="$t('message.home.xianjia')" name="limit">
        </el-tab-pane>
        <el-tab-pane :label="$t('message.home.shijia')" name="opponent">
        </el-tab-pane>
        <!-- <el-tab-pane :label="$t('message.home.shijia')" name="opponent">
        </el-tab-pane> -->
      </el-tabs>
      <!-- 下单 -->
      <div class="place-order-form-box">
@@ -115,7 +115,7 @@
              </div>
            </div>
            <!-- 做空 -->
            <div class="btn-wrapper">
            <div class="btn-wrapper" v-show="isActive == 1">
              <div class="submit-btn-box">
                <button
                  side="sell"
@@ -400,6 +400,7 @@
    // 获取张数,数据转换
    getVolumnByLever() {
      let amount = this.initOpen.volume;
      console.log("amount: ", amount);
      if (this.isActive == 1) {
        amount = Math.max(this.closeSellAmount, this.closeBuyAmount);
      }
@@ -439,11 +440,11 @@
          return;
        }
        if (this.isActive === 0) {
          // 开仓弹窗
          this.$refs.openDialog.open();
          // 开仓弹窗 不弹出直接确认
          this.$refs.openDialog.handleSubmit();
        } else {
          // 平仓弹窗
          this.$refs.closeDialog.open();
          this.$refs.closeDialog.handleSubmit();
        }
      }
    },
@@ -489,9 +490,11 @@
              });
            }
            if (!this.current_lever_rate) {
              this.current_lever_rate = hasLever ? this.lever_rate[0] : "1.00X";
              this.current_lever_rate = hasLever
                ? this.lever_rate[this.lever_rate.length - 1]
                : "1.00X";
              this.current_lever_rate_num = hasLever
                ? this.origin_lever[0]
                ? this.origin_lever[this.lever_rate.length - 1]
                : "1";
            }
          }