|
@@ -60,6 +60,7 @@ import { useStore } from "vuex";
|
|
import browser from "@/utils/browser";
|
|
import browser from "@/utils/browser";
|
|
import { useApp, getApp } from "@/app";
|
|
import { useApp, getApp } from "@/app";
|
|
import common from "@/utils/common";
|
|
import common from "@/utils/common";
|
|
|
|
+import * as apis from "@/apis/index.js";
|
|
|
|
|
|
const musicPlayer = useMusicPlayer();
|
|
const musicPlayer = useMusicPlayer();
|
|
|
|
|
|
@@ -190,6 +191,7 @@ const onClickTagInfo = (el) => {
|
|
};
|
|
};
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
|
+ apis.burying_point({type:0});
|
|
app = createApp({
|
|
app = createApp({
|
|
num: browser.getURLParam("m"),
|
|
num: browser.getURLParam("m"),
|
|
dom: scene$.value,
|
|
dom: scene$.value,
|
|
@@ -253,6 +255,8 @@ onMounted(async () => {
|
|
type: "treasure",
|
|
type: "treasure",
|
|
data: tag,
|
|
data: tag,
|
|
});
|
|
});
|
|
|
|
+ apis.burying_point({type:2});
|
|
|
|
+
|
|
} else if (tag.type == "applet_link") {
|
|
} else if (tag.type == "applet_link") {
|
|
browser.openLink(tag.hotContent.liveLink)
|
|
browser.openLink(tag.hotContent.liveLink)
|
|
} else if (tag.type == "link_scene") {
|
|
} else if (tag.type == "link_scene") {
|
|
@@ -325,6 +329,13 @@ onMounted(async () => {
|
|
app.Camera.on("flying.ended", ({ targetPano }) => {
|
|
app.Camera.on("flying.ended", ({ targetPano }) => {
|
|
store.commit("setFlying", false);
|
|
store.commit("setFlying", false);
|
|
store.commit("setPanoId", targetPano.id);
|
|
store.commit("setPanoId", targetPano.id);
|
|
|
|
+ if (app.Scene.isCurrentPanoHasVideo) {
|
|
|
|
+ apis.burying_point({type:5});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ app.Camera.on("pano.chosen", (pano) => {
|
|
|
|
+ apis.burying_point({type:4});
|
|
});
|
|
});
|
|
app.store.on("tour", async (tour) => {
|
|
app.store.on("tour", async (tour) => {
|
|
app.TourManager.load(tour);
|
|
app.TourManager.load(tour);
|
|
@@ -354,6 +365,13 @@ onMounted(async () => {
|
|
app.store.on("floorcad", (floor) => store.commit("scene/loadFloorData", floor));
|
|
app.store.on("floorcad", (floor) => store.commit("scene/loadFloorData", floor));
|
|
|
|
|
|
app.render();
|
|
app.render();
|
|
|
|
+
|
|
|
|
+ document.addEventListener('visibilitychange',()=>{
|
|
|
|
+ if (document.hidden) {
|
|
|
|
+ apis.burying_point({type:1});
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<style lang="scss">
|
|
<style lang="scss">
|