diff --git a/luckydiamond/src/components/PaymentsModal.vue b/luckydiamond/src/components/PaymentsModal.vue index bb93391..4821d63 100644 --- a/luckydiamond/src/components/PaymentsModal.vue +++ b/luckydiamond/src/components/PaymentsModal.vue @@ -195,8 +195,8 @@ export default { console.log(`From /profile to - ${this.url} url`) window.location.href = this.url }, - RedirectedMethodTransferMoneyToSp() { - setTimeout(() => { + async RedirectedMethodTransferMoneyToSp() { + setTimeout(async () => { try { WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => { console.log(`work withdraw - ${response}`) @@ -205,8 +205,8 @@ export default { catch (e) { console.error(`Error in wihdrawmoney operation - ${e}`) } + await this.$emit('notifacetionmoney') }, 4000) - return this.$emit('closemodal') }, checkBtn() { if (this.offBtn === false) { diff --git a/luckydiamond/src/pages/ProfilePage.vue b/luckydiamond/src/pages/ProfilePage.vue index 505a23d..3a276ce 100644 --- a/luckydiamond/src/pages/ProfilePage.vue +++ b/luckydiamond/src/pages/ProfilePage.vue @@ -49,7 +49,7 @@ - + @@ -69,6 +69,7 @@ export default { return { username: 'Artemka', imageUrl: '', + notification: false, balance: 0, mobile: false, openModal: false, @@ -99,13 +100,6 @@ export default { this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}` }, 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() { this.openModal = true this.payments = true @@ -114,26 +108,33 @@ export default { this.openModal = true this.payments = false }, - 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