From 9aa7bdcc792ca4c65baa537fd254cca688d6d3f6 Mon Sep 17 00:00:00 2001 From: Tianyi Pu <912396513@qq.com> Date: Mon, 15 Jul 2024 18:28:19 +0100 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=94=A8element=20plus=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E7=9A=84=E5=8A=A0=E8=BD=BD=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front_end/src/components/PlayerName.vue | 24 ++-- front_end/src/components/Wait.vue | 161 ------------------------ 2 files changed, 13 insertions(+), 172 deletions(-) delete mode 100644 front_end/src/components/Wait.vue diff --git a/front_end/src/components/PlayerName.vue b/front_end/src/components/PlayerName.vue index 6357baf..4cdbebc 100644 --- a/front_end/src/components/PlayerName.vue +++ b/front_end/src/components/PlayerName.vue @@ -1,16 +1,15 @@ - - {{ data.user_name }} + + {{ data.user_name + }} @@ -54,7 +54,6 @@ import image_url_default from '@/assets/person.png'; const image_url = ref(image_url_default); // import PreviewDownload from '@/components/PreviewDownload.vue'; import PreviewNumber from '@/components/PreviewNumber.vue'; -import Wait from '@/components/Wait.vue'; import { useRouter } from 'vue-router' import { ms_to_s } from "@/utils" const router = useRouter() @@ -93,12 +92,14 @@ const e_bvs_id = ref(""); const is_loading = ref(true); -const pop_show = () => { +const pop_show = async () => { + is_loading.value = true; + image_url.value = image_url_default; realname.value = ""; id.value = ""; - proxy.$axios.get('/msuser/info_abstract/', + await proxy.$axios.get('/msuser/info_abstract/', { params: { id: data.user_id, @@ -112,13 +113,13 @@ const pop_show = () => { if (response_data.avatar) { image_url.value = "data:image/;base64," + response_data.avatar; } - + const records = JSON.parse(response_data.record_abstract) b_t.value = ms_to_s(records.timems[0]) i_t.value = ms_to_s(records.timems[1]) e_t.value = ms_to_s(records.timems[2]) - + b_t_id.value = records.timems_id[0] i_t_id.value = records.timems_id[1] e_t_id.value = records.timems_id[2] @@ -155,6 +156,7 @@ const pop_hide = () => { b_bvs_id.value = ""; i_bvs_id.value = ""; e_bvs_id.value = ""; + is_loading.value = true; } function to_fixed_n(input: string | number | undefined, to_fixed: number): string | number | undefined { diff --git a/front_end/src/components/Wait.vue b/front_end/src/components/Wait.vue deleted file mode 100644 index 9b736de..0000000 --- a/front_end/src/components/Wait.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - \ No newline at end of file