feiyi.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <view class="body2">
  3. <u-navbar :autoBack="true" title="闽南非遗" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="fy_nav_bj">
  5. <view class="" style="padding: 80rpx 0rpx 0 50rpx">
  6. <view style="font-size: 36rpx; margin-bottom: 20rpx">闽南非遗</view>
  7. <view style="font-size: 24rpx">推进制度化建设,打造非遗活态传承新机制</view>
  8. </view>
  9. </view>
  10. <!-- 轮播图 -->
  11. <view class="banxin">
  12. <u-swiper
  13. indicatorMode="dot"
  14. indicatorStyle="bottom: 10rpx"
  15. :list="list1"
  16. height="180rpx"
  17. :indicator="true"
  18. :autoplay="true"
  19. :circular="true"
  20. keyName="image"
  21. ></u-swiper>
  22. </view>
  23. <u-picker :show="show" @close="show = false" :closeOnClickOverlay="true" :columns="columns" @cancel="show = false" @confirm="yf_isok"></u-picker>
  24. <view class="banxin" style="margin-top: 40rpx">
  25. <!-- 选择城市 -->
  26. <view class="" style="display: flex">
  27. <view @click="show = true" class="fy_cs">
  28. <uni-icons type="location" size="20"></uni-icons>
  29. <text style="margin: 0 10rpx 0 10rpx">{{ columnsItem }}</text>
  30. <uni-icons type="bottom" size="20"></uni-icons>
  31. </view>
  32. <!-- 选择城市end -->
  33. <view class="">
  34. <u-tabs
  35. :list="tabList"
  36. :lineWidth="0"
  37. :activeStyle="{
  38. border: '1px solid #dac1a1',
  39. color: '#dac1a1'
  40. }"
  41. ></u-tabs>
  42. </view>
  43. </view>
  44. <!-- 滑动模式 -->
  45. <!-- <view class="" style="margin-left: 200rpx">
  46. <scroll-view scroll-x style="display: flex; white-space: nowrap" class="">
  47. <view @click="fyTab(item)" v-for="item in tabList" :key="item.id" class="fy_tab_item" :class="{ active: tabactive == item.id }">
  48. {{ item.name }}
  49. </view>
  50. </scroll-view>
  51. </view> -->
  52. </view>
  53. <!-- 内容 -->
  54. <view class="sh_xs banxin">
  55. <view class="sh_xs_item" v-for="item in twList" :key="item">
  56. <view class="" style="width: 325rpx; height: 180rpx; border-radius: 10rpx">
  57. <image style="width: 100%; height: 100%" :src="item.img"></image>
  58. </view>
  59. <view class="">{{ item.title }}</view>
  60. <view class="ms_dianzan">
  61. <view class="">
  62. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  63. <text>1.5w</text>
  64. </view>
  65. <view class="">
  66. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  67. <text>1.5w</text>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. export default {
  76. data() {
  77. return {
  78. show: false,
  79. columns: [['厦门', '泉州', '福州']],
  80. columnsItem: '厦门' /* 选中的城市 */,
  81. tabactive: 0,
  82. list1: [
  83. {
  84. image: 'https://feicheng.16fw.cn:1443/uploads/20230403/f394190a0e3fc5873644beadead1cc3f.jpg'
  85. },
  86. {
  87. image: 'https://feicheng.16fw.cn:1443/uploads/20230403/00885f0245196beebe66ca79aebe5656.jpg'
  88. },
  89. {
  90. image: 'https://feicheng.16fw.cn:1443/uploads/20230403/1cf5f3c9c6b28fcbd3a983068f06d257.jpg'
  91. }
  92. ],
  93. tabList: [
  94. {
  95. name: '民俗文学',
  96. id: 0
  97. },
  98. {
  99. name: '江头街道',
  100. id: 1
  101. },
  102. {
  103. name: '殿前街道',
  104. id: 2
  105. },
  106. {
  107. name: '民俗文学',
  108. id: 3
  109. },
  110. {
  111. name: '江头街道',
  112. id: 4
  113. }
  114. ],
  115. twList: [
  116. {
  117. img: 'https://feicheng.16fw.cn:1443/uploads/20230403/133f120ee8e260640890dc2a7fe97c1f.png',
  118. title: '闽南传统金银制作技艺'
  119. },
  120. {
  121. img: 'https://feicheng.16fw.cn:1443/uploads/20230524/fe15cad25eaa4cf09236b70235fc1f14.png',
  122. title: '开厦上柱国祠陈氏祭祖习俗'
  123. },
  124. {
  125. img: 'https://feicheng.16fw.cn:1443/uploads/20230403/1cf5f3c9c6b28fcbd3a983068f06d257.jpg',
  126. title: '沈氏漆线雕'
  127. },
  128. {
  129. img: 'https://feicheng.16fw.cn:1443/uploads/20230524/6eefa546579b4bee7b1609cce87ba79f.png',
  130. title: '闽台送王船习俗'
  131. }
  132. ]
  133. };
  134. },
  135. methods: {
  136. fyTab(item) {
  137. this.tabactive = item.id;
  138. console.log(item);
  139. },
  140. // 选择城市
  141. yf_isok(e) {
  142. console.log(e);
  143. this.columnsItem = e.value;
  144. this.show = false;
  145. }
  146. }
  147. };
  148. </script>
  149. <style>
  150. .body2 {
  151. background-size: 100% 100%;
  152. background-attachment: fixed;
  153. background-repeat: repeat-y;
  154. background-color: #efefef;
  155. padding-bottom: 50rpx;
  156. background-color: #efefef;
  157. }
  158. .banxin {
  159. margin: 0 32rpx 0 32rpx;
  160. }
  161. /deep/.u-swiper-indicator__wrapper__dot--active {
  162. width: 5px !important;
  163. }
  164. .fy_nav_bj {
  165. width: 100%;
  166. height: 220rpx;
  167. color: #ffffff;
  168. margin-bottom: 25rpx;
  169. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/fy_navbj.png');
  170. background-size: 100% 100%;
  171. }
  172. .active {
  173. border: 1px solid #dac1a1;
  174. }
  175. .fy_tab_item {
  176. line-height: 45rpx;
  177. text-align: center;
  178. margin-right: 30rpx;
  179. width: 170rpx;
  180. height: 50rpx;
  181. display: inline-block;
  182. background-color: #fffcf3;
  183. }
  184. .sh_xs {
  185. margin-top: 50rpx;
  186. display: flex;
  187. flex-flow: wrap;
  188. justify-content: space-between;
  189. }
  190. .ms_dianzan {
  191. width: 245rpx;
  192. display: flex;
  193. justify-content: space-between;
  194. margin-top: 10rpx;
  195. }
  196. .sh_xs_item {
  197. border-radius: 10rpx;
  198. background: #ffffff;
  199. margin-bottom: 35rpx;
  200. }
  201. .fy_cs {
  202. display: flex;
  203. align-items: center;
  204. width: 255rpx;
  205. height: 50rpx;
  206. margin-top: 20rpx;
  207. /* background-color: antiquewhite; */
  208. }
  209. </style>