|
@@ -8,7 +8,7 @@
|
|
|
<!-- 本地化加上 -->
|
|
|
<!-- :src="`/YHTLSJNG/Model2.html?m=${info.bs}`" -->
|
|
|
<iframe
|
|
|
- :src="`https://4dscene.4dage.com/culturalrelics/YHTLSJNG/Model2.html?m=${info.bs}`"
|
|
|
+ :src="`/YHTLSJNG/Model2.html?m=${info.bs}`"
|
|
|
frameborder="0"
|
|
|
></iframe>
|
|
|
<div class="txtInfo">
|
|
@@ -39,6 +39,21 @@ export default {
|
|
|
watch: {},
|
|
|
methods: {},
|
|
|
created() {
|
|
|
+ // 移动端和pc端的切换
|
|
|
+ if (
|
|
|
+ window.navigator.userAgent.match(
|
|
|
+ /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ // 移动端
|
|
|
+ if (window.location.href.includes("YHT")) {
|
|
|
+ window.location.href = window.location.href.replace("YHT", "YHTM");
|
|
|
+ setTimeout(() => {
|
|
|
+ location.reload(true);
|
|
|
+ }, 200);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
const threeData = goodsData["3D"];
|
|
|
const towData = goodsData["2D"];
|
|
|
|