|
@@ -64,6 +64,23 @@ import { useApp, getApp } from "@/app";
|
|
import common from "@/utils/common";
|
|
import common from "@/utils/common";
|
|
import * as apis from "@/apis/index.js";
|
|
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 {
|
|
|
|
+ url = browser.replaceQueryString(url, "pose", sceneFirstView.sceneview.replace("pose=", ""));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ url = browser.replaceQueryString(url, "m", sceneFirstView.num);
|
|
|
|
+ return url;
|
|
|
|
+};
|
|
|
|
+
|
|
let visibilitychangeFn = () => {
|
|
let visibilitychangeFn = () => {
|
|
if (browser.isTabHidden()) {
|
|
if (browser.isTabHidden()) {
|
|
apis.burying_point({ type: 1 });
|
|
apis.burying_point({ type: 1 });
|
|
@@ -198,6 +215,9 @@ const onClickTagInfo = (el) => {
|
|
type: "goodlist",
|
|
type: "goodlist",
|
|
data: item,
|
|
data: item,
|
|
});
|
|
});
|
|
|
|
+ } else if (item.type == "link_scene") {
|
|
|
|
+ let sceneFirstView = item.hotContent.sceneFirstView;
|
|
|
|
+ window.location.href = jumpNewScene(sceneFirstView);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -212,6 +232,7 @@ onMounted(async () => {
|
|
scene: {
|
|
scene: {
|
|
markerOpacity: 1,
|
|
markerOpacity: 1,
|
|
markerURL: "https://eurs3.4dkankan.com/cdf/file/43aa29799bfd472298a47cc6370b10cc.png",
|
|
markerURL: "https://eurs3.4dkankan.com/cdf/file/43aa29799bfd472298a47cc6370b10cc.png",
|
|
|
|
+ pathEndColor:'#FF4641'
|
|
},
|
|
},
|
|
});
|
|
});
|
|
app.use("MinMap", { theme: { camera_fillStyle: "#ED5D18" } });
|
|
app.use("MinMap", { theme: { camera_fillStyle: "#ED5D18" } });
|
|
@@ -231,7 +252,13 @@ onMounted(async () => {
|
|
data.hotContent.liveIcon.src ? common.changeUrl(data.hotContent.liveIcon.src) : "{{icon}}"
|
|
data.hotContent.liveIcon.src ? common.changeUrl(data.hotContent.liveIcon.src) : "{{icon}}"
|
|
})"></span>`;
|
|
})"></span>`;
|
|
} else if (data.type == "link_scene") {
|
|
} else if (data.type == "link_scene") {
|
|
- return `<span class="tag-icon animate" style="background-image:url({{icon}})"></span>`;
|
|
|
|
|
|
+ return `<span class="tag-icon animate" style="background-image:url({{icon}})"></span>
|
|
|
|
+ <div class="tag-body">
|
|
|
|
+ <div data-id="${data.sid}" class="tag-commodity tag-link_scene">
|
|
|
|
+ <p class="tag-title">點擊前往下一個區域</p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ `;
|
|
} else if (data.type == "commodity") {
|
|
} else if (data.type == "commodity") {
|
|
let arr = data.products.map((item) => item.price);
|
|
let arr = data.products.map((item) => item.price);
|
|
let priceMin = isFinite(Math.min.apply(null, arr)) ? Math.min.apply(null, arr) : 0;
|
|
let priceMin = isFinite(Math.min.apply(null, arr)) ? Math.min.apply(null, arr) : 0;
|
|
@@ -273,19 +300,19 @@ onMounted(async () => {
|
|
browser.openLink(tag.hotContent.liveLink);
|
|
browser.openLink(tag.hotContent.liveLink);
|
|
} else if (tag.type == "link_scene") {
|
|
} else if (tag.type == "link_scene") {
|
|
let sceneFirstView = tag.hotContent.sceneFirstView;
|
|
let sceneFirstView = tag.hotContent.sceneFirstView;
|
|
- window.location.href = "".concat(window.location.pathname, "?").concat(`m=${sceneFirstView.num}&novideo=1&${sceneFirstView.sceneview}`);
|
|
|
|
|
|
+ window.location.href = jumpNewScene(sceneFirstView);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
view.on("focus", (e) => {
|
|
view.on("focus", (e) => {
|
|
document.querySelectorAll("[xui_tags_view] >div").forEach((el) => {
|
|
document.querySelectorAll("[xui_tags_view] >div").forEach((el) => {
|
|
- if (el.getAttribute("data-tag-type") == "commodity") {
|
|
|
|
|
|
+ if (el.getAttribute("data-tag-type") == "link_scene" || el.getAttribute("data-tag-type") == "commodity") {
|
|
el.querySelector(".tag-body").classList.remove("show");
|
|
el.querySelector(".tag-body").classList.remove("show");
|
|
el.style.zIndex = "auto";
|
|
el.style.zIndex = "auto";
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- if (e.data.type == "commodity") {
|
|
|
|
|
|
+ if (e.data.type == "commodity" || e.data.type == "link_scene") {
|
|
e.target.style.zIndex = "999";
|
|
e.target.style.zIndex = "999";
|
|
e.target.querySelector(".tag-body").classList.add("show");
|
|
e.target.querySelector(".tag-body").classList.add("show");
|
|
e.target.querySelector(".tag-commodity").removeEventListener("click", onClickTagInfo);
|
|
e.target.querySelector(".tag-commodity").removeEventListener("click", onClickTagInfo);
|
|
@@ -474,7 +501,8 @@ onMounted(async () => {
|
|
transform-origin: bottom;
|
|
transform-origin: bottom;
|
|
transition: all 0.3s cubic-bezier(0.35, 0.32, 0.65, 0.63);
|
|
transition: all 0.3s cubic-bezier(0.35, 0.32, 0.65, 0.63);
|
|
// pointer-events: none;
|
|
// pointer-events: none;
|
|
- .tag-commodity {
|
|
|
|
|
|
+ .tag-commodity,
|
|
|
|
+ .tag-link_scene {
|
|
min-width: 230px;
|
|
min-width: 230px;
|
|
height: 76px;
|
|
height: 76px;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
background: rgba(255, 255, 255, 0.8);
|
|
@@ -529,6 +557,16 @@ onMounted(async () => {
|
|
&.show {
|
|
&.show {
|
|
transform: translateX(-50%) scale(1);
|
|
transform: translateX(-50%) scale(1);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .tag-link_scene {
|
|
|
|
+ height: auto;
|
|
|
|
+ min-width: unset;
|
|
|
|
+ .tag-title {
|
|
|
|
+ padding: 10px;
|
|
|
|
+ width: auto;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.coupon {
|
|
.coupon {
|