Procházet zdrojové kódy

修改显示轮播图和3D文物

shaogen1995 před 4 roky
rodič
revize
704c206531
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      src/pages/showPages/cultural-relic/index.vue

+ 2 - 4
src/pages/showPages/cultural-relic/index.vue

@@ -12,7 +12,7 @@
           <p>{{ detail.name }}</p>
           <p>{{ detail.name }}</p>
                       <!-- v-if="detail.type === '3D'" -->
                       <!-- v-if="detail.type === '3D'" -->
           <iframe
           <iframe
-            v-if="0"
+            v-if="detail.type === '3D'"
             :src="detail.modelUrl"
             :src="detail.modelUrl"
             frameborder="0"
             frameborder="0"
           ></iframe>
           ></iframe>
@@ -127,9 +127,7 @@ export default {
 
 
       this.detail = result.data
       this.detail = result.data
       this.detail.modelUrl += `&hideAction=true`
       this.detail.modelUrl += `&hideAction=true`
-      this.imgs = this.detail.typeImages
-        ? JSON.parse(this.detail.typeImages)
-        : []
+      if (this.detail.urlList) this.imgs = this.detail.urlList.split(',')
       this.type = this.getType()
       this.type = this.getType()
     },
     },