shaogen1995 2 năm trước cách đây
mục cha
commit
10aa119c02

BIN
QJKK/src/assets/img/Goods/Rcode.jpg


BIN
SWKK/src/assets/img/Goods/Rcode.jpg


BIN
vue/src/assets/img/Goods/Rcode.jpg


+ 1 - 1
vue/src/views/Goods/components/Three.vue

@@ -80,7 +80,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">

+ 11 - 11
vue/src/views/Goods/data.js

@@ -6157,17 +6157,17 @@ export const goodsData = {
       imgNum: 2,
       noShow: true
     },
-    {
-      type: 'picture',
-      bs: '461',
-      name: '1930年何寒莺烈士在南京时全身像',
-      age: '中华民国时期(1912~1949)',
-      sort: '音像制品',
-      size: '8*6厘米',
-      grain: '纸',
-      estate: '三级',
-      imgNum: 1
-    },
+    // {
+    //   type: 'picture',
+    //   bs: '461',
+    //   name: '1930年何寒莺烈士在南京时全身像',
+    //   age: '中华民国时期(1912~1949)',
+    //   sort: '音像制品',
+    //   size: '8*6厘米',
+    //   grain: '纸',
+    //   estate: '三级',
+    //   imgNum: 1
+    // },
     {
       type: 'picture',
       bs: '462',

+ 16 - 1
vue/src/views/GoodsInfo.vue

@@ -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"];