@@ -91,40 +126,41 @@ const t = useI18n();
const review_queue = ref
([]);
const newest_queue = ref([]);
const news_queue = ref([]);
+const active_tab = ref('newest');
-const review_queue_updating = ref(false);
+const review_queue_updating = ref(true);
+
+// 0: 可以刷新, 1: 正在刷新, 2: 刷新完毕,冷却中
+const newest_queue_status = ref(1);
+const news_queue_status = ref(1);
onMounted(() => {
update_review_queue()
update_newest_queue()
- proxy.$axios.get('/video/news_queue/',
- {
- params: {}
- }
- ).then(function (response) {
- news_queue.value = response.data.map((v: string) => { return JSON.parse(v) })
- })
+ update_news_queue()
})
const update_review_queue = async () => {
- review_queue_updating.value = true
+ review_queue_updating.value = true;
await proxy.$axios.get('/video/review_queue/',
{
params: {}
}
).then(function (response) {
- review_queue.value.splice(0,review_queue.value.length)
+ review_queue.value.splice(0, review_queue.value.length)
for (let key in response.data) {
response.data[key] = JSON.parse(response.data[key] as string);
response.data[key]["key"] = Number.parseInt(key);
review_queue.value.push(response.data[key]);
}
})
- review_queue_updating.value = false
+ review_queue_updating.value = false;
}
const update_newest_queue = async () => {
- proxy.$axios.get('/video/newest_queue/',
+ newest_queue_status.value = 1;
+ setTimeout(() => { newest_queue_status.value = 0; }, 5000)
+ await proxy.$axios.get('/video/newest_queue/',
{
params: {}
}
@@ -138,30 +174,43 @@ const update_newest_queue = async () => {
}
}
})
+ if (newest_queue_status.value == 1) {
+ newest_queue_status.value = 2;
+ }
+}
+
+const update_news_queue = async () => {
+ news_queue_status.value = 1;
+ setTimeout(() => { news_queue_status.value = 0; }, 5000)
+ await proxy.$axios.get('/video/news_queue/',
+ {
+ params: {}
+ }
+ ).then(function (response) {
+ news_queue.value = response.data.map((v: string) => { return JSON.parse(v) })
+ })
+ if (news_queue_status.value == 1) {
+ news_queue_status.value = 2;
+ }
}
diff --git a/front_end/src/views/PlayerProfileView.vue b/front_end/src/views/PlayerProfileView.vue
new file mode 100644
index 0000000..05957a0
--- /dev/null
+++ b/front_end/src/views/PlayerProfileView.vue
@@ -0,0 +1,8 @@
+
+ {{ $t('accountlink.title') }}
+
+
+
+
\ No newline at end of file
diff --git a/front_end/src/views/PlayerView.vue b/front_end/src/views/PlayerView.vue
index ca38ffa..5084b79 100644
--- a/front_end/src/views/PlayerView.vue
+++ b/front_end/src/views/PlayerView.vue
@@ -59,13 +59,16 @@
-
+
+
+
+
-
+
-
@@ -82,6 +85,7 @@ import { onMounted, ref, watch } from 'vue'
import useCurrentInstance from "@/utils/common/useCurrentInstance";
import PlayerRecordView from '@/views/PlayerRecordView.vue';
import PlayerVideosView from '@/views/PlayerVideosView.vue';
+import PlayerProfileView from './PlayerProfileView.vue';
import UploadView from './UploadView.vue';
// const AsyncPlayerVideosView = defineAsyncComponent(() => import('@/views/PlayerVideosView.vue'));
import "../../node_modules/flag-icon-css/css/flag-icons.min.css";
@@ -123,7 +127,7 @@ const is_editing = ref(false);
const visible = ref(false);
// 标签默认切在第一页
-const activeName = ref('first')
+const activeName = ref('profile')
const player = {
id: -1,
};
diff --git a/front_end/src/views/SettingView.vue b/front_end/src/views/SettingView.vue
index 5ecae76..67848c7 100644
--- a/front_end/src/views/SettingView.vue
+++ b/front_end/src/views/SettingView.vue
@@ -38,15 +38,11 @@
{{ $t('common.toDo') }}
{{ $t('common.toDo') }}
+
-
-
-
-
-
\ No newline at end of file
diff --git a/front_end/src/views/StaffView.vue b/front_end/src/views/StaffView.vue
index 305b216..6ef3090 100644
--- a/front_end/src/views/StaffView.vue
+++ b/front_end/src/views/StaffView.vue
@@ -39,6 +39,8 @@
{{ value }}
+
+