павпавпававппвап

This commit is contained in:
Hepatica
2024-01-21 02:49:44 +01:00
parent b950b893dc
commit 80b1f07861
2 changed files with 28 additions and 3 deletions

View File

@@ -28,10 +28,11 @@ export async function GetPercentageSteps(CrystalsCount) {
} }
export async function GetUserData(SearchToken, AUTHTOKEN) { export async function GetUserData(SearchToken, AUTHTOKEN) {
const data = { const data = {
SearchToken: SearchToken, AUTHTOKEN: AUTHTOKEN,
AUTHTOKEN: AUTHTOKEN SearchToken: SearchToken
} };
try { try {
const response = await fetch(`${BackendApiUrl}/Payment/UserMoney`, { const response = await fetch(`${BackendApiUrl}/Payment/UserMoney`, {

View File

@@ -174,6 +174,30 @@ export default {
modules: [ Navigation ] modules: [ Navigation ]
} }
}, },
created() {
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
// const SEARCHTOKEN = GetCookie('SearchToken')
GetUserData(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
.then(response => {
console.log(response)
})
.catch((error) => {
console.error(error);
});
// GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
// .then((response) => {
// this.balance = response.currentMoney;
// console.log(response);
// })
// .catch((error) => {
// console.error(error);
// });
},
watch: { watch: {
async amountDeposit(DiamondCount) { async amountDeposit(DiamondCount) {
if (DiamondCount >= 1) { if (DiamondCount >= 1) {