UI优化
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user