|
|
|
@ -57,7 +57,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> |
|
|
|
@ -91,9 +91,9 @@ |
|
|
|
</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 |
|
|
|
type="danger" |
|
|
|
@ -121,7 +121,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<v-paging class="layout-main" :key="2" :ajax="getHistoryEntrust" v-if="active==1"> |
|
|
|
<template #box="list"> |
|
|
|
<not-data v-if="!$list(list).length"></not-data> |
|
|
|
@ -157,7 +157,7 @@ |
|
|
|
<div class="label fn-sm">{{$t('exchange.e2')}}</div> |
|
|
|
<div class="color-buy">{{(item.traded_money/item.traded_amount).toFixed(4)*1||'--'}}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row d-flex m-y-xs justify-between"> |
|
|
|
<div class="label fn-sm">{{$t('exchange.c2')}}</div> |
|
|
|
<div class="color-light">{{item.amount}}</div> |
|
|
|
@ -166,7 +166,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</v-paging> |
|
|
|
|
|
|
|
|
|
|
|
<v-paging class="layout-main" :key="3" :ajax="getHistoryEntrust" v-if="active==2"> |
|
|
|
<template #box="list"> |
|
|
|
<not-data v-if="!$list(list).length"></not-data> |
|
|
|
@ -202,7 +202,7 @@ |
|
|
|
<div class="label fn-sm">{{$t('exchange.e2')}}</div> |
|
|
|
<div class="color-buy">{{(item.traded_money/item.traded_amount).toFixed(4)*1||'--'}}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row d-flex m-y-xs justify-between"> |
|
|
|
<div class="label fn-sm">{{$t('exchange.c2')}}</div> |
|
|
|
<div class="color-light">{{item.amount}}</div> |
|
|
|
@ -283,7 +283,7 @@ export default { |
|
|
|
many(item, newPrice) { |
|
|
|
let face = this.symbolDetail.unit_amount; |
|
|
|
return math.omitTo( |
|
|
|
((newPrice - item.avg_price) * item.avail_position * face) / |
|
|
|
((newPrice - item.avg_price) * item.avail_position * face) / |
|
|
|
item.avg_price, |
|
|
|
4 |
|
|
|
); |
|
|
|
@ -346,7 +346,7 @@ export default { |
|
|
|
.confirm({ |
|
|
|
title: this.$t("contract.c4"), |
|
|
|
message: `${this.$t("contract.j1")}${item.pair_name}?`, |
|
|
|
confirmButtonText: this.$t("common.confirm"), |
|
|
|
confirmButtonText: this.$t("common.confirm"), |
|
|
|
cancelButtonText: this.$t("common.cancel") |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
@ -436,7 +436,7 @@ export default { |
|
|
|
this.$toast(this.$t("contract.l2")); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -472,7 +472,7 @@ export default { |
|
|
|
background-color: $theme-1; |
|
|
|
bottom: 0; |
|
|
|
left: 30%; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
.w-50{ |
|
|
|
width: 50%; |
|
|
|
@ -482,4 +482,4 @@ export default { |
|
|
|
margin-right: $padding-sm; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|
|