Browse Source

更新文字

master
luyisha 3 years ago
parent
commit
716c5c3a69
  1. 4
      i18n/lang/en.json
  2. 28
      pages/exchange/open-position.vue

4
i18n/lang/en.json

@ -261,7 +261,7 @@
"c3": "Buy", "c3": "Buy",
"c4": "Sell", "c4": "Sell",
"c5": "Quantity", "c5": "Quantity",
"c6": "Best market transaction", "c6": "Market price",
"c7": "Total Price", "c7": "Total Price",
"c8": "Available Quantity", "c8": "Available Quantity",
"c9": "Total Value", "c9": "Total Value",
@ -750,7 +750,7 @@
"a3":"TP/SL for position", "a3":"TP/SL for position",
"a4":"Best market transaction", "a4":"Best market transaction",
"a5":"Positions", "a5":"Positions",
"a6":"Order management", "a6":"Order Management",
"a7":"Open Orders", "a7":"Open Orders",
"a8":"Order History", "a8":"Order History",
"a9":"multiple", "a9":"multiple",

28
pages/exchange/open-position.vue

@ -115,8 +115,9 @@
<v-input <v-input
v-if="form.type == 1" v-if="form.type == 1"
disabled disabled
:value='$t("first.a4")' :value='$t("exchange.c6")'
class="h-30 p-y-xxs rounded fn-center color-light bg-form-panel-3 p-x-xs" class="h-30 p-y-xxs rounded fn-center bg-form-panel-3 p-x-xs"
style="color: grey;"
></v-input> ></v-input>
</view> </view>
<view> <view>
@ -866,13 +867,26 @@ export default {
// #ifdef APP-PLUS // #ifdef APP-PLUS
return plus.os.name return plus.os.name
// #endif // #endif
} },
marginCheck(){
return parseInt(this.margin);
}
}, },
watch: { watch: {
maxNum(n){ marginCheck: {
this.form.amount = Math.round((this.maxNum * this.sliderActive1) / 100); handler(n){
this.margin=(this.form.amount/this.form.lever_rate) // console.log(n, '-1----');
}, if(n===0){
this.margin = '';
// console.log(this.margin, '--2---');
}
},
immediate: true
},
maxNum(n){
this.form.amount = Math.round((this.maxNum * this.sliderActive1) / 100);
this.margin=(this.form.amount/this.form.lever_rate)
},
symbol() { symbol() {
this.$emit("symbols",this.symbol) this.$emit("symbols",this.symbol)
if (this.unSymbol) { if (this.unSymbol) {

Loading…
Cancel
Save