<script setup>
import { ref } from "vue";
import AppBackground from "@/components/AppBackground.vue";
import Header from "@/components/Header.vue";
import ShootProgress from "@/components/ShootProgress.vue";
import BowTarget from "@/components/BowTarget.vue";
import ScorePanel2 from "@/components/ScorePanel2.vue";
import ScoreResult from "@/components/ScoreResult.vue";
const showScore = ref(false);

setTimeout(() => {
  showScore.value = true;
}, 2000);
</script>

<template>
  <view class="container">
    <AppBackground type="1" />
    <Header title="个人单组练习" />
    <ShootProgress tips="请开始射箭第一轮" total="120" />
    <BowTarget
      totalRound="10"
      currentRound="4"
      avatar="../static/avatar.png"
      power="45"
    />
    <ScorePanel2 :scores="[1, 2, 3, 4, 5, 6]" />
    <ScoreResult
      :total="12"
      :rowCount="6"
      :show="showScore"
      :onClose="() => (showScore = false)"
    />
  </view>
</template>

<style scoped>
.container {
  position: relative;
}
</style>
