index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <template>
  2. <view class="box">
  3. <view class="" style="height: 100%; position: relative">
  4. <u-swiper @change="change" radius="0" :circular="true" :list="swiperList" showTitle keyName="image" interval="5000" height="100%"></u-swiper>
  5. </view>
  6. <view class="img_logo">
  7. <image style="margin-left: 537%; margin-top: 6%; width: 28%; height: 70%" src="/static/img/yjh_logo.png"></image>
  8. </view>
  9. <view style="position: absolute; top: 7%; left: 66%; font-size: 12px; color: #fff; letter-spacing: 0.2em">
  10. <view style="width: 200rpx; height: 15rpx"><image class="img" src="/static/img/yjh.png" /></view>
  11. </view>
  12. <view class="boc_tit">
  13. <view class="boc_tit1"><image class="img" src="/static/img/img_title@2x.png" /></view>
  14. <view class="liaoJie" @click="lianjieBtn">了解详情 ></view>
  15. </view>
  16. <!-- 闽南魂介绍 -->
  17. <view class="mn_js">
  18. <view class="mn_tit">闽南魂</view>
  19. <view class="animate-box">
  20. <view style="" class="jieshao">
  21. 闽南文化,是闽南人民的根与魂,它深深扎根在这片土地上,滋养着世世代代的闽南人。它如同一颗璀璨的明珠,闪耀着独特的光芒,承载着丰富的历史与文化。我们希望,通过“闽南魂”这个平台,让更多的人了解、体验和传承闽南文化的精髓。我们希望,世界各地的朋友都能在这里感受到闽南文化的深厚底蕴和独特魅力。因为,闽南文化不仅是闽南人民的骄傲,更是全人类共同的宝贵财富。让我们共同携手,传承这份瑰宝,让闽南文化的光芒照耀更广阔的天地。
  22. </view>
  23. </view>
  24. <view class="guanyu" @click="myBtn">关于我们</view>
  25. <view class="guanyu" style="top: 87%; left: 10%">闽南文化你我他</view>
  26. </view>
  27. <!-- 菜单 -->
  28. <view class="box_menu">
  29. <!-- @click="bgBtn" -->
  30. <view class="menu_poimg">
  31. <image class="img" src="https://huli-app.wenlvti.net/app_static/minnanhun/image/img_@2x.png"></image>
  32. </view>
  33. <view @click="menuBtn(index)" class="menu_item" v-for="(item, index) in list" :key="item.name">
  34. <view class="menu_img">
  35. <image class="img" :src="item.img"></image>
  36. </view>
  37. <view class="menu_tit">
  38. {{ item.title }}
  39. </view>
  40. <view class="" style="color: #de807b; font-size: 10px; position: absolute; top: 58%; left: 5%">
  41. {{ item.name }}
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. let that;
  49. export default {
  50. data() {
  51. return {
  52. swiperId: 0,
  53. music: true,
  54. // 创建音频上下文
  55. scrollHeight: '',
  56. innerAudioContext: uni.createInnerAudioContext(),
  57. cityList: [],
  58. swiperList: [
  59. {
  60. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv44.jpg',
  61. title: '陈元光(657—711年),字廷炬,号龙湖。唐朝光州固始县人(今河南省固始县人)。漳州首任刺史。他是闽台地区重要的民间信仰之一,被奉为开漳圣王。号称“蛮荒”之地的闽南,经济文化得到了迅速发展。 陈元光成为促进中原文化与闽越文化融合的奠基者。'
  62. },
  63. {
  64. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv5.jpg',
  65. title: '南普陀寺位于福建省厦门市五老峰前,背依秀奇群峰,面临碧澄海港,风景绝佳。它是一座千年古刹,始建于唐代,为闽南佛教胜地之一。'
  66. },
  67. {
  68. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv6.jpg',
  69. title: '威镇阁高3层,采用阴阳八卦为顶面,阁上都用长宽相同的长方形巨石铺成八角形状,每块巨石按方位分别刻着“乾、坤、震、艮、坎、兑、巽、离”的方正大字,所以俗称八卦楼。该楼与芝山顶峰的威镇亭遥相对峙,互为犄角,故名为威镇阁'
  70. },
  71. {
  72. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/wc.jpg',
  73. title: '送王船是畲族传统的民间习俗,传统木造王船,传承古意,结合了造船技艺与彩绘艺术,用色丰富,其技巧、彩绘题材与构图都有明显的特色,可说是精致的畲族民间艺术。'
  74. },
  75. {
  76. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv8.jpg',
  77. title: '漳州文庙位于市区修文西路,是我国四大孔庙之一,也是漳州城内最大的古建筑群,国家级重点文物保护单位。文庙始建于宋庆历四年(公元1044年),元、明、清均有重修,漳州府学亦设于此。漳州文庙具有很高的古文化和历史文物价值,是漳州文化发展史重要的实证物。'
  78. }
  79. ],
  80. list: [
  81. {
  82. title: '闽南精神',
  83. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_7.png',
  84. name: '闽南、闽台、海丝'
  85. },
  86. {
  87. title: '厝边舞台',
  88. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_6.png',
  89. name: '闽南文化你我他'
  90. },
  91. {
  92. title: '建筑文化',
  93. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_5.png',
  94. name: '番仔楼、洋楼式'
  95. },
  96. {
  97. title: '文保学院',
  98. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/wbxy.png',
  99. name: '文物保护知识'
  100. },
  101. {
  102. title: '非遗传承',
  103. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_4.png',
  104. name: '非物质文化遗产'
  105. },
  106. {
  107. title: '民俗宗教',
  108. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_3.png',
  109. name: '宗教信仰,礼仪习俗'
  110. },
  111. {
  112. title: '闽南语',
  113. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_1.png',
  114. name: '闽南方言俗语'
  115. },
  116. {
  117. title: '村史文化',
  118. img: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/card_2.png',
  119. name: '村史村情、村史资讯'
  120. }
  121. ]
  122. };
  123. },
  124. onLoad(o) {
  125. // this.music = o.music;
  126. that = this;
  127. this.playMusic();
  128. },
  129. methods: {
  130. menuBtn(i) {
  131. uni.redirectTo({
  132. url: '/pages/index2/index2?id=' + i
  133. });
  134. this.innerAudioContext.pause();
  135. },
  136. change(i) {
  137. this.swiperId = i.current;
  138. },
  139. // 了解详情
  140. lianjieBtn() {
  141. uni.redirectTo({
  142. url: '/pages/index/index_xq?id=' + this.swiperId
  143. });
  144. this.innerAudioContext.pause();
  145. },
  146. myBtn() {
  147. uni.redirectTo({
  148. url: '/pages/index/guanYu'
  149. });
  150. this.innerAudioContext.pause();
  151. },
  152. playMusic() {
  153. if (this.music) {
  154. // 设置音频源
  155. this.innerAudioContext.src = 'https://huli-app.wenlvti.net/app_static/minnanhun/image/audio2.mp3';
  156. // 设置为自动播放
  157. this.innerAudioContext.autoplay = true;
  158. // 其他属性设置(可选)
  159. this.innerAudioContext.loop = true; // 是否循环播放,默认为false
  160. } else {
  161. // this.innerAudioContext.pause();
  162. }
  163. }
  164. }
  165. };
  166. </script>
  167. <style>
  168. /* @keyframes switch-bg {
  169. 30% {
  170. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/bg1.jpg');
  171. }
  172. 70% {
  173. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/bg3.jpg');
  174. }
  175. 90% {
  176. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/bg4.jpg');
  177. }
  178. 100% {
  179. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/ind.png');
  180. }
  181. } */
  182. .box {
  183. width: 100%;
  184. height: 100vh;
  185. /* animation-name: switch-bg;
  186. animation-duration: 20s;
  187. animation-iteration-count: infinite;
  188. animation-timing-function: linear;
  189. animation-delay: 5s; */
  190. /* background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/ind.png'); */
  191. box-sizing: border-box;
  192. /* background-size: 100% 100%; */
  193. /* background-attachment: fixed; */
  194. margin: 0;
  195. }
  196. /deep/.u-swiper__wrapper__item__wrapper__title {
  197. width: 30% !important;
  198. height: 20% !important;
  199. position: absolute;
  200. bottom: 42% !important;
  201. left: 0 !important;
  202. font-size: 10px !important;
  203. font-family: MiSans, MiSans;
  204. color: #dcd9d7;
  205. letter-spacing: 0.1em;
  206. background-color: transparent !important;
  207. }
  208. .animate-box {
  209. width: 100%;
  210. height: 65%;
  211. overflow: hidden;
  212. }
  213. .jieshao {
  214. animation: 40s wordsLoop linear infinite normal;
  215. }
  216. @keyframes wordsLoop {
  217. 0% {
  218. transform: translateY(0);
  219. -webkit-transform: translateY(0);
  220. }
  221. 100% {
  222. transform: translateY(-100%);
  223. -webkit-transform: translateY(-100%);
  224. }
  225. }
  226. @-webkit-keyframes wordsLoop {
  227. 0% {
  228. transform: translateY(0);
  229. -webkit-transform: translateY(0);
  230. }
  231. 100% {
  232. transform: translateY(-100%);
  233. -webkit-transform: translateY(-100%);
  234. }
  235. }
  236. .img {
  237. width: 100%;
  238. height: 100%;
  239. }
  240. .img_logo {
  241. /* display: flex; */
  242. width: 11%;
  243. height: 7%;
  244. background: url('/static/img/img_logo.png') no-repeat;
  245. background-size: 100% 100%;
  246. margin-left: 3%;
  247. position: relative;
  248. z-index: 999;
  249. top: -95%;
  250. /* left: 90%; */
  251. }
  252. .mn_tit {
  253. width: 80%;
  254. height: 10%;
  255. font-size: 14px;
  256. }
  257. .boc_tit {
  258. position: relative;
  259. z-index: 999;
  260. width: 25%;
  261. height: 8%;
  262. margin: -46% 0 0 3%;
  263. }
  264. .boc_tit1 {
  265. position: absolute;
  266. left: -11%;
  267. width: 80%;
  268. height: 100%;
  269. }
  270. .boc_tit2 {
  271. font-size: 12px;
  272. font-family: MiSans, MiSans;
  273. color: #dcd9d7;
  274. margin-top: 3%;
  275. letter-spacing: 0.1em;
  276. }
  277. .box_menu {
  278. position: relative;
  279. z-index: 999;
  280. display: flex;
  281. flex-wrap: wrap;
  282. width: 90%;
  283. height: 34%;
  284. top: 32%;
  285. left: 9%;
  286. }
  287. .menu_item {
  288. position: relative;
  289. width: 22%;
  290. height: 45%;
  291. margin: 0 0 0 1%;
  292. cursor: pointer;
  293. border-radius: 10rpx;
  294. }
  295. .menu_img {
  296. width: 100%;
  297. height: 100%;
  298. }
  299. .menu_tit {
  300. position: absolute;
  301. top: 5%;
  302. left: 5%;
  303. font-size: 66rpx;
  304. font-family: nzgrRuyinZouZhangKai, nzgrRuyinZouZhangKai;
  305. font-weight: 400;
  306. line-height: 76px;
  307. background: linear-gradient(180deg, #d1392d 0%, rgba(209, 57, 45, 0.89) 100%);
  308. -webkit-background-clip: text;
  309. -webkit-text-fill-color: transparent;
  310. }
  311. .menu_poimg {
  312. position: absolute;
  313. top: -8%;
  314. left: 8%;
  315. width: 13%;
  316. height: 53%;
  317. z-index: 1;
  318. }
  319. .liaoJie {
  320. position: absolute;
  321. bottom: -245%;
  322. left: 1%;
  323. width: 25%;
  324. height: 45%;
  325. border-radius: 40rpx;
  326. text-align: center;
  327. line-height: 20px;
  328. color: #ffffff;
  329. background: rgba(255, 255, 255, 0.2);
  330. font-size: 12px;
  331. }
  332. .mn_js {
  333. width: 25%;
  334. height: 44%;
  335. border-radius: 2%;
  336. font-size: 10px;
  337. line-height: 18px;
  338. border: 1px #ffffff solid;
  339. color: #dcd9d7;
  340. position: absolute;
  341. top: 15%;
  342. left: 67%;
  343. padding: 1%;
  344. background-color: rgba(0, 0, 0, 0.2);
  345. box-sizing: border-box;
  346. overflow: hidden;
  347. }
  348. .guanyu {
  349. width: 80%;
  350. height: 10%;
  351. position: absolute;
  352. top: 75%;
  353. left: 10%;
  354. line-height: 16px;
  355. padding-top: 1%;
  356. box-sizing: border-box;
  357. text-align: center;
  358. letter-spacing: 0.2em;
  359. border-radius: 15px;
  360. background-color: rgba(0, 0, 0, 0.5);
  361. }
  362. </style>