|
@@ -0,0 +1,94 @@
|
|
|
+<template>
|
|
|
+ <van-swipe class="list-swiper" height="234" indicator-color="white" :autoplay="5000">
|
|
|
+ <van-swipe-item v-for="item in list" :key="item.title">
|
|
|
+ <van-image lazy-load fit="cover" width="100%" height="100%" :src="item.banner" />
|
|
|
+ </van-swipe-item>
|
|
|
+ </van-swipe>
|
|
|
+
|
|
|
+ <div class="list">
|
|
|
+ <h2>中国大运河博物馆云展览</h2>
|
|
|
+
|
|
|
+ <div
|
|
|
+ v-for="item in list"
|
|
|
+ :key="item.title"
|
|
|
+ :class="['list__item', item.class]"
|
|
|
+ @click="handleRoute(item.href)"
|
|
|
+ >
|
|
|
+ <p v-html="item.title" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+import { reactive } from 'vue'
|
|
|
+import banner1 from '@/assets/images/cover-home/banner_beita@2x-min.jpg'
|
|
|
+import banner2 from '@/assets/images/cover-home/banner_zhouji@2x-min.jpg'
|
|
|
+import banner3 from '@/assets/images/cover-home/banner_hongzhuang@2x-min.jpg'
|
|
|
+import banner4 from '@/assets/images/cover-home/banner_niaolei@2x-min.jpg'
|
|
|
+import banner5 from '@/assets/images/cover-home/banner_ninglu@2x-min.jpg'
|
|
|
+import banner6 from '@/assets/images/cover-home/banner_qianfan@2x-min.jpg'
|
|
|
+import banner7 from '@/assets/images/cover-home/banner_tongyan@2x-min.jpg'
|
|
|
+import banner8 from '@/assets/images/cover-home/banner_hudie@2x-min.jpg'
|
|
|
+
|
|
|
+const dynamicPathRegex = /\/[^/]+\/index\.html(#.*)?/
|
|
|
+const path = location.href.replace(dynamicPathRegex, '')
|
|
|
+
|
|
|
+const list = reactive([
|
|
|
+ {
|
|
|
+ title: '运河镌石——<br/>大运河沿线碑拓展',
|
|
|
+ class: 'bt',
|
|
|
+ banner: banner1,
|
|
|
+ href: path + '/monument/index.html#/list/1/0'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '舟行千里<br/>船文化专题展',
|
|
|
+ class: 'zxql',
|
|
|
+ banner: banner2,
|
|
|
+ href: path + '/book-fair/index.html#/list/1/0'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '童眼看运河——<br/>我心中的大运河',
|
|
|
+ class: 'ty',
|
|
|
+ banner: banner7,
|
|
|
+ href: path + '/tongyan/index.html#/list/1/0'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '飞羽世界——<br/>馆藏鸟类标本展',
|
|
|
+ class: 'fy',
|
|
|
+ banner: banner4,
|
|
|
+ href: path + '/birds/index.html#/list/1/0'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '十里红妆闺阁情——<br/>馆藏婚俗文物展',
|
|
|
+ class: 'hz',
|
|
|
+ banner: banner3,
|
|
|
+ href: path + '/wedding/index.html#/list/1/0'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '蹁跹蝶影——<br/>馆藏蝴蝶标本展',
|
|
|
+ class: 'pxdy',
|
|
|
+ banner: banner8,
|
|
|
+ href: 'http://www.4dmodel.com/SuperTwoCustom/SuperTwo1420/index.html'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '凝露成珠—中国大运河博物馆<br/>2022年藏品征集精品展',
|
|
|
+ class: 'nlcz',
|
|
|
+ banner: banner5,
|
|
|
+ href: 'http://www.4dmodel.com/SuperTwoCustom/SuperTwo1421/index.html'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '过尽千帆——<br/>近代影像里的大运河',
|
|
|
+ class: 'gjqf',
|
|
|
+ banner: banner6,
|
|
|
+ href: 'http://www.4dmodel.com/SuperTwoCustom/SuperTwo1422/index.html'
|
|
|
+ }
|
|
|
+])
|
|
|
+
|
|
|
+const handleRoute = (href: string) => {
|
|
|
+ location.href = href + `?backTo=${encodeURIComponent(path + '/cover-home/index.html/#/list')}`
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+@import './index.scss';
|
|
|
+</style>
|