添加射箭前校准提示
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user