1
jhzh
2025-10-22 7d3ca5dd947ad70aaca52c52051f85fcbb7b340d
src/components/Transform/perpetual-open/index.vue
@@ -105,6 +105,27 @@
                  <!-- {{ $t("张") }} -->
                </span>
              </div>
           <div
             class="h-76 lh-76 inputBackground mb-30 flex pr-20 justify-center rounded-lg textColor"
           >
            <input style="width: 133px;"
               :placeholder="selectIndex == 1 ? $t('请输入止盈金额') : ''"
               class="inputBackground pl-20 h-76 border-none text-left rounded-lg"
               v-model="form.stop_price_profit"
             />
             <span class="font-22 font-400 textColor">{{ $t("止盈") }}</span>
           </div>
           <div
             class="h-76 lh-76 inputBackground mb-30 flex pr-20 justify-center rounded-lg textColor" style="margin-bottom:20px"
             v-if="selectIndex == 1"
           >
             <input style="width: 133px;"
               :placeholder="selectIndex == 1 ? $t('请输入止损金额') : ''"
               class="inputBackground pl-20 h-76 border-none text-left rounded-lg"
               v-model="form.stop_price_loss"
             />
             <span class="font-22 font-400 textColor">{{ $t("止损") }}</span>
           </div>
              <!-- <vue-slider v-bind="options" v-model="form.amount"></vue-slider> -->
              <!-- <vue-slider class="mainBox" v-bind="options" :marks="marks" v-model="form.volume" :hide-label="true"  width="90%"
              :railStyle="{ background: '#404040', height: '4px' }"
@@ -570,6 +591,8 @@
        direction: 'buy', // 买or卖
        price_type: 'opponent', // 市价or限价
        lever_rate: 1, // 杠杆
      stop_price_profit: "",
      stop_price_loss: "",
        price: '',
        amount: '', // 数量
        para_id: '' // 交割周琦id
@@ -864,6 +887,14 @@
        this.$router.push('/login')
        return false;
      }
     //  if (!this.form.stop_price_profit) {
     //     this.$toast.fail(this.$t("请输入止盈金额"));
     //      return false;
     //     }
     // if (!this.form.stop_price_loss) {
     //    this.$toast.fail(this.$t("请输入止损金额"));
     //     return false;
     //    }
      if (this.selectIndex == 1) {
        if (!this.form.price) {
          showToast(this.$t('请输入金额'))