index_xq.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <template>
  2. <view class="box">
  3. <view class="top_bg">
  4. <topBox></topBox>
  5. <view @click="backBtn" class="back">⬅返回上一级</view>
  6. </view>
  7. <view class="box_left">
  8. <image :src="list[id].image" class="img"></image>
  9. </view>
  10. <view class="box_right">
  11. <view class="banner">
  12. <view class="right_tit">{{ list[id].name }}</view>
  13. <view class="right_txt">
  14. <!-- <u-parse :content="list.intro ? list.intro : '暂无介绍'"></u-parse> -->
  15. <view class="jieshao">
  16. {{ list[id].title }}
  17. </view>
  18. </view>
  19. <view class="btm_box">
  20. <!-- <scroll-view scroll-x="true" style="display: flex; white-space: nowrap">
  21. <view class="container" v-for="(item, index) in projectList" :key="item.index">
  22. <view class="mn_box">
  23. <image style="width: 100%; height: 100%" :src="item.img"></image>
  24. </view>
  25. <text class="title">{{ item.name }}</text>
  26. </view>
  27. </scroll-view> -->
  28. <view class="mn_box">
  29. <image @click="clickImg" style="width: 100%; height: 100%" :src="list[id].image"></image>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. let that;
  38. export default {
  39. data() {
  40. return {
  41. id: '',
  42. music: false,
  43. list: [
  44. {
  45. name: '开漳圣王',
  46. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv4.jpg',
  47. title: '陈元光(657—711年),字廷炬,号龙湖。唐朝光州固始县人(今河南省固始县人)。漳州首任刺史。他是闽台地区重要的民间信仰之一,被奉为开漳圣王。号称“蛮荒”之地的闽南,经济文化得到了迅速发展。 陈元光成为促进中原文化与闽越文化融合的奠基者。'
  48. },
  49. {
  50. name: '南普陀寺',
  51. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv5.jpg',
  52. title: '南普陀寺位于福建省厦门市五老峰前,背依秀奇群峰,面临碧澄海港,风景绝佳。它是一座千年古刹,始建于唐代,为闽南佛教胜地之一。'
  53. },
  54. {
  55. name: '威镇阁',
  56. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv6.jpg',
  57. title: '威镇阁高3层,采用阴阳八卦为顶面,阁上都用长宽相同的长方形巨石铺成八角形状,每块巨石按方位分别刻着“乾、坤、震、艮、坎、兑、巽、离”的方正大字,所以俗称八卦楼。该楼与芝山顶峰的威镇亭遥相对峙,互为犄角,故名为威镇阁'
  58. },
  59. {
  60. name: '送王船',
  61. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv_wc.jpg',
  62. title: '送王船是畲族传统的民间习俗,传统木造王船,传承古意,结合了造船技艺与彩绘艺术,用色丰富,其技巧、彩绘题材与构图都有明显的特色,可说是精致的畲族民间艺术。艺存在着浓厚的畲族宗教信仰色彩,代表少数民族民间传统习俗,是在传统宗教信仰的基础下,所发展出来的民间手工技艺,而王船本身存在着造王船技艺的艺术表现,进一步突显出传承造王船技艺的重要性。'
  63. },
  64. {
  65. name: '漳州文庙',
  66. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tv8.jpg',
  67. title: '漳州文庙位于市区修文西路,是我国四大孔庙之一,也是漳州城内最大的古建筑群,国家级重点文物保护单位。文庙始建于宋庆历四年(公元1044年),元、明、清均有重修,漳州府学亦设于此。漳州文庙具有很高的古文化和历史文物价值,是漳州文化发展史重要的实证物。'
  68. }
  69. ]
  70. };
  71. },
  72. onLoad(o) {
  73. that = this;
  74. this.id = o.id;
  75. },
  76. filters: {
  77. removeHTMLTag(str) {
  78. str = str.replace(/<\/?[^>]*>/g, ''); // 去除HTML tag
  79. str = str.replace(/[ | ]*\n/g, '\n'); // 去除行尾空白
  80. str = str.replace(/\n[\s| | ]*\r/g, '\n'); //去除多余空行
  81. str = str.replace(/ /gi, ''); // 去掉
  82. const arrEntities = {
  83. lt: '<',
  84. gt: '>',
  85. nbsp: ' ',
  86. amp: '&',
  87. quot: '"'
  88. }; // 转义符换成普通字符
  89. str = str.replace(/&(lt|gt|nbsp|amp|quot);/gi, function (all, t) {
  90. return arrEntities[t];
  91. });
  92. return str;
  93. }
  94. },
  95. methods: {
  96. clickImg() {
  97. let img = [];
  98. img.push(this.list[this.id].image);
  99. uni.previewImage({
  100. urls: img, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  101. current: '' // 当前显示图片的http链接,默认是第一个
  102. });
  103. },
  104. backBtn() {
  105. uni.navigateTo({
  106. url: '/pages/index/index?music=' + this.music
  107. });
  108. }
  109. }
  110. };
  111. </script>
  112. <style>
  113. .box {
  114. width: 100%;
  115. display: flex;
  116. height: 100vh;
  117. box-sizing: border-box;
  118. }
  119. .back {
  120. width: 12%;
  121. height: 25%;
  122. margin-left: 5%;
  123. margin-top: -2%;
  124. font-size: 12px;
  125. }
  126. .img {
  127. width: 100%;
  128. height: 100%;
  129. }
  130. .box_left {
  131. width: 40%;
  132. height: 100%;
  133. /* background: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/fy_img.png') no-repeat center;
  134. background-size: 100% 100%; */
  135. }
  136. .box_right {
  137. flex: 1;
  138. height: 100%;
  139. margin-left: -10%;
  140. z-index: 1;
  141. background: linear-gradient(90deg, rgba(240, 235, 222, 0.1) 0%, #f0ebde 15%, #f0ebde 100%);
  142. }
  143. .top_bg {
  144. width: 100%;
  145. position: absolute;
  146. color: #ffffff;
  147. z-index: 2;
  148. background: linear-gradient(10deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2) 100%);
  149. }
  150. .right_tit {
  151. /* line-height: 70px; */
  152. letter-spacing: 0.3em;
  153. font-size: 14px;
  154. color: #aa734d;
  155. }
  156. .banner {
  157. width: 70%;
  158. height: 45%;
  159. margin-left: 25%;
  160. margin-top: 13%;
  161. }
  162. /* 字体滚动 */
  163. /* @-webkit-keyframes rowup {
  164. 0% {
  165. -webkit-transform: translate3d(0, 0, 0);
  166. transform: translate3d(0, 0, 0);
  167. }
  168. 100% {
  169. -webkit-transform: translateY(-100%);
  170. transform: translateY(-100%);
  171. }
  172. }
  173. @keyframes rowup {
  174. 0% {
  175. -webkit-transform: translate3d(0, 0, 0);
  176. transform: translate3d(0, 0, 0);
  177. }
  178. 100% {
  179. -webkit-transform: translateY(-100%);
  180. transform: translateY(-100%);
  181. }
  182. } */
  183. .right_txt {
  184. width: 95%;
  185. height: 100%;
  186. font-size: 12px;
  187. letter-spacing: 0.2em;
  188. margin-bottom: 8%;
  189. font-weight: 400;
  190. color: rgba(170, 115, 77, 0.5);
  191. overflow: hidden;
  192. }
  193. .jieshao {
  194. /* -webkit-animation: 25s rowup linear infinite normal;
  195. animation: 25s rowup linear infinite normal;
  196. animation-delay: 3s;
  197. overflow: hidden; */
  198. }
  199. /deep/.MsoNormal span {
  200. font-size: 12px !important;
  201. letter-spacing: 0.2em !important;
  202. font-weight: 400 !important;
  203. color: #aa734d !important;
  204. /* line-height: 70rpx !important; */
  205. }
  206. /deep/.MsoNormal {
  207. font-size: 12px !important;
  208. letter-spacing: 0.2em !important;
  209. font-weight: 400 !important;
  210. color: #aa734d !important;
  211. /* line-height: 70rpx !important; */
  212. }
  213. /deep/._undefined span {
  214. font-size: 12px !important;
  215. letter-spacing: 0.2em !important;
  216. font-weight: 400 !important;
  217. color: #aa734d !important;
  218. /* line-height: 70rpx !important; */
  219. }
  220. .btm_box {
  221. width: 100%;
  222. height: 50%;
  223. }
  224. .container {
  225. position: relative;
  226. display: inline-block;
  227. margin-right: 2%;
  228. text-align: center;
  229. }
  230. .mn_box {
  231. width: 18%;
  232. height: 90%;
  233. margin-left: 2%;
  234. box-sizing: border-box;
  235. border: 2px solid #fed57d;
  236. }
  237. </style>