|
@@ -1,10 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<LoadingLogo v-if="workEnable" />
|
|
<LoadingLogo v-if="workEnable" />
|
|
<template v-if="workEnable">
|
|
<template v-if="workEnable">
|
|
- <Opening
|
|
|
|
- :coverData="coverInfo"
|
|
|
|
- v-if="coverInfo.isShowCover && !hasPasswordLock"
|
|
|
|
- />
|
|
|
|
|
|
+ <Opening :coverData="coverInfo" v-if="coverInfo.isShowCover && !hasPasswordLock" />
|
|
<Password @pass="handlePass" />
|
|
<Password @pass="handlePass" />
|
|
<Share />
|
|
<Share />
|
|
<div class="ui-view-layout" :class="{ show: show }">
|
|
<div class="ui-view-layout" :class="{ show: show }">
|
|
@@ -39,7 +36,7 @@ import {
|
|
watch,
|
|
watch,
|
|
nextTick,
|
|
nextTick,
|
|
} from "vue";
|
|
} from "vue";
|
|
-import { getPanoInfo, checkWork, exchangeId } from "@/apis";
|
|
|
|
|
|
+import { getOfflinePanoInfo, checkWork, exchangeId } from "@/apis";
|
|
import { useStore } from "vuex";
|
|
import { useStore } from "vuex";
|
|
import config from "@/utils/config";
|
|
import config from "@/utils/config";
|
|
import browser from "@/utils/browser";
|
|
import browser from "@/utils/browser";
|
|
@@ -86,27 +83,9 @@ onMounted(async () => {
|
|
);
|
|
);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- const idRes = await exchangeId({
|
|
|
|
- id: config.projectNum
|
|
|
|
- })
|
|
|
|
- const { id, num, calcStatus } = idRes.data
|
|
|
|
- config.projectNum = id
|
|
|
|
-
|
|
|
|
- if (calcStatus === 0) {
|
|
|
|
- Dialog.alert({
|
|
|
|
- title: t("common.tips"),
|
|
|
|
- content: t('common.calcing'),
|
|
|
|
- okText: t("common.confirm"),
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
|
|
- let res = await checkWork();
|
|
|
|
- if (!res.data) {
|
|
|
|
- workEnable.value = res.data;
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- getPanoInfo().then(async (data) => {
|
|
|
|
|
|
+
|
|
|
|
+ getOfflinePanoInfo().then(async (data) => {
|
|
isShowOpeningAnimation.value = data.isShowOpeningAnimation
|
|
isShowOpeningAnimation.value = data.isShowOpeningAnimation
|
|
? Number(data.isShowOpeningAnimation)
|
|
? Number(data.isShowOpeningAnimation)
|
|
: 0;
|
|
: 0;
|
|
@@ -199,10 +178,7 @@ onMounted(async () => {
|
|
document.body.setAttribute("is-mobile", true);
|
|
document.body.setAttribute("is-mobile", true);
|
|
|
|
|
|
const app = createApp({
|
|
const app = createApp({
|
|
- // xml: "%HTMLPATH%/static/template/tour.xml",
|
|
|
|
- xml: `${process.env.VUE_APP_CDN}/720yun_fd_manage/${
|
|
|
|
- config.projectNum
|
|
|
|
- }/tour.xml?rnd=${Math.random()}`,
|
|
|
|
|
|
+ xml: `data/tour/tour.xml?rnd=${Math.random()}`,
|
|
swf: "%HTMLPATH%/showviewer/lib/krpano/tour.swf",
|
|
swf: "%HTMLPATH%/showviewer/lib/krpano/tour.swf",
|
|
target: "pano",
|
|
target: "pano",
|
|
html5: "auto",
|
|
html5: "auto",
|
|
@@ -270,8 +246,8 @@ const handleVisualLimit = (app, currentScene) => {
|
|
const { vlookatmax, vlookatmin } = currentScene.initVisual;
|
|
const { vlookatmax, vlookatmin } = currentScene.initVisual;
|
|
// console.log('initVisual',currentScene.initVisual)
|
|
// console.log('initVisual',currentScene.initVisual)
|
|
app.krpanoDom.set(`view.limitview`, "lookat");
|
|
app.krpanoDom.set(`view.limitview`, "lookat");
|
|
- app.krpanoDom.set(`view.vlookatmin`, vlookatmin);
|
|
|
|
- app.krpanoDom.set(`view.vlookatmax`, vlookatmax);
|
|
|
|
|
|
+ app.krpanoDom.set(`view.vlookatmin`, vlookatmin || -90);
|
|
|
|
+ app.krpanoDom.set(`view.vlookatmax`, vlookatmax || 90);
|
|
};
|
|
};
|
|
const handleMasksUpdate = (skyMask, earthMask, app) => {
|
|
const handleMasksUpdate = (skyMask, earthMask, app) => {
|
|
const lang = getLocale();
|
|
const lang = getLocale();
|