Fix position of property

This commit is contained in:
Hepatica
2024-01-21 03:26:43 +01:00
parent 154b6b2dd5
commit c30dbd9326
2 changed files with 24 additions and 76 deletions

View File

@@ -135,8 +135,7 @@
import ChatComponent from "@/components/ChatComponent.vue";
import AsideBarElement from "@/components/AsidebarComponent.vue";
import HeaderElementPage from "@/components/HeaderComponent.vue";
import {GetUserData } from "@/assets/js/games/saper/SaperAPI";
// import { GetPercentageSteps, GetUserData } from "@/assets/js/games/saper/SaperAPI";
import { GetPercentageSteps, GetUserData } from "@/assets/js/games/saper/SaperAPI";
import { GetCookie } from "@/assets/js/storage/CookieStorage";
import { Swiper, SwiperSlide } from 'swiper/vue';
@@ -174,30 +173,6 @@ export default {
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: {
async amountDeposit(DiamondCount) {
if (DiamondCount >= 1) {
@@ -223,14 +198,14 @@ export default {
this.amountSaveCrystals = CrystalsCount
this.ValidationPlay.CrystalValidate = true
try {
const AUTHTOKEN = GetCookie('AUTHTOKEN')
const SEARCHTOKEN = GetCookie('SearchToken')
GetUserData(AUTHTOKEN, SEARCHTOKEN)
.then(response => {
console.log(response)
})
await GetPercentageSteps(this.amountSaveCrystals)
.then((response) => {
response.forEach((item) => {
if (item !== 'Infinity' && item !== '-Infinity') {
this.PercentageGameSteps.push(Number(item))
}
})
})
}
catch (e) {
console.error('Error in Percantage', e)
@@ -238,22 +213,22 @@ export default {
}
},
},
// created() {
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
// const SEARCHTOKEN = GetCookie('SearchToken')
async created() {
const AUTHTOKEN = GetCookie('AUTHTOKEN')
const SEARCHTOKEN = GetCookie('SearchToken')
// if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
// try {
// GetUserData(AUTHTOKEN, SEARCHTOKEN)
// .then(response => {
// console.log(response)
// })
// }
// catch (e) {
// console.error('Error in GetData', e)
// }
// }
// },
if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
try {
await GetUserData(AUTHTOKEN, SEARCHTOKEN)
.then(response => {
console.log(response)
})
}
catch (e) {
console.error('Error in GetData', e)
}
}
},
methods: {
clickPlayButton() {
if(!this.validationCheck()) {