chuanCheng.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view class="">
  3. <view class="box">
  4. <view class="box_top">
  5. <image style="width: 100%; height: 100%" src="https://huli-app.wenlvti.net/app_static/minnanhun/image/ccbg.png"></image>
  6. </view>
  7. <view class="box_search" @click="searchBtn">
  8. <view class="">
  9. <uni-icons type="search" size="20"></uni-icons>
  10. </view>
  11. <view class="">请输入搜索内容</view>
  12. </view>
  13. <view class="box_tab">
  14. <u-tabs
  15. :duration="200"
  16. :list="listTab"
  17. :lineWidth="25"
  18. :lineHeight="12"
  19. lineColor="#4E7198"
  20. :lineColor="`url(${tabImg}) 100% 100%`"
  21. :activeStyle="{
  22. color: '#4E7198',
  23. fontSize: '34rpx'
  24. }"
  25. ></u-tabs>
  26. </view>
  27. <!-- 瀑布流 -->
  28. <custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
  29. <view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
  30. <view class="title_pubu">
  31. {{ item.title }}
  32. </view>
  33. <!-- <view class="desc">{{ item.desc }}</view> -->
  34. </view>
  35. </custom-waterfalls-flow>
  36. </view>
  37. <mntabBar footerTab="2" :messageCount="0"></mntabBar>
  38. </view>
  39. </template>
  40. <script>
  41. import { mapState } from 'vuex';
  42. let that;
  43. export default {
  44. components: {},
  45. data() {
  46. return {
  47. tabImg: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tab.png',
  48. list: [
  49. {
  50. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy1.png',
  51. title: '传统捏泥人',
  52. desc: '描述描述描述描述描述描述描述描述2'
  53. },
  54. {
  55. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy2.png',
  56. title: '青龙宫',
  57. desc: '描述描述描述描述描述描述描述描述1'
  58. },
  59. {
  60. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy3.png',
  61. title: '火把节',
  62. desc: '11'
  63. },
  64. {
  65. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy9.png',
  66. title: '老物件',
  67. desc: '描述描述描述描述描述描述描述描述2'
  68. },
  69. {
  70. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy4.png',
  71. title: '林后青龙宫',
  72. desc: '描述描述描述描述描述描述描述描述2'
  73. },
  74. {
  75. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy10.png',
  76. title: '书籍',
  77. desc: '描述描述描述描述描述描述描述描述2'
  78. },
  79. {
  80. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy7.png',
  81. title: '建筑',
  82. desc: '描述描述描述描述描述描述描述描述2'
  83. },
  84. {
  85. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy8.png',
  86. title: '老钟表',
  87. desc: '描述描述描述描述描述描述描述描述2'
  88. },
  89. {
  90. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy14.png',
  91. title: '老物件',
  92. desc: '描述描述描述描述描述描述描述描述2'
  93. }
  94. ],
  95. listTab: [
  96. {
  97. name: '书法',
  98. tabid: 1
  99. },
  100. {
  101. name: '戏曲',
  102. tabid: 2
  103. },
  104. {
  105. name: '非遗',
  106. tabid: 3
  107. },
  108. {
  109. name: '文化',
  110. tabid: 4
  111. },
  112. {
  113. name: '创作',
  114. tabid: 5
  115. }
  116. ]
  117. };
  118. },
  119. onLoad(option) {
  120. that = this;
  121. },
  122. computed: {},
  123. methods: {
  124. searchBtn() {
  125. uni.navigateTo({
  126. url: '/chuanCheng_fenbao/search/search'
  127. });
  128. }
  129. }
  130. };
  131. </script>
  132. <style>
  133. .body {
  134. /* background-image: url('https://huli-app.wenlvti.net/uploads/20230512/88f8347924d08296bbde9d55afd74c15.jpg');
  135. background-size: 100% 100%; */
  136. background-attachment: fixed;
  137. }
  138. /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
  139. padding: 0 40rpx !important;
  140. }
  141. /deep/.u-tabs__wrapper__nav__line.data-v-48634e29 {
  142. bottom: 16rpx !important;
  143. }
  144. /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
  145. align-items: end !important;
  146. }
  147. /deep/.column-value.data-v-ddfcbb1c {
  148. border-radius: 25rpx 60rpx 0rpx 30rpx !important;
  149. }
  150. .box {
  151. height: auto;
  152. width: 100%;
  153. background-color: #eff6ff;
  154. background-attachment: fixed;
  155. border-radius: 16px 16px 0 0;
  156. position: relative;
  157. display: flex;
  158. flex-direction: column;
  159. }
  160. .box_top {
  161. width: 100%;
  162. height: 410rpx;
  163. }
  164. .box_search {
  165. display: flex;
  166. align-items: center;
  167. padding-left: 20rpx;
  168. box-sizing: border-box;
  169. width: 685rpx;
  170. height: 80rpx;
  171. color: #999999;
  172. font-size: 28rpx;
  173. background-color: #ffffff;
  174. z-index: 2;
  175. border-radius: 40rpx;
  176. margin: -90rpx 32rpx 0 34rpx;
  177. }
  178. .box_tab {
  179. margin: 45rpx 32rpx 0 32rpx;
  180. }
  181. .title_pubu {
  182. width: 100%;
  183. height: 65rpx;
  184. line-height: 65rpx;
  185. background-color: #ca5642;
  186. font-size: 30rpx;
  187. color: #ffffff;
  188. text-align: center;
  189. position: absolute;
  190. bottom: 0;
  191. left: 0;
  192. }
  193. </style>