FusionView.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <!-- 传播交流页 -->
  3. <div class=" main-background main-background-type0">
  4. <!-- 轮播 -->
  5. <Carousel v-bind="carouselConfig" class="main-header-box small carousel-light">
  6. <Slide class="main-header-box small">
  7. <img src="@/assets/images/fusion/Banner.jpg" />
  8. </Slide>
  9. <template #addons>
  10. <Navigation />
  11. <Pagination />
  12. </template>
  13. </Carousel>
  14. <!-- 闽南节庆日历 -->
  15. <section class="main-section pb-0">
  16. <div class="content">
  17. <div class="title">
  18. <h2>闽南节庆日历</h2>
  19. </div>
  20. <div class="calandar row">
  21. <div class="col col-12 col-lg-6 col-xl-6 p-0">
  22. <h3 class="month-title">1月</h3>
  23. <ImageTitleDescBlock
  24. v-for="(item, index) in daysData"
  25. :key="index"
  26. :title="item.title"
  27. :image="item.image"
  28. :desc="item.desc"
  29. />
  30. </div>
  31. <div class="month-grid col-12 col-lg-6 col-xl-6 p-0">
  32. <div
  33. v-for="(month, k) in monthData"
  34. :key="k"
  35. :class="[ monthSelected === month.month ? 'active' : '' ]"
  36. >
  37. <h3>{{ month.month }}月</h3>
  38. <div class="tags">
  39. <span
  40. v-for="(holiday, index) in month.holidays"
  41. :key="index"
  42. >
  43. {{ holiday }}
  44. </span>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </section>
  51. <!-- 文旅融合 -->
  52. <section class="main-section">
  53. <div class="content">
  54. <div class="title">
  55. <h2>文旅融合</h2>
  56. </div>
  57. <ThreeImageList :list="list" />
  58. </div>
  59. </section>
  60. </div>
  61. </template>
  62. <script setup lang="ts">
  63. import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel'
  64. import { onMounted, ref } from 'vue';
  65. import Image1 from '@/assets/images/fusion/Image1.jpg'
  66. import Image2 from '@/assets/images/fusion/Image2.jpg'
  67. import Image3 from '@/assets/images/fusion/Image3.jpg'
  68. import Image4 from '@/assets/images/fusion/Image4.jpg'
  69. import Image5 from '@/assets/images/fusion/Image5.jpg'
  70. import LeftRightBox from '@/components/parts/LeftRightBox.vue';
  71. import ImageTitleDescBlock from '@/components/parts/ImageTitleDescBlock.vue';
  72. import ThreeImageList from '@/components/parts/ThreeImageList.vue';
  73. const carouselConfig = {
  74. itemsToShow: 1,
  75. wrapAround: true,
  76. autoPlay: 5000,
  77. }
  78. const list = [
  79. {
  80. title: '闽南文化景区',
  81. desc: '让文化因传承而永存',
  82. image: Image1,
  83. },
  84. {
  85. title: '文化旅游路线',
  86. desc: '让文化因传承而永存',
  87. image: Image2,
  88. },
  89. {
  90. title: '文化产品',
  91. desc: '让文化因传承而永存',
  92. image: Image3,
  93. },
  94. {
  95. title: '文旅融合示范点',
  96. desc: '让文化因传承而永存',
  97. image: Image4,
  98. },
  99. {
  100. title: '闽南时尚',
  101. desc: '让文化因传承而永存',
  102. image: Image5,
  103. },
  104. {
  105. title: '',
  106. desc: '',
  107. image: '',
  108. }
  109. ]
  110. const daysData = [
  111. {
  112. title: '除夕',
  113. desc: '闽南人视这一天为最高神天公的生日,非常重视。临近节日,家家户户都要打扫卫生、制作龟粿、发粿等,作为供品。红龟粿呈龟红色,打龟甲印,象征长寿。',
  114. image: Image1,
  115. },
  116. {
  117. title: '除夕',
  118. desc: '闽南人视这一天为最高神天公的生日,非常重视。临近节日,家家户户都要打扫卫生、制作龟粿、发粿等,作为供品。红龟粿呈龟红色,打龟甲印,象征长寿。',
  119. image: Image1,
  120. },
  121. {
  122. title: '除夕',
  123. desc: '闽南人视这一天为最高神天公的生日,非常重视。临近节日,家家户户都要打扫卫生、制作龟粿、发粿等,作为供品。红龟粿呈龟红色,打龟甲印,象征长寿。',
  124. image: Image1,
  125. },
  126. ]
  127. const monthSelected = ref(1)
  128. const monthData = [
  129. {
  130. month: 1,
  131. holidays: [ '除夕', '元旦', '春节' ]
  132. },
  133. {
  134. month: 2,
  135. holidays: [ '除夕', '元旦', '春节' ]
  136. },
  137. {
  138. month: 3,
  139. holidays: [ '除夕', '元旦', '春节' ]
  140. },
  141. {
  142. month: 4,
  143. holidays: [ '除夕', '元旦', '春节' ]
  144. },
  145. {
  146. month: 5,
  147. holidays: [ '除夕', '元旦', '春节' ]
  148. },
  149. {
  150. month: 6,
  151. holidays: [ '除夕', '元旦', '春节' ]
  152. },
  153. {
  154. month: 7,
  155. holidays: [ '除夕', '元旦', '春节' ]
  156. },
  157. {
  158. month: 8,
  159. holidays: [ '除夕', '元旦', '春节' ]
  160. },
  161. {
  162. month: 9,
  163. holidays: [ '除夕', '元旦', '春节' ]
  164. },
  165. {
  166. month: 10,
  167. holidays: [ '除夕', '元旦', '春节' ]
  168. },
  169. {
  170. month: 11,
  171. holidays: [ '除夕', '元旦', '春节' ]
  172. },
  173. {
  174. month: 12,
  175. holidays: [ '除夕', '元旦', '春节' ]
  176. },
  177. ]
  178. </script>
  179. <style lang="scss">
  180. @use '@/assets/scss/colors.scss' as *;
  181. .calandar {
  182. background-color: $box-color;
  183. .month-title {
  184. margin: 24px 24px 0 24px;
  185. }
  186. .month-grid {
  187. display: grid;
  188. grid-template-columns: repeat(4, 25%);
  189. > div {
  190. display: flex;
  191. flex-direction: column;
  192. justify-content: space-between;
  193. background-color: $text-color-light;
  194. padding: 12px ;
  195. border: 1px solid $border-split-color;
  196. h3 {
  197. font-size: 18px;
  198. }
  199. .tags {
  200. display: flex;
  201. flex-direction: row;
  202. flex-wrap: wrap;
  203. > span {
  204. font-size: 13px;
  205. margin-right: 8px;
  206. margin-top: 8px;
  207. padding: 4px 8px;
  208. border-radius: 12px;
  209. background-color: rgba(#FF961B, 0.1);
  210. }
  211. }
  212. &.active {
  213. background-color: $primary-color;
  214. color: $text-color-light;
  215. }
  216. }
  217. }
  218. }
  219. </style>