mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
Fix position of property
This commit is contained in:
@@ -27,9 +27,6 @@
|
|||||||
import HeaderMobileComponent from "@/components/adaptive-components/HeaderMobileComponent.vue";
|
import HeaderMobileComponent from "@/components/adaptive-components/HeaderMobileComponent.vue";
|
||||||
import MenuMobileComponent from "@/components/adaptive-components/MenuMobileComponent.vue";
|
import MenuMobileComponent from "@/components/adaptive-components/MenuMobileComponent.vue";
|
||||||
import PaymentsMobile from "@/components/adaptive-components/PaymentsMobile.vue";
|
import PaymentsMobile from "@/components/adaptive-components/PaymentsMobile.vue";
|
||||||
// import {GetUserData } from "@/assets/js/games/saper/SaperAPI";
|
|
||||||
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
|
||||||
import { GetCurrentMoney } from "@/assets/js/rest/RestMethods.js";
|
|
||||||
|
|
||||||
import '@/assets/css/PagesStyles/adaptive-pages/profilemobile.css'
|
import '@/assets/css/PagesStyles/adaptive-pages/profilemobile.css'
|
||||||
|
|
||||||
@@ -43,30 +40,6 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
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);
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
paymetsCall(view) {
|
paymetsCall(view) {
|
||||||
this.payments.paymentsWindow = true
|
this.payments.paymentsWindow = true
|
||||||
|
|||||||
@@ -135,8 +135,7 @@
|
|||||||
import ChatComponent from "@/components/ChatComponent.vue";
|
import ChatComponent from "@/components/ChatComponent.vue";
|
||||||
import AsideBarElement from "@/components/AsidebarComponent.vue";
|
import AsideBarElement from "@/components/AsidebarComponent.vue";
|
||||||
import HeaderElementPage from "@/components/HeaderComponent.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 { GetCookie } from "@/assets/js/storage/CookieStorage";
|
||||||
|
|
||||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||||
@@ -174,30 +173,6 @@ 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) {
|
||||||
@@ -223,14 +198,14 @@ export default {
|
|||||||
this.amountSaveCrystals = CrystalsCount
|
this.amountSaveCrystals = CrystalsCount
|
||||||
this.ValidationPlay.CrystalValidate = true
|
this.ValidationPlay.CrystalValidate = true
|
||||||
try {
|
try {
|
||||||
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
await GetPercentageSteps(this.amountSaveCrystals)
|
||||||
const SEARCHTOKEN = GetCookie('SearchToken')
|
.then((response) => {
|
||||||
|
response.forEach((item) => {
|
||||||
|
if (item !== 'Infinity' && item !== '-Infinity') {
|
||||||
GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
this.PercentageGameSteps.push(Number(item))
|
||||||
.then(response => {
|
}
|
||||||
console.log(response)
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.error('Error in Percantage', e)
|
console.error('Error in Percantage', e)
|
||||||
@@ -238,22 +213,22 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// created() {
|
async created() {
|
||||||
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||||
// const SEARCHTOKEN = GetCookie('SearchToken')
|
const SEARCHTOKEN = GetCookie('SearchToken')
|
||||||
|
|
||||||
// if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
|
if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
|
||||||
// try {
|
try {
|
||||||
// GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
await GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
||||||
// .then(response => {
|
.then(response => {
|
||||||
// console.log(response)
|
console.log(response)
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// catch (e) {
|
catch (e) {
|
||||||
// console.error('Error in GetData', e)
|
console.error('Error in GetData', e)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickPlayButton() {
|
clickPlayButton() {
|
||||||
if(!this.validationCheck()) {
|
if(!this.validationCheck()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user