浏览代码

可以移动文物

jinx 9 月之前
父节点
当前提交
f89e57e104
共有 6 个文件被更改,包括 46 次插入15 次删除
  1. 41 9
      public/json/list.json
  2. 二进制
      public/thumb/model/move-1.png
  3. 二进制
      public/thumb/model/move-2.png
  4. 二进制
      public/thumb/model/move-3.png
  5. 二进制
      public/thumb/model/move-4.png
  6. 5 6
      src/pages/detail/model.vue

+ 41 - 9
public/json/list.json

@@ -1,7 +1,39 @@
 {
   "models": [
     {
+      "id": 1,
+      "thumb": "move-1.png",
+      "modelType": 1,
+      "fileName": "https://4dscene.4dage.com/culturalrelics/demo2/Model.html?m=LJ-03frj",
+      "name": "民国红军长征过丽江时赠予丽江裁缝的美国胜家牌烤漆缝纫机头",
+      "desc": ""
+    },
+    {
       "id": 2,
+      "thumb": "move-2.png",
+      "modelType": 1,
+      "fileName": "https://4dscene.4dage.com/culturalrelics/demo2/Model.html?m=LJ-01th",
+      "name": "民国红军长征过丽江时使用的铁茶筒",
+      "desc": ""
+    },
+    {
+      "id": 3,
+      "thumb": "move-3.png",
+      "modelType": 1,
+      "fileName": "https://4dscene.4dage.com/culturalrelics/demo2/Model.html?m=LJ-04wyth",
+      "name": "民国25年红军长征过丽江时使用的皮质望远镜盒",
+      "desc": ""
+    },
+    {
+      "id": 4,
+      "thumb": "move-4.png",
+      "modelType": 1,
+      "fileName": "https://4dscene.4dage.com/culturalrelics/demo2/Model.html?m=LJ-02tj",
+      "name": "民国25年红军长征过丽江时使用的铁镜",
+      "desc": ""
+    },
+    {
+      "id": 5,
       "thumb": "pic-1.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=JinShaJinag",
@@ -9,7 +41,7 @@
       "desc": ""
     },
     {
-      "id": 3,
+      "id": 6,
       "thumb": "pic-2.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=MuGuaTaiDuKou",
@@ -17,7 +49,7 @@
       "desc": ""
     },
     {
-      "id": 4,
+      "id": 7,
       "thumb": "pic-3.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=MuQuDuDuKou",
@@ -25,7 +57,7 @@
       "desc": ""
     },
     {
-      "id": 5,
+      "id": 8,
       "thumb": "pic-4.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=GeZiDuDuKou",
@@ -33,7 +65,7 @@
       "desc": ""
     },
     {
-      "id": 6,
+      "id": 9,
       "thumb": "pic-5.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=ShiKeDuKou",
@@ -41,7 +73,7 @@
       "desc": ""
     },
     {
-      "id": 7,
+      "id": 10,
       "thumb": "pic-6.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=JuDianDuKou",
@@ -49,7 +81,7 @@
       "desc": ""
     },
     {
-      "id": 8,
+      "id": 11,
       "thumb": "pic-7.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=WuMingHongJunZhanShiMu",
@@ -57,7 +89,7 @@
       "desc": ""
     },
     {
-      "id": 9,
+      "id": 12,
       "thumb": "pic-8.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=ShiGuJie",
@@ -65,7 +97,7 @@
       "desc": ""
     },
     {
-      "id": 10,
+      "id": 13,
       "thumb": "pic-9.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=ShiGuXiTai",
@@ -73,7 +105,7 @@
       "desc": ""
     },
     {
-      "id": 11,
+      "id": 14,
       "thumb": "pic-10.png",
       "modelType": 2,
       "fileName": "https://gis.4dage.com/gis/data/index.html#/map?data=TieHongQiao",

二进制
public/thumb/model/move-1.png


二进制
public/thumb/model/move-2.png


二进制
public/thumb/model/move-3.png


二进制
public/thumb/model/move-4.png


+ 5 - 6
src/pages/detail/model.vue

@@ -15,7 +15,6 @@
           <iframe id="ifr" :src="getIframeUrl()" frameborder="0"></iframe>
           <!-- <img :src="`./thumb/model/${info.thumb}`" alt="" /> -->
         </div>
-    
       </div>
       <!-- <div class="model-text">
         <p class="title">{{ info.name }}</p>
@@ -68,11 +67,11 @@ export default {
   methods: {
     getIframeUrl() {
       let url = "";
-      if (this.info.modelType == 1) {
-        url = `/html/model.html?m=${encodeURIComponent(this.info.fileName)}`;
-      } else {
-        url = this.info.fileName;
-      }
+      // if (this.info.modelType == 1) {
+      //   url = `/html/model.html?m=${encodeURIComponent(this.info.fileName)}`;
+      // } else {
+      url = this.info.fileName;
+      // }
       return url;
     },
     onClose() {