添加射箭前校准提示

This commit is contained in:
kron
2025-10-30 09:19:34 +08:00
parent 2c0982bd27
commit 1dcbb7cf2f
3 changed files with 42 additions and 135 deletions

View File

@@ -26,6 +26,7 @@ const seasonData = ref([]);
const rankData = ref({ user: {} });
const showSeasonList = ref(false);
const currentSeasonData = ref(defaultSeasonData);
const calibration = ref(false);
const handleSelect = (index) => {
selectedIndex.value = index;
@@ -47,6 +48,9 @@ const toMatchPage = async (gameType, teamSize) => {
icon: "none",
});
}
if (!calibration.value) {
return uni.$showHint(4);
}
if (!user.value.trio) {
return uni.showToast({
title: "请先完成新手试炼",
@@ -117,6 +121,7 @@ const updateData = () => {
}
};
onShow(async () => {
calibration.value = uni.getStorageSync("calibration");
const result = await getHomeData();
rankData.value = result;
handleSelect(selectedIndex.value);