jiyi.vue 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <template>
  2. <!-- 村史页面 -->
  3. <view class="body">
  4. <view class="cs_nabBar" style="background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_wj_bj.png'); background-size: cover">
  5. <u-navbar title="记忆" :placeholder="true" bgColor="rgba(255,255,255,0)" :leftIconSize="0" titleStyle="font-weight:bold;color:#7a5831"></u-navbar>
  6. </view>
  7. <view class="block_1">
  8. <view class="section_1">
  9. <view class="image-wrapper_2" style="background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/jp.png'); background-size: 100% 100%">
  10. <!-- 轮播图 -->
  11. <view class="" style="width: 90%; margin: auto; margin-top: 50rpx">
  12. <u-swiper
  13. :list="bannerlist"
  14. imgMode="aspectFill"
  15. :indicator="true"
  16. :autoplay="true"
  17. :circular="true"
  18. indicatorStyle="bottom: 10px"
  19. @click="bannerClick"
  20. indicatorMode="dot"
  21. indicatorActiveColor="#fff"
  22. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  23. ></u-swiper>
  24. </view>
  25. </view>
  26. <view class="box_2">
  27. <view class="cs_text-wrapper_1">
  28. <!-- <text lines="1" class="cs_text_2">文物博览</text> -->
  29. <text lines="1" class="cs_text_2">经典推荐</text>
  30. <text lines="1" class="cs_text_3">查看更多》</text>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="cs_group_12">
  35. <!-- 瀑布流 -->
  36. <custom-waterfalls-flow :value="csList" style="width: 90%; margin: auto">
  37. <view class="item" style="position: relative" v-for="(item, index) in csList" :key="index" slot="slot{{index}}">
  38. <view class="title_pubu">
  39. {{ item.title }}
  40. </view>
  41. <!-- <view class="desc">{{ item.desc }}</view> -->
  42. </view>
  43. </custom-waterfalls-flow>
  44. </view>
  45. <!-- <view class="section_4">
  46. <view class="box_7" v-for="item in 4" :key="item">
  47. <view class="block_2">
  48. <view class="text-group_3">
  49. <text lines="1" class="cs_text_12">五代闽国铜鎏金王延翰狮子炉</text>
  50. <text lines="1" class="cs_text_13">为五代闽国有铭文铸器之孤件</text>
  51. </view>
  52. <view class="text-wrapper_6">
  53. <text lines="1" class="text_14">前往查看</text>
  54. </view>
  55. </view>
  56. <view class="cs_block_3">
  57. <image style="width: 100%; height: 100%" src="../../static/image/圆角矩形 840 拷贝.png"></image>
  58. </view>
  59. </view>
  60. </view> -->
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. let that;
  66. export default {
  67. components: {},
  68. data() {
  69. return {
  70. bannerlist: [
  71. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt4.jpg',
  72. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt5.png',
  73. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt2.png',
  74. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt1.png',
  75. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt3.jpg'
  76. ],
  77. csList: [
  78. {
  79. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy2.png',
  80. title: '厦门老火车站',
  81. desc: '描述描述描述描述描述描述描述描述1'
  82. },
  83. {
  84. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy3.png',
  85. title: '海堤工程师总工程师殷孝友',
  86. desc: '描述描述描述描述描述描述描述描述2'
  87. },
  88. {
  89. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy1.png',
  90. title: '花木兰',
  91. desc: '描述描述描述描述描述描述描述描述2'
  92. },
  93. {
  94. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy4.png',
  95. title: '国务院为殷孝友颁发的荣誉证书',
  96. desc: '描述描述描述描述描述描述描述描述2'
  97. },
  98. {
  99. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy5.png',
  100. title: '人民英雄',
  101. desc: '描述描述描述描述描述描述描述描述2'
  102. },
  103. {
  104. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy6.png',
  105. title: '高崎山头日夜保卫高集海堤堤线安全',
  106. desc: '描述描述描述描述描述描述描述描述2'
  107. },
  108. {
  109. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy7.png',
  110. title: '移山填海',
  111. desc: '描述描述描述描述描述描述描述描述2'
  112. },
  113. {
  114. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy8.png',
  115. title: '古宅',
  116. desc: '描述描述描述描述描述描述描述描述2'
  117. },
  118. {
  119. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_jy9.png',
  120. title: '厦门老地图',
  121. desc: '描述描述描述描述描述描述描述描述2'
  122. }
  123. ]
  124. };
  125. },
  126. onLoad(option) {
  127. that = this;
  128. this.getBannerList();
  129. },
  130. methods: {
  131. getBannerList() {
  132. this.$api.getBannerList({ block: 'home' }, function (res) {
  133. // console.log(res);
  134. if (res.code > 0) {
  135. that.bannerlist = [];
  136. for (var i = 0; i < res.data.length; i++) {
  137. if (res.data[i].type == 'banner') {
  138. that.bannerlist.push({
  139. title: res.data[i].title,
  140. url: that.$config.baseUrl + res.data[i].image,
  141. page: res.data[i].url
  142. });
  143. }
  144. }
  145. }
  146. });
  147. },
  148. bannerClick(index) {
  149. console.log(index);
  150. this.$common.navigateTo(this.bannerlist[index].page);
  151. }
  152. }
  153. };
  154. </script>
  155. <style>
  156. .body {
  157. /* padding-top: 20px; */
  158. /* background-image: url('https://feicheng.16fw.cn:1443/uploads/20230512/88f8347924d08296bbde9d55afd74c15.jpg');
  159. background-size: 100% 100%; */
  160. background-attachment: fixed;
  161. }
  162. .nabBar {
  163. height: 500rpx;
  164. }
  165. .u-status-bar {
  166. opacity: 0 !important;
  167. }
  168. .u-navbar__content.data-v-95dec1ae {
  169. background-color: transparent !important;
  170. }
  171. /deep/.u-swiper-indicator__wrapper__dot--active {
  172. width: 5px !important;
  173. }
  174. .title_pubu {
  175. width: 100%;
  176. height: 50rpx;
  177. background-color: rgba(202, 0, 0, 0.3);
  178. font-size: 30rpx;
  179. color: #ffffff;
  180. position: absolute;
  181. bottom: 0;
  182. left: 0;
  183. }
  184. .cs_group_12 {
  185. width: 100%;
  186. flex-direction: row;
  187. display: flex;
  188. justify-content: space-between;
  189. margin-top: 50rpx;
  190. }
  191. .block_1 {
  192. width: 750rpx;
  193. background-size: 100% 100%;
  194. display: flex;
  195. flex-direction: column;
  196. padding-bottom: 20rpx;
  197. background-color: #f8f8f8;
  198. }
  199. .image-wrapper_2 {
  200. width: 750rpx;
  201. height: 350rpx;
  202. }
  203. .section_1 {
  204. position: relative;
  205. width: 750rpx;
  206. display: flex;
  207. flex-direction: column;
  208. background-color: #f8f8f8;
  209. border-radius: 30rpx 30rpx 0 0;
  210. }
  211. .box_1 {
  212. width: 400rpx;
  213. height: 56rpx;
  214. flex-direction: row;
  215. display: flex;
  216. justify-content: space-between;
  217. margin: 17rpx 0 0 321rpx;
  218. }
  219. .text_1 {
  220. width: 69rpx;
  221. height: 34rpx;
  222. overflow-wrap: break-word;
  223. color: rgba(18, 18, 18, 1);
  224. font-size: 36rpx;
  225. font-family: SourceHanSansCN-Regular;
  226. font-weight: normal;
  227. text-align: left;
  228. white-space: nowrap;
  229. line-height: 36rpx;
  230. margin-top: 11rpx;
  231. }
  232. .box_2 {
  233. width: 749rpx;
  234. display: flex;
  235. flex-direction: column;
  236. margin: 50rpx 0 0 0;
  237. background-color: #cceef5;
  238. border-radius: 30rpx 30rpx 0 0;
  239. }
  240. .cs_text-wrapper_1 {
  241. width: 668rpx;
  242. height: 34rpx;
  243. flex-direction: row;
  244. display: flex;
  245. justify-content: space-between;
  246. margin: 46rpx 0 15rpx 50rpx;
  247. }
  248. .cs_text_2 {
  249. width: 140rpx;
  250. height: 34rpx;
  251. overflow-wrap: break-word;
  252. color: rgba(49, 37, 32, 1);
  253. font-size: 36rpx;
  254. font-family: Adobe Heiti Std R;
  255. font-weight: normal;
  256. text-align: left;
  257. white-space: nowrap;
  258. line-height: 36rpx;
  259. }
  260. .cs_text_3 {
  261. width: 108rpx;
  262. height: 23rpx;
  263. overflow-wrap: break-word;
  264. color: rgba(102, 102, 102, 1);
  265. font-size: 24rpx;
  266. font-family: Adobe Heiti Std R;
  267. font-weight: normal;
  268. text-align: left;
  269. white-space: nowrap;
  270. line-height: 24rpx;
  271. margin-top: 7rpx;
  272. }
  273. .text-wrapper_1 {
  274. width: 668rpx;
  275. height: 34rpx;
  276. flex-direction: row;
  277. display: flex;
  278. justify-content: space-between;
  279. margin: 46rpx 0 15rpx 50rpx;
  280. }
  281. .text_2 {
  282. width: 140rpx;
  283. height: 34rpx;
  284. overflow-wrap: break-word;
  285. color: rgba(49, 37, 32, 1);
  286. font-size: 36rpx;
  287. font-family: Adobe Heiti Std R;
  288. font-weight: normal;
  289. text-align: left;
  290. white-space: nowrap;
  291. line-height: 36rpx;
  292. }
  293. .text_3 {
  294. width: 108rpx;
  295. height: 23rpx;
  296. overflow-wrap: break-word;
  297. color: rgba(102, 102, 102, 1);
  298. font-size: 24rpx;
  299. font-family: Adobe Heiti Std R;
  300. font-weight: normal;
  301. text-align: left;
  302. white-space: nowrap;
  303. line-height: 24rpx;
  304. margin-top: 7rpx;
  305. }
  306. .section_4 {
  307. width: 686rpx;
  308. display: flex;
  309. flex-direction: column;
  310. justify-content: space-between;
  311. margin: 0 0 0 32rpx;
  312. }
  313. .box_7 {
  314. background-color: rgba(255, 255, 255, 1);
  315. border-radius: 10rpx;
  316. width: 686rpx;
  317. height: 170rpx;
  318. margin-top: 20rpx;
  319. flex-direction: row;
  320. display: flex;
  321. }
  322. .block_2 {
  323. width: 363rpx;
  324. height: 122rpx;
  325. display: flex;
  326. flex-direction: column;
  327. justify-content: space-between;
  328. margin: 28rpx 0 0 19rpx;
  329. }
  330. .text-group_3 {
  331. width: 361rpx;
  332. height: 62rpx;
  333. margin-left: 2rpx;
  334. display: flex;
  335. flex-direction: column;
  336. justify-content: space-between;
  337. }
  338. .text_12 {
  339. width: 361rpx;
  340. height: 27rpx;
  341. overflow-wrap: break-word;
  342. color: rgba(49, 37, 32, 1);
  343. font-size: 28rpx;
  344. font-family: Adobe Heiti Std R;
  345. font-weight: normal;
  346. text-align: left;
  347. white-space: nowrap;
  348. line-height: 28rpx;
  349. }
  350. .text_13 {
  351. width: 280rpx;
  352. height: 22rpx;
  353. overflow-wrap: break-word;
  354. color: rgba(153, 153, 153, 1);
  355. font-size: 22rpx;
  356. font-family: Adobe Heiti Std R;
  357. font-weight: normal;
  358. text-align: left;
  359. white-space: nowrap;
  360. line-height: 22rpx;
  361. margin-top: 13rpx;
  362. }
  363. .text-wrapper_6 {
  364. background-color: rgba(60, 213, 243, 1);
  365. border-radius: 10rpx;
  366. height: 44rpx;
  367. margin-top: 16rpx;
  368. display: flex;
  369. flex-direction: column;
  370. width: 129rpx;
  371. }
  372. .text_14 {
  373. width: 93rpx;
  374. height: 23rpx;
  375. overflow-wrap: break-word;
  376. color: rgba(255, 255, 255, 1);
  377. font-size: 24rpx;
  378. font-family: Adobe Heiti Std R;
  379. font-weight: normal;
  380. text-align: left;
  381. white-space: nowrap;
  382. line-height: 24rpx;
  383. margin: 11rpx 0 0 18rpx;
  384. }
  385. .block_3 {
  386. background-color: rgba(255, 97, 95, 1);
  387. border-radius: 10rpx;
  388. width: 170rpx;
  389. height: 170rpx;
  390. display: flex;
  391. flex-direction: column;
  392. margin: 0 1rpx 0 133rpx;
  393. }
  394. </style>