|
@@ -53,7 +53,7 @@
|
|
|
<text class="restrict-lable">平仓数量(USDT)</text>
|
|
|
<view class="restrict-btn">
|
|
|
<text class="restrict-nums-text">可平仓位数量(张):</text>
|
|
|
- <text class="restrict-nums">{{ content.number }}</text>
|
|
|
+ <text class="restrict-nums">{{ content.share }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="restrict-input-box">
|
|
@@ -107,9 +107,9 @@
|
|
|
watch: {
|
|
|
percent: {
|
|
|
handler(newNum) {
|
|
|
- if (newNum && this.content.number) {
|
|
|
- let num = Math.ceil(this.content.number * newNum / 100)
|
|
|
- this.numsk = num > this.content.number ? this.content.number : num
|
|
|
+ if (newNum && this.content.share) {
|
|
|
+ let num = Math.ceil(this.content.share * newNum / 100)
|
|
|
+ this.numsk = num > this.content.share ? this.content.share : num
|
|
|
} else {
|
|
|
this.numsk = ''
|
|
|
}
|
|
@@ -169,7 +169,7 @@
|
|
|
setCloseLever() {
|
|
|
// id 是 number 订单id
|
|
|
// share 否 number 【5-25】张数
|
|
|
- if (this.numsk && this.numsk <= this.content.number) {
|
|
|
+ if (this.numsk && this.numsk <= this.content.share) {
|
|
|
this.closeLever({
|
|
|
id: this.content.id,
|
|
|
share: this.numsk
|
|
@@ -186,7 +186,7 @@
|
|
|
// share 否 number 【5-25】张数
|
|
|
this.closeLever({
|
|
|
id: this.content.id,
|
|
|
- share: this.content.number
|
|
|
+ share: this.content.share
|
|
|
})
|
|
|
|
|
|
},
|