| | |
| | | v-if="form.lever_rate == 25" |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount / (initData.amount + 0.0375)) * |
| | | form.lever_rate |
| | | ) |
| | | Math.floor(initFutrue.amount / (initData.amount + 0.0375)) * |
| | | form.lever_rate |
| | | }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | |
| | | v-if="form.lever_rate == 50" |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount / (initData.amount + 0.075)) * |
| | | form.lever_rate |
| | | ) |
| | | Math.floor(initFutrue.amount / (initData.amount + 0.075)) * |
| | | form.lever_rate |
| | | }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | |
| | | v-if="form.lever_rate == 100" |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount / (initData.amount + 0.15)) * |
| | | form.lever_rate |
| | | ) |
| | | Math.floor(initFutrue.amount / (initData.amount + 0.15)) * |
| | | form.lever_rate |
| | | }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | |
| | | v-if="form.lever_rate == 200" |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount / (initData.amount + 0.3)) * |
| | | form.lever_rate |
| | | ) |
| | | Math.floor(initFutrue.amount / (initData.amount + 0.3)) * |
| | | form.lever_rate |
| | | }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | |
| | | let vol; |
| | | // vol = this.initOpen.volume / 1; |
| | | if (this.form.lever_rate == 25) { |
| | | vol = Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.0375)) * |
| | | this.form.lever_rate |
| | | ); |
| | | vol = |
| | | Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | // this.initData.amount |
| | | this.initFutrue.amount / (this.initData.amount + 0.0375) |
| | | ) * this.form.lever_rate; |
| | | } else if (this.form.lever_rate == 50) { |
| | | vol = Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.075)) * |
| | | this.form.lever_rate |
| | | ); |
| | | vol = |
| | | Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | // this.initData.amount |
| | | this.initFutrue.amount / (this.initData.amount + 0.075) |
| | | ) * this.form.lever_rate; |
| | | } else if (this.form.lever_rate == 100) { |
| | | vol = Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.15) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.15)) * |
| | | this.form.lever_rate |
| | | ); |
| | | vol = |
| | | Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.15) / |
| | | // this.initData.amount |
| | | this.initFutrue.amount / (this.initData.amount + 0.15) |
| | | ) * this.form.lever_rate; |
| | | } else { |
| | | vol = Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.3) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.3)) * |
| | | this.form.lever_rate |
| | | ); |
| | | vol = |
| | | Math.floor( |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.3) / |
| | | // this.initData.amount |
| | | this.initFutrue.amount / (this.initData.amount + 0.3) |
| | | ) * this.form.lever_rate; |
| | | } |
| | | return Math.floor(vol); |
| | | }, |