From 7d3ca5dd947ad70aaca52c52051f85fcbb7b340d Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 22 Oct 2025 03:12:53 +0800
Subject: [PATCH] 1

---
 src/components/Transform/perpetual-open/index.vue |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/components/Transform/perpetual-open/index.vue b/src/components/Transform/perpetual-open/index.vue
index 34797f5..dbb66b2 100644
--- a/src/components/Transform/perpetual-open/index.vue
+++ b/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('请输入金额'))

--
Gitblit v1.9.3