From d0ebea9cdc793abeb06dfa6ef20880f97686eda3 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Thu, 26 Feb 2026 10:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E7=BA=A6=E7=9A=84?= =?UTF-8?q?=E6=AD=A2=E7=9B=88=E6=AD=A2=E6=8D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/index.js | 3 ++- src/views/contract/exchange-store.vue | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/i18n/index.js b/src/i18n/index.js index a46557b..91f4f27 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -39,7 +39,8 @@ if (querystring.includes('lang')) { // 加载i18n语言包 const i18n = new VueI18n({ locale: local, // 默认语言 - messages: { en, cn,tw,kor,jp,de,fin,fra,it,pl,pt,spa,swe,ukr,tr } // 文件列表 + messages: { en, cn,tw,kor,jp,de,fin,fra,it,pl,pt,spa,swe,ukr,tr } ,// 文件列表 + silentFallbackWarn: true, }); // 加载element语言包 diff --git a/src/views/contract/exchange-store.vue b/src/views/contract/exchange-store.vue index 30e9881..e197194 100644 --- a/src/views/contract/exchange-store.vue +++ b/src/views/contract/exchange-store.vue @@ -656,7 +656,22 @@ export default { data.amount = this.sellform.amount; data.checkbox = this.checkboxSell; } + + if(side==1&&this.checkboxBuy){ + data.tp_trigger_price = this.buyform.pri1; + data.sl_trigger_price = this.buyform.pri2; + }else{ + data.tp_trigger_price = this.sellform.pri1; + data.sl_trigger_price = this.sellform.pri2; + } Contract.openPosition(data).then(() => { + if(side==1&&this.checkboxBuy){ + this.buyform.pri1 = ""; + this.buyform.pri2 = ""; + }else{ + this.sellform.pri1 = ""; + this.sellform.pri2 = ""; + } this.contractAccount(); this.buyform.amount = 0; this.sellform.amount = 0;