5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-07-06 c2a1a725ad13212723e0fddd078616d0af67d5c7
开空开多容易混乱问题
2 files modified
9 ■■■■■ changed files
src/components/constract/PerpetualContract/createOrder.vue 4 ●●●● patch | view | raw | blame | history
src/components/constract/PerpetualContract/orderCom/openDialog.vue 5 ●●●●● patch | view | raw | blame | history
src/components/constract/PerpetualContract/createOrder.vue
@@ -530,10 +530,10 @@
        }
        if (this.isActive === 0) {
          // 开仓弹窗 不弹出直接确认
          this.$refs.openDialog.handleSubmit();
          this.$refs.openDialog.handleSubmit(type);
        } else {
          // 平仓弹窗
          this.$refs.closeDialog.handleSubmit();
          this.$refs.closeDialog.handleSubmit(type);
        }
      }
    },
src/components/constract/PerpetualContract/orderCom/openDialog.vue
@@ -134,9 +134,10 @@
    close() {
      this.isShow = false;
    },
    handleSubmit() {
    handleSubmit(type) {
      console.log("handleSubmit: ", type, this.sellOrBuy);
      const data = {
        direction: this.sellOrBuy,
        direction: type || this.sellOrBuy,
        price_type: this.type,
        ...this.info, //价格,数量,杠杆,symbol
      };