mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
Merge branch 'main' into DevelopCkutls
This commit is contained in:
@@ -65,7 +65,7 @@ export default {
|
|||||||
],
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
amount: 1,
|
amount: 0,
|
||||||
card: 0,
|
card: 0,
|
||||||
clickedBtn: '',
|
clickedBtn: '',
|
||||||
url: '',
|
url: '',
|
||||||
@@ -75,9 +75,8 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
amount(newAmount) {
|
amount(newAmount) {
|
||||||
console.log(newAmount)
|
|
||||||
this.offBtn = true
|
this.offBtn = true
|
||||||
console.log('OFFBTN', this.offBtn)
|
if (this.amount > 0 && this.amount !== '' ) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
GettingMoneyOperation(newAmount)
|
GettingMoneyOperation(newAmount)
|
||||||
@@ -85,7 +84,6 @@ export default {
|
|||||||
console.log('Payments Modal Working!: ', response)
|
console.log('Payments Modal Working!: ', response)
|
||||||
this.url = response.url
|
this.url = response.url
|
||||||
this.offBtn = false
|
this.offBtn = false
|
||||||
console.log('ONBTN', this.offBtn)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
@@ -93,6 +91,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}, 2000)
|
}, 2000)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeModal() {
|
closeModal() {
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ import HeaderComponent from "@/components/HeaderComponent.vue";
|
|||||||
import PaymentsModal from "@/components/PaymentsModal.vue";
|
import PaymentsModal from "@/components/PaymentsModal.vue";
|
||||||
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
||||||
import '@/assets/css/PagesStyles/profile.css'
|
import '@/assets/css/PagesStyles/profile.css'
|
||||||
|
import {GetCurrentMoney} from "@/assets/js/rest/RestMethods";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { HeaderComponent, AsideBarComponent, ChatComponent, PaymentsModal },
|
components: { HeaderComponent, AsideBarComponent, ChatComponent, PaymentsModal },
|
||||||
@@ -66,7 +67,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
username: 'Artemka',
|
username: 'Artemka',
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
balance: 25000,
|
balance: 0,
|
||||||
openModal: false,
|
openModal: false,
|
||||||
payments: true,
|
payments: true,
|
||||||
arrayHistory: [],
|
arrayHistory: [],
|
||||||
@@ -74,6 +75,16 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.username = GetCookie('SpUserName')
|
this.username = GetCookie('SpUserName')
|
||||||
|
|
||||||
|
GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
||||||
|
.then((response) => {
|
||||||
|
this.balance = response.currentMoney
|
||||||
|
console.log('balance in profile', this.balance)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error('error in profile, get money', error)
|
||||||
|
})
|
||||||
|
|
||||||
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
|
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user