fixed bug with send request and ref code for slider

This commit is contained in:
Kostya
2024-01-19 23:05:30 +03:00
parent 40ebdd7bad
commit 61f0a06e8c

View File

@@ -44,7 +44,7 @@
<button class="btn-claim">Забрать 15 АР</button> <button class="btn-claim">Забрать 15 АР</button>
</div> </div>
<div class="saper-start__steps btns-style__steps"> <div class="saper-start__steps btns-style__steps">
<swiper :spaceBetween="25" :pagination="{ clickable: true }" :modules="modules"> <swiper v-if="PercentageGameSteps.length" :spaceBetween="25" :pagination="{ clickable: true }" :modules="modules">
<template v-for="(item, index) in PercentageGameSteps" :key="index"> <template v-for="(item, index) in PercentageGameSteps" :key="index">
<swiper-slide> <swiper-slide>
<button class="steps-btns__display">{{ item }}</button> <button class="steps-btns__display">{{ item }}</button>
@@ -152,7 +152,7 @@ export default {
SaperNumbers, SaperNumbers,
clickedBtn: '', clickedBtn: '',
clickedBtnCrystal : '', clickedBtnCrystal : '',
amountCrystals: 5, amountCrystals: 0,
amountSaveCrystals: 0, amountSaveCrystals: 0,
balance: 1000, balance: 1000,
amountDeposit: 5, amountDeposit: 5,
@@ -162,7 +162,7 @@ export default {
} }
}, },
watch: { watch: {
PercentageGameSteps(CrystalsCount) { amountCrystals(CrystalsCount) {
if (CrystalsCount >= 1) { if (CrystalsCount >= 1) {
this.amountSaveCrystals = CrystalsCount this.amountSaveCrystals = CrystalsCount
setTimeout(async () => { setTimeout(async () => {