| | |
| | | <!-- {{ $t("张") }} --> |
| | | </span> |
| | | </div> |
| | | <div |
| | | class="h-76 lh-76 inputBackground mb-30 flex pr-20 justify-center rounded-lg textColor" |
| | | > |
| | | <input style="width: 133px;" |
| | | :placeholder="selectIndex == 1 ? $t('请输入止盈金额') : ''" |
| | | class="inputBackground pl-20 h-76 border-none text-left rounded-lg" |
| | | v-model="form.stop_price_profit" |
| | | /> |
| | | <span class="font-22 font-400 textColor">{{ $t("止盈") }}</span> |
| | | </div> |
| | | <div |
| | | class="h-76 lh-76 inputBackground mb-30 flex pr-20 justify-center rounded-lg textColor" style="margin-bottom:20px" |
| | | v-if="selectIndex == 1" |
| | | > |
| | | <input style="width: 133px;" |
| | | :placeholder="selectIndex == 1 ? $t('请输入止损金额') : ''" |
| | | class="inputBackground pl-20 h-76 border-none text-left rounded-lg" |
| | | v-model="form.stop_price_loss" |
| | | /> |
| | | <span class="font-22 font-400 textColor">{{ $t("止损") }}</span> |
| | | </div> |
| | | <!-- <vue-slider v-bind="options" v-model="form.amount"></vue-slider> --> |
| | | <!-- <vue-slider class="mainBox" v-bind="options" :marks="marks" v-model="form.volume" :hide-label="true" width="90%" |
| | | :railStyle="{ background: '#404040', height: '4px' }" |
| | |
| | | direction: 'buy', // 买or卖 |
| | | price_type: 'opponent', // 市价or限价 |
| | | lever_rate: 1, // 杠杆 |
| | | stop_price_profit: "", |
| | | stop_price_loss: "", |
| | | price: '', |
| | | amount: '', // 数量 |
| | | para_id: '' // 交割周琦id |
| | |
| | | this.$router.push('/login') |
| | | return false; |
| | | } |
| | | // if (!this.form.stop_price_profit) { |
| | | // this.$toast.fail(this.$t("请输入止盈金额")); |
| | | // return false; |
| | | // } |
| | | // if (!this.form.stop_price_loss) { |
| | | // this.$toast.fail(this.$t("请输入止损金额")); |
| | | // return false; |
| | | // } |
| | | if (this.selectIndex == 1) { |
| | | if (!this.form.price) { |
| | | showToast(this.$t('请输入金额')) |