添加升级显示

This commit is contained in:
kron
2025-07-17 16:14:30 +08:00
parent 62aba0831b
commit ff03998e6d
8 changed files with 109 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
import { ref, onMounted } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import Avatar from "@/components/Avatar.vue";
import UserUpgrade from "@/components/UserUpgrade.vue";
import { getGameAPI, getHomeData } from "@/apis";
import { topThreeColors, getBattleResultTips } from "@/constants";
import useStore from "@/store";
@@ -14,6 +15,7 @@ const ifWin = ref(false);
const data = ref({});
const totalPoints = ref(0);
const rank = ref(0);
const showUpgrade = ref(false);
// onLoad(async (options) => {
// battleId.value = options.battleId;
@@ -181,6 +183,11 @@ const checkBowData = () => {
<view @click="checkBowData">查看靶纸</view>
<view @click="exit">退出</view>
</view>
<UserUpgrade
:show="showUpgrade"
:onClose="() => (showUpgrade = false)"
:lvl="data.lvl"
/>
</view>
</template>