mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
Fix position of property
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user