mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added methods for get data in profilepage
This commit is contained in:
@@ -71,6 +71,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
formatNumber(number) {
|
||||||
|
return number < 10 ? `0${number}` : number;
|
||||||
|
},
|
||||||
|
getCurrentFormattedDate() {
|
||||||
|
const currentDate = new Date();
|
||||||
|
return `${this.formatNumber(currentDate.getDate())}.${this.formatNumber(currentDate.getMonth() + 1)}.${currentDate.getFullYear()}, ${this.formatNumber(currentDate.getHours())}:${this.formatNumber(currentDate.getMinutes())}`;
|
||||||
|
},
|
||||||
depositClick() {
|
depositClick() {
|
||||||
this.openModal = true
|
this.openModal = true
|
||||||
this.payments = true
|
this.payments = true
|
||||||
@@ -83,7 +90,7 @@ export default {
|
|||||||
const historyPayments = {
|
const historyPayments = {
|
||||||
name: 'TEST USER',
|
name: 'TEST USER',
|
||||||
comment: 'test',
|
comment: 'test',
|
||||||
data: '5ч назад',
|
data: this.getCurrentFormattedDate(),
|
||||||
amount: amount
|
amount: amount
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,7 +100,7 @@ export default {
|
|||||||
const historyPayments = {
|
const historyPayments = {
|
||||||
name: 'TEST USER',
|
name: 'TEST USER',
|
||||||
comment: 'test',
|
comment: 'test',
|
||||||
data: '5ч назад',
|
data: this.getCurrentFormattedDate(),
|
||||||
amount: -amount
|
amount: -amount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user