chuanCheng.vue 5.2 KB

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