refs #5648 create vn-confirm #1508
|
@ -193,18 +193,18 @@ class Controller extends Section {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
sureClaim() {
|
|
||||||
|
|
||||||
}
|
|
||||||
createClaim() {
|
createClaim() {
|
||||||
const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
|
|
||||||
const pastDays = Math.floor(timeDifference / 86400000);
|
|
||||||
this.$.claimSure.show();
|
this.$.claimSure.show();
|
||||||
|
|
||||||
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
setTimeout(() => {
|
||||||
this.$.claimConfirm.show();
|
const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
|
||||||
else
|
const pastDays = Math.floor(timeDifference / 86400000);
|
||||||
this.onCreateClaimAccepted();
|
|
||||||
|
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
||||||
|
this.$.claimConfirm.show();
|
||||||
|
else
|
||||||
|
this.onCreateClaimAccepted();
|
||||||
|
}, 10000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
onCreateClaimAccepted() {
|
onCreateClaimAccepted() {
|
||||||
|
|
Loading…
Reference in New Issue