YY hai 1 ano
pai
achega
2318cac867
Modificáronse 1 ficheiros con 12 adicións e 5 borrados
  1. 12 5
      src/views/live/index.vue

+ 12 - 5
src/views/live/index.vue

@@ -91,9 +91,9 @@ const dock = DockStore();
 // 加载中
 const loading: Ref<any> = ref(false);
 const activeNames: Ref<any> = ref('1');
-const science: Ref<any> = ref([]);
-const endscience: Ref<any> = ref([]);
-const nextList: Ref<any> = ref([]);
+const science: Ref<any> = ref([]); // 开始
+const endscience: Ref<any> = ref([]); // 结束
+const nextList: Ref<any> = ref([]); // 准备
 const src: Ref<any> = ref('/src/assets/live-1.jpg');
 
 // 请求
@@ -104,15 +104,22 @@ onMounted(async () => {
 });
 const search = async () => {
   let res: IQueryResult;
+  // 开始
   res = await dock.query({ status: '1' });
   if (res.errcode == 0) science.value = res.data as [];
+  // 准备
   res = await dock.query({ status: '0' });
   if (res.errcode == 0) nextList.value = res.data as [];
+  // 结束
   res = await dock.query({ status: '2' });
   if (res.errcode == 0) endscience.value = res.data as [];
 };
-const toLogin = (e) => {};
-const toJump = (e) => {};
+const toLogin = (e) => {
+  console.log(e);
+};
+const toJump = (e) => {
+  console.log(e);
+};
 </script>
 <style scoped lang="scss">
 .main {