Browse Source

bug fix: 三维文物iframe不加载;二维文物列表只有一列

任一存 2 years ago
parent
commit
1ed1679a61
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/RelicDetail.vue
  2. 1 1
      src/views/RelicsAppr.vue

+ 1 - 1
src/components/RelicDetail.vue

@@ -116,7 +116,7 @@ export default {
     this.title = this.$route.query.name
     this.dimNumber = this.$route.query.dimNumber
 
-    this.iframeSrc = `http://4dscene.4dage.com/culturalrelics/YHTLSJNG/Model2.html?m=${this.$route.query.bs}`
+    this.iframeSrc = `https://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'}`)

+ 1 - 1
src/views/RelicsAppr.vue

@@ -367,7 +367,7 @@ export default {
     padding: 9rem 0 4rem 0;
     display: flex;
     flex-wrap: wrap;
-    gap: 1.9rem;
+    gap: 2.5rem 1.6rem;
     > li {
       width: 20.83rem;
       height: 19.33rem;