This commit is contained in:
kron
2025-06-24 13:18:03 +08:00
parent fa219892e0
commit c507a40aad
31 changed files with 780 additions and 167 deletions

View File

@@ -4,11 +4,7 @@ import Container from "@/components/Container.vue";
import Avatar from "@/components/Avatar.vue";
import BowData from "@/components/BowData.vue";
import ScrollList from "@/components/ScrollList.vue";
import {
getBattleListAPI,
getPractiseResultListAPI,
getPractiseAPI,
} from "@/apis";
import { getBattleListAPI, getPractiseResultListAPI } from "@/apis";
import { ref } from "vue";
@@ -16,8 +12,8 @@ const selectedIndex = ref(0);
const matchList = ref([]);
const battleList = ref([]);
const practiseList = ref([]);
const showBowData = ref(false);
const arrows = ref([]);
// const showBowData = ref(false);
// const arrows = ref([]);
const toMatchDetail = (id) => {
uni.navigateTo({
@@ -25,9 +21,9 @@ const toMatchDetail = (id) => {
});
};
const getPractiseDetail = async (id) => {
const result = await getPractiseAPI(id);
arrows.value = result.arrows;
showBowData.value = true;
uni.navigateTo({
url: `/pages/mine-bow-data?id=${id}`,
});
};
const onMatchLoading = async (page) => {
const result = await getBattleListAPI(page, 2);
@@ -175,11 +171,11 @@ const onPractiseLoading = async (page) => {
</view>
</ScrollList>
</view>
<BowData
<!-- <BowData
:arrows="arrows"
:show="showBowData"
:onClose="() => (showBowData = false)"
/>
/> -->
</Container>
</template>