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;