浏览代码

文物详情 对接实际二维数据

任一存 2 年之前
父节点
当前提交
cff9965d8b

+ 1 - 1
.env.dev

@@ -1,7 +1,7 @@
 NODE_ENV=development
 VUE_APP_SCENE_CODE_FLOOR_1=KJ-aigSkgvRWR
 VUE_APP_SCENE_CODE_FLOOR_2=KJ-ufjLwlSXba
-VUE_APP_CDN_PATH=/goodsData/
+VUE_APP_CDN_PATH=http://zzbbh.4dage.com/YHT/goodsData/
 VUE_APP_MOBILE_URL=http://zzbbh.4dage.com/YHTM/index.html
 VUE_APP_PC_URL=http://zzbbh.4dage.com/YHT/index.html
 VUE_APP_PROTOCOL=http://

+ 1 - 1
.env.prod

@@ -1,7 +1,7 @@
 NODE_ENV=production
 VUE_APP_SCENE_CODE_FLOOR_1=KJ-aigSkgvRWR
 VUE_APP_SCENE_CODE_FLOOR_2=KJ-ufjLwlSXba
-VUE_APP_CDN_PATH=/YHTM/goodsData/
+VUE_APP_CDN_PATH=http://zzbbh.4dage.com/YHT/goodsData/
 VUE_APP_MOBILE_URL=https://zzbbh.4dage.com/YHTM/index.html
 VUE_APP_PC_URL=https://zzbbh.4dage.com/YHT/index.html
 VUE_APP_PROTOCOL=https://

+ 1 - 1
.env.test

@@ -1,7 +1,7 @@
 NODE_ENV=production
 VUE_APP_SCENE_CODE_FLOOR_1=KJ-aigSkgvRWR
 VUE_APP_SCENE_CODE_FLOOR_2=KJ-ufjLwlSXba
-VUE_APP_CDN_PATH=/YHTM/goodsData/
+VUE_APP_CDN_PATH=http://zzbbh.4dage.com/YHT/goodsData/
 VUE_APP_MOBILE_URL=http://zzbbh.4dage.com/YHTM/index.html
 VUE_APP_PC_URL=http://zzbbh.4dage.com/YHT/index.html
 VUE_APP_PROTOCOL=http://

二进制
public/goodsData/2D/1_1.JPG


二进制
public/goodsData/2D/1_2.JPG


二进制
public/goodsData/2D/2.JPG


二进制
public/goodsData/2D/3_1.JPG


二进制
public/goodsData/2D/3_2.JPG


二进制
public/goodsData/2D/3_3.JPG


二进制
public/goodsData/2D/3_4.JPG


二进制
public/goodsData/2D/4_1.JPG


二进制
public/goodsData/2D/4_2.JPG


二进制
public/goodsData/2D/4_3.JPG


二进制
public/goodsData/2D/5_1.JPG


二进制
public/goodsData/2D/5_2.JPG


二进制
public/goodsData/2D/6.JPG


二进制
public/goodsData/2D/7_1.JPG


二进制
public/goodsData/2D/7_2.JPG


二进制
public/goodsData/2D/8.JPG


二进制
public/goodsData/3D/yht06.png


二进制
public/goodsData/3D/yht40.png


二进制
public/goodsData/3D/yht49.png


二进制
public/goodsData/3D/yht50.png


二进制
public/goodsData/3D/yht53.png


二进制
public/goodsData/3D/yht55.png


二进制
public/goodsData/3D/yht61.png


二进制
public/goodsData/3D/yht63.png


二进制
public/goodsData/3D/yht65.png


文件差异内容过多而无法显示
+ 643 - 551
src/assets/data/data.js


+ 12 - 9
src/components/RelicDetail.vue

@@ -161,12 +161,17 @@ export default {
     this.dimNumber = this.$route.query.dimNumber
 
     this.iframeSrc = `${process.env.VUE_APP_PROTOCOL}4dscene.4dage.com/culturalrelics/YHTLSJNG/Model2.html?m=${this.$route.query.bs}`
-    if (this.$route.query.imgNum && this.$route.query.imgNum > 1) {
-      for (let index = 0; index < this.$route.query.imgNum; index++) {
-        this.imageList.push(`${this.$cdnPath}${this.dimNumber}D/${this.$route.query.bs}_${index + 1}.${this.dimNumber === 3 ? 'png' : 'JPG'}`)
-      }
+    if (this.dimNumber === 3) {
+      this.imageList = [`${this.$cdnPath}3D/${this.$route.query.bs}.png`]
     } else {
-      this.imageList = [`${this.$cdnPath}${this.dimNumber}D/${this.$route.query.bs}.${this.dimNumber === 3 ? 'png' : 'JPG'}`]
+      if (this.$route.query.imgNum === 1) {
+        this.imageList = [`${this.$cdnPath}2D/${this.$route.query.bs}.jpg`]
+      } else {
+        for (let index = 0; index < this.$route.query.imgNum; index++) {
+          this.imageList.push(`${this.$cdnPath}2D/${this.$route.query.bs} (${index + 1}).jpg`)
+        }
+        console.log(this.imageList)
+      }
     }
     this.detailInfo = [
       {
@@ -179,9 +184,7 @@ export default {
       },
       {
         key: '尺寸',
-        value: [this.$route.query.long, this.$route.query.width, this.$route.query.tall].filter((item) => {
-          return !!item
-        }).join('*') + 'cm',
+        value: this.$route.query.size,
       },
       {
         key: '质地',
@@ -189,7 +192,7 @@ export default {
       },
       {
         key: '级别',
-        value: '一级',
+        value: this.$route.query.estate,
       }
     ]
   },

+ 5 - 6
src/views/RelicsAppr.vue

@@ -108,7 +108,7 @@
         :is-odd="!!(index % 2)"
         :is-first="index === 1"
         :is-last="index === list3d.length - 1"
-        :relic-image="`${$cdnPath}3D/${item.bs}.png?x-oss-process=image/resize,p_4`"
+        :relic-image="`${$cdnPath}3D/${item.bs}.png?x-oss-process=image/resize,p_10`"
         :relic-title="item.name"
         class="relic-item"
         @click="$router.push({ name: 'RelicDetail' , query: {...item, ...{dimNumber: 3}} })"
@@ -128,7 +128,7 @@
       >
         <div class="img-wrap">
           <img
-            v-lazy="`${$cdnPath}2D/${item.bs}${item.imgNum ? `_1` : ``}.JPG?x-oss-process=image/resize,p_4`"
+            v-lazy="`${$cdnPath}2D/${item.bs}${item.imgNum === 1 ? `` : ` (1)`}.jpg?x-oss-process=image/resize,p_33`"
             alt=""
             draggable="false"
           >
@@ -157,7 +157,6 @@
 
 <script>
 import RelicItem from '@/components/RelicItem.vue'
-import { goodsData as rawData } from "@/assets/data/data.js"
 
 export default {
   components: { RelicItem },
@@ -187,7 +186,7 @@ export default {
         },
         {
           name: '服装',
-          id: 'clothign',
+          id: 'clothing',
         },
       ],
       typeList2d: [
@@ -209,7 +208,7 @@ export default {
         },
         {
           name: '服装',
-          id: 'clothign',
+          id: 'clothing',
         },
         {
           name: '字画',
@@ -217,7 +216,7 @@ export default {
         },
         {
           name: '照片',
-          id: 'photo',
+          id: 'picture',
         },
       ],
     }