<script setup>
import { useGameStore } from '@/stores/game';
import navBar from '@/components/navBar.vue';

const gameStore = useGameStore();

const handleNext = () => {
  gameStore.setSecondLevelPartStatus('part3', true);
  uni.navigateBack();
};
</script>

<template>
    <navBar />
    <view class="next" @click="handleNext">下一关</view>
</template>

<style scoped lang="scss">
.next {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40rpx;
  color: #333;
}
</style>