diff --git a/luckydiamond/src/pages/HelpPage.vue b/luckydiamond/src/pages/HelpPage.vue index 2b3680d..68966b0 100644 --- a/luckydiamond/src/pages/HelpPage.vue +++ b/luckydiamond/src/pages/HelpPage.vue @@ -5,6 +5,8 @@ + +
@@ -78,7 +80,7 @@ // import HelpComponent from "@/components/HelpComponent.vue"; import AsideBarComponent from "@/components/AsidebarComponent.vue"; import HeaderComponent from "@/components/HeaderComponent.vue"; -// import ChatComponent from "@/components/ChatComponent.vue"; +import ChatComponent from "@/components/ChatComponent.vue"; import '@/assets/css/ComponentsStyles/Help.css' export default { @@ -101,7 +103,7 @@ export default { HeaderComponent, AsideBarComponent, // HelpComponent, - // ChatComponent, + ChatComponent, }, }; diff --git a/luckydiamond/src/pages/ProfilePage.vue b/luckydiamond/src/pages/ProfilePage.vue index d681a06..0e4c7da 100644 --- a/luckydiamond/src/pages/ProfilePage.vue +++ b/luckydiamond/src/pages/ProfilePage.vue @@ -118,34 +118,34 @@ export default { }, NotificationMethod() { this.notification = false + }, + 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())}`; + }, + claimDataDeposit(amount) { + const historyPayments = { + name: 'TEST USER', + comment: 'test', + data: this.getCurrentFormattedDate(), + amount: amount + } + + this.arrayHistory.unshift(historyPayments) + }, + claimDataWithdraw(amount) { + const historyPayments = { + name: 'TEST USER', + comment: 'test', + data: this.getCurrentFormattedDate(), + amount: -amount + } + + this.arrayHistory.unshift(historyPayments) } - // 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())}`; - // }, - // claimDataDeposit(amount) { - // const historyPayments = { - // name: 'TEST USER', - // comment: 'test', - // data: this.getCurrentFormattedDate(), - // amount: amount - // } - // - // this.arrayHistory.unshift(historyPayments) - // }, - // claimDataWithdraw(amount) { - // const historyPayments = { - // name: 'TEST USER', - // comment: 'test', - // data: this.getCurrentFormattedDate(), - // amount: -amount - // } - // - // this.arrayHistory.unshift(historyPayments) - // } } } \ No newline at end of file