minsu.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view class="body" style="background-color: #efefef">
  3. <u-navbar :autoBack="true" title="民俗宗教" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view>
  5. <u-swiper :list="list1" height="335rpx" :indicator="true" :autoplay="true" :circular="true" keyName="image" showTitle></u-swiper>
  6. </view>
  7. <view class="text-wrapper_7">
  8. <text lines="1" class="text_4">生活习俗</text>
  9. <text lines="1" class="text_5">查看更多》</text>
  10. </view>
  11. <!-- 生活习俗 -->
  12. <view class="sh_xs banxin">
  13. <view class="sh_xs_item" v-for="item in shXiShuList" :key="item">
  14. <view @click="detailsBtn" class="" style="width: 325rpx; height: 180rpx; border-radius: 10rpx">
  15. <image style="width: 100%; height: 100%" :src="item.img"></image>
  16. </view>
  17. <view class="">{{ item.title }}</view>
  18. <view class="ms_dianzan">
  19. <view class="">
  20. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  21. <text>1.5w</text>
  22. </view>
  23. <view class="">
  24. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  25. <text>1.5w</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 生活习俗end -->
  31. <!-- 行业习俗 -->
  32. <!-- <view class="text-wrapper_7">
  33. <text lines="1" class="text_4">行业习俗</text>
  34. <text lines="1" class="text_5">查看更多》</text>
  35. </view>
  36. <view class="sh_xs banxin">
  37. <view class="sh_xs_item" v-for="item in 4" :key="item">
  38. <view class="" style="width: 325rpx; height: 180rpx; border-radius: 10rpx">
  39. <image style="width: 100%; height: 100%" src="https://img0.baidu.com/it/u=2448527499,3053317408&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=394"></image>
  40. </view>
  41. <view class="">閩南自古有廟就有</view>
  42. <view class="ms_dianzan">
  43. <view class="">
  44. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  45. <text>1.5w</text>
  46. </view>
  47. <view class="">
  48. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  49. <text>1.5w</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view> -->
  54. <!-- 行业习俗end -->
  55. <!-- 岁时习俗 -->
  56. <!-- <view class="text-wrapper_7">
  57. <text lines="1" class="text_4">岁时习俗</text>
  58. <text lines="1" class="text_5">查看更多》</text>
  59. </view>
  60. <view class="sh_xs banxin">
  61. <view class="sh_xs_item" v-for="item in 4" :key="item">
  62. <view class="" style="width: 325rpx; height: 180rpx; border-radius: 10rpx">
  63. <image style="width: 100%; height: 100%" src="https://img1.baidu.com/it/u=2977394516,3415116795&fm=253&fmt=auto&app=138&f=JPEG?w=641&h=361"></image>
  64. </view>
  65. <view class="">閩南自古有廟就有</view>
  66. <view class="ms_dianzan">
  67. <view class="">
  68. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  69. <text>1.5w</text>
  70. </view>
  71. <view class="">
  72. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  73. <text>1.5w</text>
  74. </view>
  75. </view>
  76. </view>
  77. </view> -->
  78. <!-- 岁时习俗end -->
  79. <!-- 礼仪习俗 -->
  80. <!-- <view class="text-wrapper_7">
  81. <text lines="1" class="text_4">礼仪习俗</text>
  82. <text lines="1" class="text_5">查看更多》</text>
  83. </view>
  84. <view class="sh_xs banxin">
  85. <view class="sh_xs_item" v-for="item in 4" :key="item">
  86. <view class="" style="width: 325rpx; height: 180rpx; border-radius: 10rpx">
  87. <image style="width: 100%; height: 100%" src="https://img0.baidu.com/it/u=2448527499,3053317408&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=394"></image>
  88. </view>
  89. <view class="">閩南自古有廟就有</view>
  90. <view class="ms_dianzan">
  91. <view class="">
  92. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  93. <text>1.5w</text>
  94. </view>
  95. <view class="">
  96. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  97. <text>1.5w</text>
  98. </view>
  99. </view>
  100. </view>
  101. </view> -->
  102. <!-- 礼仪习俗end -->
  103. </view>
  104. </template>
  105. <script>
  106. export default {
  107. data() {
  108. return {
  109. list1: [
  110. {
  111. image: 'https://img0.baidu.com/it/u=1541281845,960690765&fm=253&fmt=auto&app=138&f=JPEG?w=758&h=500',
  112. title: '山里乡民祭妈祖'
  113. },
  114. {
  115. image: 'https://img1.baidu.com/it/u=4153166350,2319982730&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=424',
  116. title: '初九拜天公'
  117. },
  118. {
  119. image: 'https://img1.baidu.com/it/u=3003350307,572069045&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500',
  120. title: '福建茶乡古礼祭茶神'
  121. }
  122. ],
  123. // 生活习俗
  124. shXiShuList: [
  125. {
  126. img: 'https://www.chinanews.com/tp/hd2011/2013/03-11/U508P4T426D182733F16470DT20130311112416.jpg',
  127. title: '闽南民俗浔浦天香日'
  128. },
  129. {
  130. img: 'https://inews.gtimg.com/newsapp_bt/0/11032609926/1000',
  131. title: '闽南冬至丸'
  132. },
  133. {
  134. img: 'https://img1.baidu.com/it/u=1711973128,1321603179&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333',
  135. title: '闽南习俗拜天公'
  136. },
  137. {
  138. img: 'https://i2.hdslb.com/bfs/archive/24ab948019ae5cc13055113cfcd5321f7c16dc41.jpg',
  139. title: '抬神'
  140. }
  141. ]
  142. };
  143. },
  144. methods: {
  145. detailsBtn() {
  146. uni.navigateTo({
  147. url: '/index_fenbao/minsu/ms_wenZhang'
  148. });
  149. }
  150. }
  151. };
  152. </script>
  153. <style>
  154. .banxin {
  155. margin: 0 32rpx 0 32rpx;
  156. }
  157. /deep/.u-swiper-indicator__wrapper__dot--active {
  158. width: 5px !important;
  159. }
  160. /* 去除轮播图标题遮罩背景色 */
  161. /* .u-swiper__wrapper__item__wrapper__title {
  162. background-color: transparent !important;
  163. } */
  164. .sh_xs {
  165. display: flex;
  166. flex-flow: wrap;
  167. justify-content: space-between;
  168. }
  169. .ms_dianzan {
  170. width: 245rpx;
  171. display: flex;
  172. justify-content: space-between;
  173. margin-top: 10rpx;
  174. }
  175. .sh_xs_item {
  176. border-radius: 10rpx;
  177. background: #ffffff;
  178. margin-bottom: 35rpx;
  179. }
  180. .text-wrapper_7 {
  181. width: 651rpx;
  182. height: 45rpx;
  183. flex-direction: row;
  184. display: flex;
  185. align-items: center;
  186. justify-content: space-between;
  187. margin: 33rpx 0 25rpx 48rpx;
  188. }
  189. .text_4 {
  190. width: 112rpx;
  191. height: 27rpx;
  192. color: rgba(49, 37, 32, 1);
  193. font-size: 28rpx;
  194. font-weight: 700;
  195. white-space: nowrap;
  196. line-height: 28rpx;
  197. }
  198. .text_5 {
  199. width: 89rpx;
  200. height: 20rpx;
  201. color: rgba(18, 18, 18, 1);
  202. font-size: 22rpx;
  203. white-space: nowrap;
  204. line-height: 20rpx;
  205. margin-top: 3rpx;
  206. }
  207. </style>