shaogen1995 3 tahun lalu
induk
melakukan
439739bd3f
1 mengubah file dengan 11 tambahan dan 2 penghapusan
  1. 11 2
      webM/src/views/Exhibitions/Detail.vue

+ 11 - 2
webM/src/views/Exhibitions/Detail.vue

@@ -69,14 +69,22 @@
       <!-- 4 -->
       <div class="box4" v-if="data.galleries">
         <div class="title">Exhibition Galleries</div>
+        <div class="swiper-container">
+          <div class="swiper-wrapper">
+            <div class="swiper-slide" v-for="i in GalLength" :key="i">
+              <img
+                :src="`/data/Exhibitions/${dataUrl}/galleries${data.topImg}/galleries${i}${data.imgLast}`"
+                alt=""
+              />
+            </div>
+          </div>
+        </div>
       </div>
     </div>
   </div>
 </template>
 
 <script>
-// import Swiper from 'swiper';
-import "swiper/css/swiper.min.css";
 import { ImagePreview } from "vant";
 import { dataAll } from "./dataAll";
 export default {
@@ -184,6 +192,7 @@ export default {
         this.info = tempArr[0];
       }, 300);
     });
+
   },
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前