mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
added event listener for notification money withdraw
This commit is contained in:
@@ -195,8 +195,8 @@ export default {
|
|||||||
console.log(`From /profile to - ${this.url} url`)
|
console.log(`From /profile to - ${this.url} url`)
|
||||||
window.location.href = this.url
|
window.location.href = this.url
|
||||||
},
|
},
|
||||||
RedirectedMethodTransferMoneyToSp() {
|
async RedirectedMethodTransferMoneyToSp() {
|
||||||
setTimeout(() => {
|
setTimeout(async () => {
|
||||||
try {
|
try {
|
||||||
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
|
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
|
||||||
console.log(`work withdraw - ${response}`)
|
console.log(`work withdraw - ${response}`)
|
||||||
@@ -205,8 +205,8 @@ export default {
|
|||||||
catch (e) {
|
catch (e) {
|
||||||
console.error(`Error in wihdrawmoney operation - ${e}`)
|
console.error(`Error in wihdrawmoney operation - ${e}`)
|
||||||
}
|
}
|
||||||
|
await this.$emit('notifacetionmoney')
|
||||||
}, 4000)
|
}, 4000)
|
||||||
return this.$emit('closemodal')
|
|
||||||
},
|
},
|
||||||
checkBtn() {
|
checkBtn() {
|
||||||
if (this.offBtn === false) {
|
if (this.offBtn === false) {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<payments-modal v-if="openModal" @deposit="claimDataDeposit" @withdraw="claimDataWithdraw" @closemodal="openModal = false" :payments="payments"></payments-modal>
|
<payments-modal v-if="openModal" @notifacetionmoney="notification = true" @closemodal="openModal = false" :payments="payments"></payments-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -69,6 +69,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
username: 'Artemka',
|
username: 'Artemka',
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
|
notification: false,
|
||||||
balance: 0,
|
balance: 0,
|
||||||
mobile: false,
|
mobile: false,
|
||||||
openModal: false,
|
openModal: false,
|
||||||
@@ -99,13 +100,6 @@ export default {
|
|||||||
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
|
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
|
||||||
},
|
},
|
||||||
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
|
||||||
@@ -114,26 +108,33 @@ export default {
|
|||||||
this.openModal = true
|
this.openModal = true
|
||||||
this.payments = false
|
this.payments = false
|
||||||
},
|
},
|
||||||
claimDataDeposit(amount) {
|
// formatNumber(number) {
|
||||||
const historyPayments = {
|
// return number < 10 ? `0${number}` : number;
|
||||||
name: 'TEST USER',
|
// },
|
||||||
comment: 'test',
|
// getCurrentFormattedDate() {
|
||||||
data: this.getCurrentFormattedDate(),
|
// const currentDate = new Date();
|
||||||
amount: amount
|
// return `${this.formatNumber(currentDate.getDate())}.${this.formatNumber(currentDate.getMonth() + 1)}.${currentDate.getFullYear()}, ${this.formatNumber(currentDate.getHours())}:${this.formatNumber(currentDate.getMinutes())}`;
|
||||||
}
|
// },
|
||||||
|
// claimDataDeposit(amount) {
|
||||||
this.arrayHistory.unshift(historyPayments)
|
// const historyPayments = {
|
||||||
},
|
// name: 'TEST USER',
|
||||||
claimDataWithdraw(amount) {
|
// comment: 'test',
|
||||||
const historyPayments = {
|
// data: this.getCurrentFormattedDate(),
|
||||||
name: 'TEST USER',
|
// amount: amount
|
||||||
comment: 'test',
|
// }
|
||||||
data: this.getCurrentFormattedDate(),
|
//
|
||||||
amount: -amount
|
// this.arrayHistory.unshift(historyPayments)
|
||||||
}
|
// },
|
||||||
|
// claimDataWithdraw(amount) {
|
||||||
this.arrayHistory.unshift(historyPayments)
|
// const historyPayments = {
|
||||||
}
|
// name: 'TEST USER',
|
||||||
|
// comment: 'test',
|
||||||
|
// data: this.getCurrentFormattedDate(),
|
||||||
|
// amount: -amount
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// this.arrayHistory.unshift(historyPayments)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user