|
|
|
@ -863,7 +863,7 @@ export default { |
|
|
|
watch: { |
|
|
|
maxNum(n){ |
|
|
|
this.form.amount = Math.round((this.maxNum * this.sliderActive1) / 100); |
|
|
|
this.margin=this.form.amount/this.form.lever_rate |
|
|
|
this.margin=Math.round(this.form.amount/this.form.lever_rate) |
|
|
|
}, |
|
|
|
symbol() { |
|
|
|
this.$emit("symbols",this.symbol) |
|
|
|
@ -1174,6 +1174,7 @@ export default { |
|
|
|
this.list.map(item=>{ |
|
|
|
item.unRealProfit=(parseFloat(item.unRealProfit)).toFixed(2) |
|
|
|
}) |
|
|
|
this.openNum() |
|
|
|
if (!boo) { |
|
|
|
this.sendPrice(); |
|
|
|
} |
|
|
|
@ -1349,7 +1350,7 @@ export default { |
|
|
|
this.getCurrentEntrust() |
|
|
|
} |
|
|
|
this.contractAccount(); |
|
|
|
this.openNum() |
|
|
|
// this.openNum() |
|
|
|
}); |
|
|
|
}, |
|
|
|
sliderChange(n,i) { |
|
|
|
@ -1357,7 +1358,7 @@ export default { |
|
|
|
this.form.amount = Math.round((this.maxNum * n) / 100); |
|
|
|
this.sliderActive=i |
|
|
|
this.sliderActive1=n |
|
|
|
this.margin=this.form.amount/this.form.lever_rate |
|
|
|
this.margin=Math.round(this.form.amount/this.form.lever_rate) |
|
|
|
}, |
|
|
|
pingChange(n,i) { |
|
|
|
console.log(n) |
|
|
|
@ -1475,7 +1476,7 @@ export default { |
|
|
|
this.pingAmount = ""; |
|
|
|
this.holdPosition(); |
|
|
|
this.$toast(res.message); |
|
|
|
this.openNum() |
|
|
|
// this.openNum() |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 一键平仓 |
|
|
|
@ -1545,7 +1546,6 @@ export default { |
|
|
|
Contract.onekeyAllFlat({}).then(() => { |
|
|
|
this.holdPosition(true); |
|
|
|
this.$toast(this.$t("contract.l0")); |
|
|
|
this.openNum() |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|