|
@@ -62,15 +62,13 @@ import { useStore } from "vuex";
|
|
|
import browser from "@/utils/browser";
|
|
|
import { useApp, getApp } from "@/app";
|
|
|
import common from "@/utils/common";
|
|
|
+import { Cache } from "@/utils/index";
|
|
|
+
|
|
|
import * as apis from "@/apis/index.js";
|
|
|
|
|
|
let jumpNewScene = (sceneFirstView) => {
|
|
|
let url = window.location.href;
|
|
|
|
|
|
- if (!browser.hasURLParam("novideo")) {
|
|
|
- url = `${window.location.href}&novideo=1`;
|
|
|
- }
|
|
|
-
|
|
|
if (!browser.hasURLParam("pose")) {
|
|
|
url += `&${sceneFirstView.sceneview}`;
|
|
|
} else {
|
|
@@ -121,14 +119,19 @@ const showNavigations = computed(() => store.getters["showNavigations"]);
|
|
|
const scene$ = ref(null);
|
|
|
const hadVideo = ref(true);
|
|
|
|
|
|
-// !!browser.getURLParam("novideo")
|
|
|
-// m=eur-KJ-z5ZEV22AeU&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766
|
|
|
-if(browser.getURLParam("m")=='eur-KJ-z5ZEV22AeU'&&browser.getURLParam("pose")=='pano:408,qua:-0.006,0.6299,0.0049,0.7766'){
|
|
|
- hadVideo.value = false
|
|
|
-}
|
|
|
-else{
|
|
|
- hadVideo.value = true
|
|
|
+
|
|
|
+
|
|
|
+console.log(Cache.get('HIDENVIDEOEXPIRES'),5555555);
|
|
|
+
|
|
|
+if (!Cache.get('HIDENVIDEOEXPIRES')) {
|
|
|
+ if (browser.getURLParam("m") == "eur-KJ-z5ZEV22AeU" && browser.getURLParam("pose") == "pano:408,qua:-0.006,0.6299,0.0049,0.7766") {
|
|
|
+ Cache.set('HIDENVIDEOEXPIRES','yes',60*8*60)
|
|
|
+ hadVideo.value = false;
|
|
|
+ } else {
|
|
|
+ hadVideo.value = true;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
const show = ref(false);
|
|
|
const dataLoaded = ref(false);
|
|
|
const refMiniMap = ref(null);
|
|
@@ -241,7 +244,7 @@ onMounted(async () => {
|
|
|
scene: {
|
|
|
markerOpacity: 1,
|
|
|
markerURL: "https://eurs3.4dkankan.com/cdf/file/43aa29799bfd472298a47cc6370b10cc.png",
|
|
|
- pathEndColor:'#FF4641'
|
|
|
+ pathEndColor: "#FF4641",
|
|
|
},
|
|
|
});
|
|
|
app.use("MinMap", { theme: { camera_fillStyle: "#ED5D18" } });
|
|
@@ -429,7 +432,6 @@ onMounted(async () => {
|
|
|
document.removeEventListener("visibilitychange", visibilitychangeFn);
|
|
|
document.addEventListener("visibilitychange", visibilitychangeFn);
|
|
|
|
|
|
-
|
|
|
if (browser.detectWeixin()) {
|
|
|
//ios的ua中无miniProgram,但都有MicroMessenger(表示是微信浏览器)
|
|
|
wx.miniProgram.getEnv((res) => {
|