|
@@ -32,7 +32,11 @@
|
|
|
<v-title />
|
|
|
|
|
|
<!-- 底部菜单 -->
|
|
|
- <v-menu :loadingstate="loading" :hideTools="hideTools" @toHome="showWelcome = true" />
|
|
|
+ <v-menu
|
|
|
+ :loadingstate="loading"
|
|
|
+ :hideTools="hideTools"
|
|
|
+ @toHome="showWelcome = true"
|
|
|
+ />
|
|
|
|
|
|
<!-- 导览 -->
|
|
|
<v-guide />
|
|
@@ -101,8 +105,6 @@ import vrCon from "@/views/gui/vrcon";
|
|
|
import vOther from "@/views/gui/other";
|
|
|
import welcome from "@/components/welcome";
|
|
|
|
|
|
-import { addVisitAPI } from "../utils/api";
|
|
|
-
|
|
|
export default {
|
|
|
name: "Home",
|
|
|
components: {
|
|
@@ -153,38 +155,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.$nextTick(() => {
|
|
|
- window.evt = document.createEvent("HTMLEvents");
|
|
|
- window.evt.initEvent("loadfinish", false, false);
|
|
|
- window.addEventListener("loadfinish", () => {
|
|
|
- this.loading = false;
|
|
|
- // document.title = "珠海高新区中共党史学习教育园地线上展厅";
|
|
|
- this.getHotSpotList();
|
|
|
- window.player.on("openTips", () => {
|
|
|
- this.$showTips();
|
|
|
- });
|
|
|
-
|
|
|
- window.player.on("openHotspot", (data) => {
|
|
|
- this.$showHotspot({
|
|
|
- hotspot: this.hotspots[data],
|
|
|
- });
|
|
|
- });
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- async created() {
|
|
|
- // 雷锋故居场景需求,会携带 hideCover=1
|
|
|
- this.hideTools = Boolean(Number(this.$route.query.hideCover));
|
|
|
- this.showWelcome = !this.hideTools;
|
|
|
-
|
|
|
- // 发送访问量
|
|
|
- try {
|
|
|
- await addVisitAPI();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- },
|
|
|
+ mounted() {},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -219,5 +190,4 @@ export default {
|
|
|
top: 30px;
|
|
|
left: 30px;
|
|
|
}
|
|
|
-
|
|
|
</style>
|