@@ -28,6 +28,7 @@
|
|||||||
:customStyle="{
|
:customStyle="{
|
||||||
'border': 0
|
'border': 0
|
||||||
}"
|
}"
|
||||||
|
:disabled="commissionCount <= 0"
|
||||||
placeholder-style="font-size:28rpx"
|
placeholder-style="font-size:28rpx"
|
||||||
type="digit"
|
type="digit"
|
||||||
autofocus
|
autofocus
|
||||||
@@ -35,7 +36,11 @@
|
|||||||
@input="balanceInputChange"
|
@input="balanceInputChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="withdraw-all-btn" @click="withdrawalAll">全部提现</view>
|
<view
|
||||||
|
:class="commissionCount <= 0 ? 'grey' : ''"
|
||||||
|
class="withdraw-all-btn"
|
||||||
|
@click="withdrawalAll"
|
||||||
|
>全部提现</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="vline"></view>
|
<view class="vline"></view>
|
||||||
<view class="acea-row row-between row-middle" style="margin-top: 22rpx;">
|
<view class="acea-row row-between row-middle" style="margin-top: 22rpx;">
|
||||||
@@ -199,7 +204,7 @@ export default {
|
|||||||
},
|
},
|
||||||
balanceInputChange(value) {
|
balanceInputChange(value) {
|
||||||
let v = this.clearNoNum(value)
|
let v = this.clearNoNum(value)
|
||||||
if (v > this.commissionCount) {
|
if (v >= this.commissionCount) {
|
||||||
v = this.commissionCount
|
v = this.commissionCount
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -207,8 +212,9 @@ export default {
|
|||||||
}, 0)
|
}, 0)
|
||||||
},
|
},
|
||||||
balanceInputBlur(value) {
|
balanceInputBlur(value) {
|
||||||
|
console.log(value)
|
||||||
if (String(value).length == 0) {
|
if (String(value).length == 0) {
|
||||||
this.amout = 0
|
this.amout = ''
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (value > this.commissionCount) {
|
if (value > this.commissionCount) {
|
||||||
@@ -345,7 +351,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
withdrawalAll: function () {
|
withdrawalAll: function () {
|
||||||
if (this.commissionCount) {
|
if (parseFloat(this.commissionCount) > 0) {
|
||||||
this.amout = this.commissionCount + ''
|
this.amout = this.commissionCount + ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -354,7 +360,7 @@ export default {
|
|||||||
res => {
|
res => {
|
||||||
this.banks = res.data.extractBank
|
this.banks = res.data.extractBank
|
||||||
this.minPrice = res.data.minPrice
|
this.minPrice = res.data.minPrice
|
||||||
this.commissionCount = this.$force2Decimal(res.data.commissionCount)
|
this.commissionCount = parseFloat(this.$force2Decimal(res.data.commissionCount))
|
||||||
this.gdAmount = parseFloat(res.data.gdAmount)
|
this.gdAmount = parseFloat(res.data.gdAmount)
|
||||||
this.gdLimit = parseFloat(res.data.gdLimit)
|
this.gdLimit = parseFloat(res.data.gdLimit)
|
||||||
this.feeRate = parseFloat(res.data.fl)
|
this.feeRate = parseFloat(res.data.fl)
|
||||||
@@ -432,6 +438,10 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background: #28AAF4;
|
background: #28AAF4;
|
||||||
|
&.grey {
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
color: #dcdcdc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vline {
|
.vline {
|
||||||
|
|||||||
Reference in New Issue
Block a user