|
@@ -1,5 +1,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import BackButton from "@/components/BackButton.vue";
|
|
import BackButton from "@/components/BackButton.vue";
|
|
|
|
|
+import HomeItem from "@/components/HomeItem.vue";
|
|
|
|
|
+import { Item } from "@/mdoel/item";
|
|
|
import { onMounted, ref } from "vue";
|
|
import { onMounted, ref } from "vue";
|
|
|
const current = ref("");
|
|
const current = ref("");
|
|
|
const getCurrentTime = () => {
|
|
const getCurrentTime = () => {
|
|
@@ -14,6 +16,28 @@ const getCurrentTime = () => {
|
|
|
current.value = res;
|
|
current.value = res;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const items: Item[] = [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: "场景选择",
|
|
|
|
|
+ url: "/",
|
|
|
|
|
+ img: "/image/1.png",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: "自动旋转",
|
|
|
|
|
+ url: "/",
|
|
|
|
|
+ img: "/image/2.png",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: "学校简历",
|
|
|
|
|
+ url: "/",
|
|
|
|
|
+ img: "/image/3.png",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: "学生查询",
|
|
|
|
|
+ url: "/find",
|
|
|
|
|
+ img: "/image/4.png",
|
|
|
|
|
+ },
|
|
|
|
|
+];
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getCurrentTime();
|
|
getCurrentTime();
|
|
|
setInterval(getCurrentTime, 1000);
|
|
setInterval(getCurrentTime, 1000);
|
|
@@ -21,10 +45,10 @@ onMounted(() => {
|
|
|
</script>
|
|
</script>
|
|
|
<template>
|
|
<template>
|
|
|
<div class="relative w-full h-screen">
|
|
<div class="relative w-full h-screen">
|
|
|
- <!-- <iframe
|
|
|
|
|
|
|
+ <iframe
|
|
|
class="w-full h-screen"
|
|
class="w-full h-screen"
|
|
|
:src="`https://www.720pai.net/tour/dfecea34bfc84088?Tid=`"
|
|
:src="`https://www.720pai.net/tour/dfecea34bfc84088?Tid=`"
|
|
|
- ></iframe> -->
|
|
|
|
|
|
|
+ ></iframe>
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
|
class="absolute top-0 left-0 flex justify-between flex-col h-screen w-full"
|
|
class="absolute top-0 left-0 flex justify-between flex-col h-screen w-full"
|
|
@@ -41,9 +65,7 @@ onMounted(() => {
|
|
|
<!-- 中 -->
|
|
<!-- 中 -->
|
|
|
<div class="flex justify-end px-10">
|
|
<div class="flex justify-end px-10">
|
|
|
<div>
|
|
<div>
|
|
|
- <div>1</div>
|
|
|
|
|
- <div>2</div>
|
|
|
|
|
- <div>3</div>
|
|
|
|
|
|
|
+ <HomeItem v-for="(item, i) in items" :key="i" :item="item" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 下 -->
|
|
<!-- 下 -->
|