|
|
@@ -38,7 +38,7 @@
|
|
|
item.avail_position
|
|
|
}}</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="d-flex">
|
|
|
<view class="row w-6/12 d-flex m-y-xs justify-between">
|
|
|
<view class="label fn-sm">{{ $t("contract.b1") }}</view>
|
|
|
@@ -83,10 +83,10 @@
|
|
|
</view> -->
|
|
|
</view>
|
|
|
<view class="row d-flex m-y-xs justify-between">
|
|
|
-
|
|
|
+ <!-- 平仓 -->
|
|
|
<v-button type="green" size="small" class="opt-btn rounded-xs m-b-xs"
|
|
|
@click="closePositionShow(item)">{{ $t("contract.h3") }}</v-button>
|
|
|
- <!-- 一建反向 -->
|
|
|
+ <!-- 一建反向 -->
|
|
|
<!-- <v-button type="green" size="small" class="opt-btn rounded-xs m-b-xs m-l-xs"
|
|
|
@click="onekeyReverse(item)">{{ $t("contract.k8") }}</v-button> -->
|
|
|
<!-- <v-button
|
|
|
@@ -97,6 +97,7 @@
|
|
|
@click="ifCloseAllPosition(item)"
|
|
|
>{{ $t("contract.h4") }}</v-button
|
|
|
> -->
|
|
|
+ <!-- 止盈止损 -->
|
|
|
<v-button type="blue" class="opt-btn m-l-xs m-b-xs rounded-xs" size="small"
|
|
|
@click="toStoploss(item)">{{ $t("contract.h5") }}</v-button>
|
|
|
<v-button type="green-plain" class="m-l-xs m-b-xs d-inline-block rounded-xs" size="small" plain :to="{
|
|
|
@@ -190,12 +191,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="p-x-md p-t-0">
|
|
|
- <v-input class="p-sm rounded border m-t-sm" :placeholder="$t('contract.i3')" type="number"
|
|
|
+ <input class="p-sm rounded border m-t-sm" :placeholder="$t('contract.i3')" type="digit"
|
|
|
v-model="strategyForm.tp_trigger_price">
|
|
|
- <template #left>
|
|
|
- <span class="color-default">{{ $t("contract.i4") }}:</span>
|
|
|
- </template>
|
|
|
- </v-input>
|
|
|
+ <template #left>
|
|
|
+ <span class="color-default">{{ $t("contract.i4") }}:</span>
|
|
|
+ </template>
|
|
|
+ </input>
|
|
|
<view class="p-t-xs fn-sm color-tips" v-if="strategyForm.tp_trigger_price">
|
|
|
{{ $t("contract.i5") }}{{ strategyForm.tp_trigger_price
|
|
|
}}{{ $t("contract.i6") }}
|
|
|
@@ -206,12 +207,12 @@
|
|
|
}}
|
|
|
USDT
|
|
|
</view>
|
|
|
- <v-input class="p-sm rounded border m-t-sm" :placeholder="$t('contract.i3')" type="number"
|
|
|
+ <input class="p-sm rounded border m-t-sm" :placeholder="$t('contract.i3')" type="digit"
|
|
|
v-model="strategyForm.sl_trigger_price">
|
|
|
- <template #left>
|
|
|
- <span class="color-default">{{ $t("contract.i7") }}:</span>
|
|
|
- </template>
|
|
|
- </v-input>
|
|
|
+ <template #left>
|
|
|
+ <span class="color-default">{{ $t("contract.i7") }}:</span>
|
|
|
+ </template>
|
|
|
+ </input>
|
|
|
<view class="p-t-xs fn-sm color-tips" v-if="strategyForm.sl_trigger_price">
|
|
|
{{ $t("contract.i5") }}{{ strategyForm.sl_trigger_price
|
|
|
}}{{ $t("contract.i8") }}
|
|
|
@@ -347,7 +348,7 @@
|
|
|
});
|
|
|
},
|
|
|
closePosition() {
|
|
|
-
|
|
|
+
|
|
|
if (!this.form.amount) {
|
|
|
return this.$toast(this.$t('contract.h9'))
|
|
|
}
|