Authored by jiran.zhao

'提现时间选择异常'

... ... @@ -5,6 +5,7 @@ export default function() {
data: {
applyType: 0,
},
params: {},
beginStr: '',
endStr: '',
beginTimeStr: '',
... ...
... ... @@ -176,9 +176,6 @@ export default {
}
},
getAvailableAmount() {
const params = {};
params.beginTime = this.beginStr;
params.endTime = this.endStr;
if (this.beginStr > this.endStr) {
this.$Notice.error({
title: '时间范围异常',
... ... @@ -186,7 +183,7 @@ export default {
});
return;
}
this.financeService.shopGetAvailableAmount(params).then(result => {
this.financeService.shopGetAvailableAmount(this.params).then(result => {
if (result.code === 200) {
this.data.withdrawAmount = result.data.availableAmount;
} else {
... ... @@ -198,10 +195,10 @@ export default {
});
},
changeBeginStr(value) {
this.beginStr = value;
this.params.beginTime = value;
},
changeEndStr(value) {
this.endStr = value;
this.params.endTime = value;
this.getAvailableAmount();
},
},
... ...