| | |
| | | <!-- 保证金 --> |
| | | <div class="submit-info-item"> |
| | | <div>{{ $t("message.home.baozhengjin") }}:</div> |
| | | <div>{{ getMargin }} {{ unit }}</div> |
| | | <div>{{ getMargins }} {{ unit }}</div> |
| | | </div> |
| | | <!-- 手续费 --> |
| | | <div class="submit-info-item"> |
| | |
| | | } |
| | | return bigDecimal.round(data, 2); |
| | | }, |
| | | getMargins: function () { |
| | | const amount = this.inputAmount; |
| | | let data = "0.00"; |
| | | if ( |
| | | this.isActive === 0 && |
| | | amount != undefined && |
| | | this.lever_rate.length != undefined && |
| | | this.sessionObj.amount |
| | | ) { |
| | | if (this.lever_rate.length > 0) { |
| | | data = this.sessionObj.amount * amount ; |
| | | } else if (this.lever_rate.length == 0) { |
| | | data = this.sessionObj.amount * amount * 1; |
| | | } |
| | | } |
| | | return bigDecimal.round(data, 2); |
| | | }, |
| | | // 获取保证金,开仓才需要 |
| | | getMargin: function () { |
| | | const amount = this.inputAmount; |
| | |
| | | let data = "0.00"; |
| | | if (amount && this.isActive == 0) { |
| | | // 每手的数量*多少手(张)*每手的手续费 |
| | | data = amount * this.sessionObj.fee; |
| | | data = amount * this.current_lever_rate_num * this.sessionObj.fee; |
| | | } |
| | | return bigDecimal.round(data, 2); |
| | | }, |