huicui.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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_jiyi_bj.png'); background-size: cover">
  5. <u-navbar bgColor="rgba(255,255,255,0)" :placeholder="true" :leftIconSize="0" titleStyle="font-weight:bold;color:#7a5831">
  6. <view class="u-nav-slot" slot="left">
  7. <view class="an" style="width: 500rpx; margin-top: -12rpx">
  8. <u-search :showAction="false"></u-search>
  9. </view>
  10. </view>
  11. </u-navbar>
  12. </view>
  13. <view class="block_1">
  14. <view class="cs_box_1">
  15. <u-swiper
  16. :list="bannerlist"
  17. imgMode="aspectFill"
  18. :height="120"
  19. :indicator="true"
  20. :autoplay="true"
  21. :circular="true"
  22. indicatorStyle="bottom: 10px"
  23. @click="bannerClick"
  24. indicatorMode="dot"
  25. indicatorActiveColor="#fff"
  26. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  27. ></u-swiper>
  28. <view class="group_2">
  29. <view class="group_10">
  30. <view class="box_3" v-for="item in hcCdList" :key="item">
  31. <image style="width: 100%; height: 100%" :src="item.img"></image>
  32. <text lines="1" class="cs_text_2">{{ item.title }}</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="text-wrapper_9">
  38. <u-tabs
  39. :list="[
  40. { name: '广场', tabid: 1 },
  41. { name: '发现', tabid: 2 }
  42. ]"
  43. lineColor="#4E7198"
  44. :activeStyle="{
  45. color: '#4E7198',
  46. fontWeight: 'bold'
  47. }"
  48. ></u-tabs>
  49. </view>
  50. <view class="group_11">
  51. <view class="text-wrapper_3">
  52. <text lines="1" class="text_8">文章</text>
  53. </view>
  54. <view class="cs_text-wrapper_4">
  55. <text lines="1" class="text_9">图片</text>
  56. </view>
  57. <view class="text-wrapper_5">
  58. <text lines="1" class="text_10">视频</text>
  59. </view>
  60. </view>
  61. <view class="cs_group_12">
  62. <!-- 瀑布流 -->
  63. <custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
  64. <view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
  65. <view class="title_pubu">
  66. {{ item.title }}
  67. </view>
  68. <!-- <view class="desc">{{ item.desc }}</view> -->
  69. </view>
  70. </custom-waterfalls-flow>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. let that;
  77. export default {
  78. onLoad(option) {
  79. that = this;
  80. this.getBannerList();
  81. },
  82. data() {
  83. return {
  84. bannerlist: ['https://feicheng.16fw.cn:1443/uploads/20230423/55f2ea70baa2e7ce617f939b70026472.jpg'],
  85. // 荟萃菜单
  86. hcCdList: [
  87. {
  88. title: '家乡味道',
  89. img: 'https://feicheng.16fw.cn:1443/uploads/20230418/0392ac25c1668beefa612aa646bf9d46.png'
  90. },
  91. {
  92. title: '文化广场',
  93. img: 'https://feicheng.16fw.cn:1443/uploads/20230418/e269122cbba9db7b72ed4a1b27b880c5.png'
  94. },
  95. {
  96. title: '村中趣事',
  97. img: 'https://feicheng.16fw.cn:1443/uploads/20230423/227e4cab316a37d3b6c8c367590b71b3.png'
  98. },
  99. {
  100. title: '健身广场',
  101. img: 'https://feicheng.16fw.cn:1443/uploads/20230423/cd4e633ce0a68900dd46e1160c93a784.png'
  102. }
  103. ],
  104. list: [
  105. {
  106. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy1.png',
  107. title: '传统捏泥人',
  108. desc: '描述描述描述描述描述描述描述描述2'
  109. },
  110. {
  111. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy2.png',
  112. title: '青龙宫',
  113. desc: '描述描述描述描述描述描述描述描述1'
  114. },
  115. {
  116. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy3.png',
  117. title: '火把节',
  118. desc: '11'
  119. },
  120. {
  121. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy9.png',
  122. title: '老物件',
  123. desc: '描述描述描述描述描述描述描述描述2'
  124. },
  125. {
  126. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy4.png',
  127. title: '林后青龙宫',
  128. desc: '描述描述描述描述描述描述描述描述2'
  129. },
  130. {
  131. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy10.png',
  132. title: '书籍',
  133. desc: '描述描述描述描述描述描述描述描述2'
  134. },
  135. {
  136. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy7.png',
  137. title: '建筑',
  138. desc: '描述描述描述描述描述描述描述描述2'
  139. },
  140. {
  141. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy8.png',
  142. title: '老钟表',
  143. desc: '描述描述描述描述描述描述描述描述2'
  144. },
  145. {
  146. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy14.png',
  147. title: '老物件',
  148. desc: '描述描述描述描述描述描述描述描述2'
  149. }
  150. ]
  151. };
  152. },
  153. methods: {
  154. getBannerList() {
  155. this.$api.getBannerList({ block: 'home' }, function (res) {
  156. // console.log(res);
  157. if (res.code > 0) {
  158. that.bannerlist = [];
  159. for (var i = 0; i < res.data.length; i++) {
  160. if (res.data[i].type == 'banner') {
  161. that.bannerlist.push({
  162. title: res.data[i].title,
  163. url: that.$config.baseUrl + res.data[i].image,
  164. page: res.data[i].url
  165. });
  166. }
  167. }
  168. }
  169. });
  170. },
  171. bannerClick(index) {
  172. console.log(index);
  173. this.$common.navigateTo(this.bannerlist[index].page);
  174. }
  175. }
  176. };
  177. </script>
  178. <style>
  179. /* 村史 */
  180. .u-navbar__content {
  181. background-color: transparent;
  182. }
  183. .block_1 {
  184. position: relative;
  185. background-size: 100% 100%;
  186. display: flex;
  187. flex-direction: column;
  188. }
  189. .cs_box_1 {
  190. width: 90%;
  191. margin: auto;
  192. margin-top: -525rpx;
  193. display: flex;
  194. flex-direction: column;
  195. }
  196. /deep/.u-swiper-indicator__wrapper__dot--active {
  197. width: 5px !important;
  198. }
  199. .cs_nabBar {
  200. height: 700rpx;
  201. }
  202. .title_pubu {
  203. width: 100%;
  204. height: 50rpx;
  205. /* background-color: rgba(202, 0, 0, 0.3); */
  206. background-color: rgba(60, 213, 243, 0.3);
  207. font-size: 30rpx;
  208. color: #ffffff;
  209. position: absolute;
  210. bottom: 0;
  211. left: 0;
  212. }
  213. .group_2 {
  214. border-radius: 20rpx;
  215. background-color: #ffffff;
  216. display: flex;
  217. flex-direction: column;
  218. justify-content: flex-center;
  219. margin-top: 20rpx;
  220. }
  221. .group_10 {
  222. width: 599rpx;
  223. height: 108rpx;
  224. flex-direction: row;
  225. display: flex;
  226. justify-content: space-between;
  227. margin: 28rpx 0 60rpx 44rpx;
  228. }
  229. .box_3 {
  230. /* background-color: rgba(255, 97, 95, 1); */
  231. border-radius: 48rpx;
  232. width: 108rpx;
  233. height: 108rpx;
  234. }
  235. .cs_text_2 {
  236. width: 94rpx;
  237. height: 23rpx;
  238. margin-top: 13rpx;
  239. color: rgba(102, 102, 102, 1);
  240. font-size: 24rpx;
  241. white-space: nowrap;
  242. line-height: 24rpx;
  243. }
  244. .text-wrapper_9 {
  245. width: 250rpx;
  246. margin: 31rpx 0 0 250rpx;
  247. }
  248. .group_11 {
  249. width: 620rpx;
  250. height: 53rpx;
  251. flex-direction: row;
  252. display: flex;
  253. justify-content: space-between;
  254. margin: 17rpx 0 0 65rpx;
  255. }
  256. .text-wrapper_3 {
  257. background-color: rgba(60, 213, 243, 1);
  258. border-radius: 26rpx;
  259. height: 53rpx;
  260. display: flex;
  261. flex-direction: column;
  262. width: 180rpx;
  263. }
  264. .text_8 {
  265. width: 58rpx;
  266. height: 29rpx;
  267. overflow-wrap: break-word;
  268. color: rgba(255, 255, 255, 1);
  269. font-size: 30rpx;
  270. font-family: SourceHanSansCN-Regular;
  271. font-weight: normal;
  272. text-align: left;
  273. white-space: nowrap;
  274. line-height: 30rpx;
  275. margin: 12rpx 0 0 61rpx;
  276. }
  277. .cs_text-wrapper_4 {
  278. background-color: rgba(78, 113, 152, 1);
  279. border-radius: 26rpx;
  280. height: 53rpx;
  281. margin-left: 40rpx;
  282. display: flex;
  283. flex-direction: column;
  284. width: 180rpx;
  285. }
  286. .text_9 {
  287. width: 55rpx;
  288. height: 28rpx;
  289. overflow-wrap: break-word;
  290. color: rgba(255, 255, 255, 1);
  291. font-size: 30rpx;
  292. font-family: SourceHanSansCN-Regular;
  293. font-weight: normal;
  294. text-align: left;
  295. white-space: nowrap;
  296. line-height: 30rpx;
  297. margin: 13rpx 0 0 63rpx;
  298. }
  299. .text-wrapper_5 {
  300. background-color: rgba(78, 113, 152, 1);
  301. border-radius: 26rpx;
  302. height: 53rpx;
  303. margin-left: 40rpx;
  304. display: flex;
  305. flex-direction: column;
  306. width: 180rpx;
  307. }
  308. .text_10 {
  309. width: 59rpx;
  310. height: 28rpx;
  311. overflow-wrap: break-word;
  312. color: rgba(255, 255, 255, 1);
  313. font-size: 30rpx;
  314. font-family: SourceHanSansCN-Regular;
  315. font-weight: normal;
  316. text-align: left;
  317. white-space: nowrap;
  318. line-height: 30rpx;
  319. margin: 13rpx 0 0 61rpx;
  320. }
  321. .cs_group_12 {
  322. width: 100%;
  323. flex-direction: row;
  324. display: flex;
  325. justify-content: space-between;
  326. margin-top: 50rpx;
  327. }
  328. </style>