zhenxing.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <!-- 村史界面 -->
  3. <view class="body">
  4. <view class="nabBar" style="background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/cs_zx.png'); background-size: cover">
  5. <u-navbar bgColor="rgba(255,255,255,0)" :placeholder="true" :leftIconSize="0"></u-navbar>
  6. </view>
  7. <view class="box_7">
  8. <view class="cs_group_4">
  9. <view class="image-wrapper_19">
  10. <view class="image_10-1" v-for="item in 4" :key="item">
  11. <image style="width: 100; height: 100%" src="/static/image/zy.png"></image>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="cs_box_1">
  17. <view class="box_33">
  18. <view class="cs_text-wrapper_6">
  19. <u-tabs
  20. :list="listTab"
  21. :lineWidth="55"
  22. lineColor="#4E7198"
  23. :activeStyle="{
  24. color: '#4E7198',
  25. fontWeight: 'bold'
  26. }"
  27. ></u-tabs>
  28. </view>
  29. <!-- 瀑布流 -->
  30. <view class="" style="margin-top: 80rpx; width: 90%; margin: auto">
  31. <custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
  32. <view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
  33. <view class="title_pubu">
  34. {{ item.title }}
  35. </view>
  36. <!-- <view class="desc">{{ item.desc }}</view> -->
  37. </view>
  38. </custom-waterfalls-flow>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. listTab: [
  49. {
  50. name: '百花齐放',
  51. tabid: 4
  52. },
  53. {
  54. name: '集体经济',
  55. tabid: 1
  56. },
  57. {
  58. name: '招商引资',
  59. tabid: 2
  60. },
  61. {
  62. name: '医疗服务',
  63. tabid: 3
  64. },
  65. {
  66. name: '百家争鸣',
  67. tabid: 5
  68. }
  69. ],
  70. list: [
  71. {
  72. image: 'https://imagepphcloud.thepaper.cn/pph/image/117/155/574.jpg',
  73. title: '让广大农民过上更好的生活 ',
  74. desc: '描述描述描述描述描述描述描述描述2'
  75. },
  76. {
  77. image: 'https://p2.itc.cn/images01/20220426/d7aa1613f3504eb3aec5332913bfc796.jpeg',
  78. title: '助力乡村振兴教师志愿者下乡支教 ',
  79. desc: '描述描述描述描述描述描述描述描述2'
  80. },
  81. {
  82. image: 'https://img2.baidu.com/it/u=2262288823,1799977930&fm=253&fmt=auto&app=120&f=JPEG?w=650&h=436',
  83. title: '厦门实施乡村振兴',
  84. desc: '描述描述描述描述描述描述描述描述2'
  85. },
  86. {
  87. image: 'https://img0.baidu.com/it/u=214322660,1036744599&fm=253&fmt=auto&app=120&f=JPEG?w=640&h=404',
  88. title: '把握乡村振兴战略',
  89. desc: '描述描述描述描述描述描述描述描述1'
  90. },
  91. {
  92. image: 'https://5b0988e595225.cdn.sohucs.com/images/20190524/89ec932d7834457092b8b568d5deeb1b.jpeg',
  93. title: '新时代文明实践乡村振兴的小松序曲',
  94. desc: '描述描述描述描述描述描述描述描述2'
  95. },
  96. {
  97. image: 'https://pic.rmb.bdstatic.com/bjh/news/1acf2fad4a4c3167d7ac23bbfe3cabad.jpeg',
  98. title: '透过镜头看农村生活新画卷',
  99. desc: '描述描述描述描述描述描述描述描述2'
  100. }
  101. ]
  102. };
  103. },
  104. methods: {}
  105. };
  106. </script>
  107. <style>
  108. /* 村史 */
  109. .cs_box_1 {
  110. display: flex;
  111. flex-direction: column;
  112. width: 750rpx;
  113. }
  114. .nabBar {
  115. height: 220rpx;
  116. }
  117. .title_pubu {
  118. width: 100%;
  119. height: 50rpx;
  120. /* background-color: rgba(202, 0, 0, 0.3); */
  121. background-color: rgba(60, 213, 243, 0.3);
  122. font-size: 30rpx;
  123. color: #ffffff;
  124. position: absolute;
  125. bottom: 0;
  126. left: 0;
  127. }
  128. .box_33 {
  129. display: flex;
  130. flex-direction: column;
  131. }
  132. .cs_text-wrapper_6 {
  133. width: 702rpx;
  134. height: 36rpx;
  135. margin: 15rpx 0 80rpx 48rpx;
  136. }
  137. .box_7 {
  138. display: flex;
  139. flex-direction: column;
  140. width: 749rpx;
  141. }
  142. .cs_group_4 {
  143. display: flex;
  144. flex-direction: column;
  145. width: 749rpx;
  146. margin-top: -40rpx;
  147. border-radius: 46rpx 46rpx 0 0;
  148. background-color: #f8f8f8;
  149. }
  150. .image-wrapper_19 {
  151. width: 684rpx;
  152. height: 276rpx;
  153. flex-wrap: wrap;
  154. display: flex;
  155. justify-content: space-between;
  156. margin: 45rpx 0 0 35rpx;
  157. }
  158. .image_10-1 {
  159. width: 330rpx;
  160. height: 126rpx;
  161. margin: 0 24rpx 24rpx 0;
  162. margin-right: 0rpx;
  163. }
  164. </style>